lakelib 0.2.5 → 0.3.0

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.
Files changed (130) hide show
  1. package/README.md +5 -5
  2. package/dist/lake.css +433 -398
  3. package/dist/lake.min.js +41 -56
  4. package/dist/lake.min.js.map +1 -1
  5. package/lib/css/index.d.ts +1 -11
  6. package/lib/editor.d.ts +1 -1
  7. package/lib/i18n/en-US/index.d.ts +26 -0
  8. package/lib/i18n/ja/index.d.ts +26 -0
  9. package/lib/i18n/ko/index.d.ts +26 -0
  10. package/lib/i18n/types.d.ts +200 -4
  11. package/lib/i18n/zh-CN/index.d.ts +26 -0
  12. package/lib/index.d.ts +8 -8
  13. package/lib/lake.css +182 -147
  14. package/lib/lake.js +5494 -4280
  15. package/lib/lake.js.map +1 -1
  16. package/lib/managers/command.d.ts +4 -4
  17. package/lib/managers/selection.d.ts +6 -10
  18. package/lib/operations/insert-block.d.ts +3 -0
  19. package/lib/operations/insert-contents.d.ts +4 -0
  20. package/lib/operations/split-block.d.ts +1 -1
  21. package/lib/operations/split-marks.d.ts +1 -1
  22. package/lib/plugins/align.d.ts +1 -1
  23. package/lib/plugins/arrow-keys.d.ts +1 -1
  24. package/lib/plugins/backspace-key.d.ts +1 -1
  25. package/lib/plugins/block-quote.d.ts +1 -1
  26. package/lib/plugins/bold.d.ts +1 -1
  27. package/lib/plugins/code-block/code-block-box.d.ts +4 -0
  28. package/lib/plugins/code-block/index.d.ts +5 -0
  29. package/lib/plugins/code.d.ts +1 -1
  30. package/lib/plugins/copy.d.ts +1 -1
  31. package/lib/plugins/cut.d.ts +1 -1
  32. package/lib/plugins/delete-key.d.ts +1 -1
  33. package/lib/plugins/drop.d.ts +1 -1
  34. package/lib/plugins/emoji/emoji-box.d.ts +4 -0
  35. package/lib/plugins/emoji/index.d.ts +5 -0
  36. package/lib/plugins/enter-key.d.ts +1 -1
  37. package/lib/plugins/equation/equation-box.d.ts +4 -0
  38. package/lib/plugins/equation/index.d.ts +5 -0
  39. package/lib/plugins/escape-key.d.ts +1 -1
  40. package/lib/plugins/file/file-box.d.ts +4 -0
  41. package/lib/plugins/file/index.d.ts +5 -0
  42. package/lib/plugins/font-color.d.ts +1 -1
  43. package/lib/plugins/font-family.d.ts +1 -1
  44. package/lib/plugins/font-size.d.ts +1 -1
  45. package/lib/plugins/format-painter.d.ts +1 -1
  46. package/lib/plugins/heading.d.ts +1 -1
  47. package/lib/plugins/highlight.d.ts +1 -1
  48. package/lib/plugins/hr/hr-box.d.ts +4 -0
  49. package/lib/plugins/hr/index.d.ts +5 -0
  50. package/lib/{boxes/image.d.ts → plugins/image/image-box.d.ts} +2 -1
  51. package/lib/plugins/image/index.d.ts +5 -0
  52. package/lib/plugins/indent.d.ts +1 -1
  53. package/lib/plugins/italic.d.ts +1 -1
  54. package/lib/plugins/{link.d.ts → link/index.d.ts} +1 -1
  55. package/lib/plugins/link/insert-link.d.ts +3 -0
  56. package/lib/{ui → plugins/link}/link-popup.d.ts +3 -2
  57. package/lib/plugins/list.d.ts +1 -1
  58. package/lib/plugins/markdown.d.ts +1 -1
  59. package/lib/plugins/mention/index.d.ts +5 -0
  60. package/lib/plugins/mention/mention-box.d.ts +4 -0
  61. package/lib/{ui → plugins/mention}/mention-menu.d.ts +4 -3
  62. package/lib/plugins/paste.d.ts +1 -1
  63. package/lib/plugins/redo.d.ts +1 -1
  64. package/lib/plugins/remove-format.d.ts +1 -1
  65. package/lib/plugins/select-all.d.ts +1 -1
  66. package/lib/plugins/shift-enter-key.d.ts +1 -1
  67. package/lib/plugins/{mention.d.ts → slash/index.d.ts} +1 -1
  68. package/lib/{config → plugins/slash}/slash-items.d.ts +1 -1
  69. package/lib/{ui → plugins/slash}/slash-menu.d.ts +5 -4
  70. package/lib/{types/slash.d.ts → plugins/slash/types.d.ts} +2 -2
  71. package/lib/plugins/special-character.d.ts +1 -1
  72. package/lib/plugins/strikethrough.d.ts +1 -1
  73. package/lib/plugins/subscript.d.ts +1 -1
  74. package/lib/plugins/superscript.d.ts +1 -1
  75. package/lib/plugins/tab-key.d.ts +1 -1
  76. package/lib/plugins/table/delete-column.d.ts +2 -0
  77. package/lib/plugins/table/delete-row.d.ts +2 -0
  78. package/lib/plugins/table/delete-table.d.ts +2 -0
  79. package/lib/plugins/{slash.d.ts → table/index.d.ts} +2 -1
  80. package/lib/plugins/table/insert-column.d.ts +4 -0
  81. package/lib/plugins/table/insert-row.d.ts +4 -0
  82. package/lib/plugins/table/insert-table.d.ts +3 -0
  83. package/lib/plugins/table/merge-cells.d.ts +3 -0
  84. package/lib/plugins/table/split-cell.d.ts +3 -0
  85. package/lib/plugins/table/utils.d.ts +6 -0
  86. package/lib/plugins/underline.d.ts +1 -1
  87. package/lib/plugins/undo.d.ts +1 -1
  88. package/lib/plugins/unlink.d.ts +1 -1
  89. package/lib/plugins/video/index.d.ts +5 -0
  90. package/lib/plugins/video/video-box.d.ts +4 -0
  91. package/lib/storage/editors.d.ts +1 -1
  92. package/lib/types/corner-toolbar.d.ts +7 -0
  93. package/lib/types/dropdown.d.ts +1 -0
  94. package/lib/types/native.d.ts +0 -8
  95. package/lib/types/node.d.ts +12 -0
  96. package/lib/types/object.d.ts +0 -24
  97. package/lib/types/selection.d.ts +14 -0
  98. package/lib/types/toolbar.d.ts +5 -5
  99. package/lib/ui/corner-toolbar.d.ts +18 -0
  100. package/lib/ui/floating-toolbar.d.ts +1 -1
  101. package/lib/ui/resizer.d.ts +0 -2
  102. package/lib/ui/toolbar.d.ts +2 -2
  103. package/lib/utils/indent-block.d.ts +2 -0
  104. package/lib/utils/remove-empty-marks.d.ts +2 -0
  105. package/lib/utils/unsafe-template.d.ts +1 -0
  106. package/lib/utils/visible-info.d.ts +10 -0
  107. package/package.json +15 -14
  108. package/lib/boxes/code-block.d.ts +0 -3
  109. package/lib/boxes/emoji.d.ts +0 -3
  110. package/lib/boxes/equation.d.ts +0 -3
  111. package/lib/boxes/file.d.ts +0 -3
  112. package/lib/boxes/hr.d.ts +0 -3
  113. package/lib/boxes/mention.d.ts +0 -3
  114. package/lib/boxes/video.d.ts +0 -3
  115. package/lib/operations/fix-list.d.ts +0 -2
  116. package/lib/operations/insert-fragment.d.ts +0 -3
  117. package/lib/operations/insert-link.d.ts +0 -3
  118. package/lib/operations/insert-node.d.ts +0 -3
  119. package/lib/plugins/code-block.d.ts +0 -3
  120. package/lib/plugins/emoji.d.ts +0 -3
  121. package/lib/plugins/equation.d.ts +0 -3
  122. package/lib/plugins/file.d.ts +0 -3
  123. package/lib/plugins/hr.d.ts +0 -3
  124. package/lib/plugins/image.d.ts +0 -3
  125. package/lib/plugins/video.d.ts +0 -3
  126. package/lib/utils/index.d.ts +0 -33
  127. package/lib/utils/is-visible.d.ts +0 -8
  128. package/lib/utils/safe-template.d.ts +0 -1
  129. package/lib/utils/set-block-indent.d.ts +0 -2
  130. /package/lib/{types/mention.d.ts → plugins/mention/types.d.ts} +0 -0
@@ -8,20 +8,10 @@ import './dropdown.css';
8
8
  import './popup.css';
9
9
  import './menu.css';
10
10
  import './resizer.css';
11
+ import './corner-toolbar.css';
11
12
  import './format-painter.css';
12
13
  import './heading.css';
13
- import './link.css';
14
14
  import './list.css';
15
15
  import './block-quote.css';
16
- import './table.css';
17
- import './hr.css';
18
- import './code-block.css';
19
- import './image.css';
20
- import './video.css';
21
- import './file.css';
22
- import './emoji.css';
23
- import './equation.css';
24
- import './mention.css';
25
- import './slash.css';
26
16
  import './toolbar.css';
27
17
  import './floating-toolbar.css';
package/lib/editor.d.ts CHANGED
@@ -73,6 +73,7 @@ export declare class Editor {
73
73
  private resetUnsavedInputData;
74
74
  private handleInputEvent;
75
75
  private bindInputEvents;
76
+ private removeBoxGarbage;
76
77
  private bindHistoryEvents;
77
78
  get hasFocus(): boolean;
78
79
  get locale(): TranslationFunctions;
@@ -80,7 +81,6 @@ export declare class Editor {
80
81
  setPluginConfig(name: string, config: {
81
82
  [key: string]: any;
82
83
  }): void;
83
- removeBoxGarbage(): void;
84
84
  renderBoxes(): void;
85
85
  focus(): void;
86
86
  blur(): void;
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  heading5: string;
36
36
  heading6: string;
37
37
  list: string;
38
+ table: string;
38
39
  align: string;
39
40
  indent: string;
40
41
  fontFamily: string;
@@ -71,6 +72,8 @@ declare const _default: {
71
72
  bulletedListDesc: string;
72
73
  checklist: string;
73
74
  checklistDesc: string;
75
+ table: string;
76
+ tableDesc: string;
74
77
  hr: string;
75
78
  hrDesc: string;
76
79
  codeBlock: string;
@@ -93,6 +96,27 @@ declare const _default: {
93
96
  save: string;
94
97
  unlink: string;
95
98
  };
99
+ table: {
100
+ fitTable: string;
101
+ cellBackground: string;
102
+ column: string;
103
+ insertColumnLeft: string;
104
+ insertColumnRight: string;
105
+ deleteColumn: string;
106
+ row: string;
107
+ insertRowAbove: string;
108
+ insertRowBelow: string;
109
+ deleteRow: string;
110
+ merge: string;
111
+ mergeUp: string;
112
+ mergeRight: string;
113
+ mergeDown: string;
114
+ mergeLeft: string;
115
+ split: string;
116
+ splitLeftRight: string;
117
+ splitTopBottom: string;
118
+ remove: string;
119
+ };
96
120
  image: {
97
121
  view: string;
98
122
  remove: string;
@@ -111,6 +135,8 @@ declare const _default: {
111
135
  originalWidth: string;
112
136
  imageWidth: string;
113
137
  open: string;
138
+ caption: string;
139
+ captionPlaceholder: string;
114
140
  };
115
141
  file: {
116
142
  download: string;
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  heading5: string;
36
36
  heading6: string;
37
37
  list: string;
38
+ table: string;
38
39
  align: string;
39
40
  indent: string;
40
41
  fontFamily: string;
@@ -71,6 +72,8 @@ declare const _default: {
71
72
  bulletedListDesc: string;
72
73
  checklist: string;
73
74
  checklistDesc: string;
75
+ table: string;
76
+ tableDesc: string;
74
77
  hr: string;
75
78
  hrDesc: string;
76
79
  codeBlock: string;
@@ -93,6 +96,27 @@ declare const _default: {
93
96
  save: string;
94
97
  unlink: string;
95
98
  };
99
+ table: {
100
+ fitTable: string;
101
+ cellBackground: string;
102
+ column: string;
103
+ insertColumnLeft: string;
104
+ insertColumnRight: string;
105
+ deleteColumn: string;
106
+ row: string;
107
+ insertRowAbove: string;
108
+ insertRowBelow: string;
109
+ deleteRow: string;
110
+ merge: string;
111
+ mergeUp: string;
112
+ mergeRight: string;
113
+ mergeDown: string;
114
+ mergeLeft: string;
115
+ split: string;
116
+ splitLeftRight: string;
117
+ splitTopBottom: string;
118
+ remove: string;
119
+ };
96
120
  image: {
97
121
  view: string;
98
122
  remove: string;
@@ -111,6 +135,8 @@ declare const _default: {
111
135
  originalWidth: string;
112
136
  imageWidth: "{0} 画像サイズ";
113
137
  open: string;
138
+ caption: string;
139
+ captionPlaceholder: string;
114
140
  };
115
141
  file: {
116
142
  download: string;
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  heading5: string;
36
36
  heading6: string;
37
37
  list: string;
38
+ table: string;
38
39
  align: string;
39
40
  indent: string;
40
41
  fontFamily: string;
@@ -71,6 +72,8 @@ declare const _default: {
71
72
  bulletedListDesc: string;
72
73
  checklist: string;
73
74
  checklistDesc: string;
75
+ table: string;
76
+ tableDesc: string;
74
77
  hr: string;
75
78
  hrDesc: string;
76
79
  codeBlock: string;
@@ -93,6 +96,27 @@ declare const _default: {
93
96
  save: string;
94
97
  unlink: string;
95
98
  };
99
+ table: {
100
+ fitTable: string;
101
+ cellBackground: string;
102
+ column: string;
103
+ insertColumnLeft: string;
104
+ insertColumnRight: string;
105
+ deleteColumn: string;
106
+ row: string;
107
+ insertRowAbove: string;
108
+ insertRowBelow: string;
109
+ deleteRow: string;
110
+ merge: string;
111
+ mergeUp: string;
112
+ mergeRight: string;
113
+ mergeDown: string;
114
+ mergeLeft: string;
115
+ split: string;
116
+ splitLeftRight: string;
117
+ splitTopBottom: string;
118
+ remove: string;
119
+ };
96
120
  image: {
97
121
  view: string;
98
122
  remove: string;
@@ -111,6 +135,8 @@ declare const _default: {
111
135
  originalWidth: string;
112
136
  imageWidth: "{0} 이미지 크기";
113
137
  open: string;
138
+ caption: string;
139
+ captionPlaceholder: string;
114
140
  };
115
141
  file: {
116
142
  download: string;
@@ -146,6 +146,10 @@ type RootTranslation = {
146
146
  * L​i​s​t
147
147
  */
148
148
  list: string;
149
+ /**
150
+ * T​a​b​l​e
151
+ */
152
+ table: string;
149
153
  /**
150
154
  * A​l​i​g​n​m​e​n​t
151
155
  */
@@ -284,6 +288,14 @@ type RootTranslation = {
284
288
  * C​r​e​a​t​e​ ​a​ ​c​h​e​c​k​l​i​s​t
285
289
  */
286
290
  checklistDesc: string;
291
+ /**
292
+ * T​a​b​l​e
293
+ */
294
+ table: string;
295
+ /**
296
+ * I​n​s​e​r​t​ ​a​ ​t​a​b​l​e
297
+ */
298
+ tableDesc: string;
287
299
  /**
288
300
  * H​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
289
301
  */
@@ -363,6 +375,84 @@ type RootTranslation = {
363
375
  */
364
376
  unlink: string;
365
377
  };
378
+ table: {
379
+ /**
380
+ * F​i​t​ ​t​a​b​l​e​ ​t​o​ ​p​a​g​e​ ​w​i​d​t​h
381
+ */
382
+ fitTable: string;
383
+ /**
384
+ * C​e​l​l​ ​b​a​c​k​g​r​o​u​n​d​ ​c​o​l​o​r
385
+ */
386
+ cellBackground: string;
387
+ /**
388
+ * C​o​l​u​m​n
389
+ */
390
+ column: string;
391
+ /**
392
+ * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​l​e​f​t
393
+ */
394
+ insertColumnLeft: string;
395
+ /**
396
+ * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​r​i​g​h​t
397
+ */
398
+ insertColumnRight: string;
399
+ /**
400
+ * D​e​l​e​t​e​ ​c​o​l​u​m​n
401
+ */
402
+ deleteColumn: string;
403
+ /**
404
+ * R​o​w
405
+ */
406
+ row: string;
407
+ /**
408
+ * I​n​s​e​r​t​ ​r​o​w​ ​a​b​o​v​e
409
+ */
410
+ insertRowAbove: string;
411
+ /**
412
+ * I​n​s​e​r​t​ ​r​o​w​ ​b​e​l​o​w
413
+ */
414
+ insertRowBelow: string;
415
+ /**
416
+ * D​e​l​e​t​e​ ​r​o​w
417
+ */
418
+ deleteRow: string;
419
+ /**
420
+ * M​e​r​g​e​ ​c​e​l​l​s
421
+ */
422
+ merge: string;
423
+ /**
424
+ * M​e​r​g​e​ ​c​e​l​l​ ​u​p
425
+ */
426
+ mergeUp: string;
427
+ /**
428
+ * M​e​r​g​e​ ​c​e​l​l​ ​r​i​g​h​t
429
+ */
430
+ mergeRight: string;
431
+ /**
432
+ * M​e​r​g​e​ ​c​e​l​l​ ​d​o​w​n
433
+ */
434
+ mergeDown: string;
435
+ /**
436
+ * M​e​r​g​e​ ​c​e​l​l​ ​l​e​f​t
437
+ */
438
+ mergeLeft: string;
439
+ /**
440
+ * S​p​l​i​t​ ​c​e​l​l
441
+ */
442
+ split: string;
443
+ /**
444
+ * S​p​l​i​t​ ​c​e​l​l​ ​l​e​f​t​ ​a​n​d​ ​r​i​g​h​t
445
+ */
446
+ splitLeftRight: string;
447
+ /**
448
+ * S​p​l​i​t​ ​c​e​l​l​ ​t​o​p​ ​a​n​d​ ​b​o​t​t​o​m
449
+ */
450
+ splitTopBottom: string;
451
+ /**
452
+ * R​e​m​o​v​e​ ​t​a​b​l​e
453
+ */
454
+ remove: string;
455
+ };
366
456
  image: {
367
457
  /**
368
458
  * F​u​l​l​ ​s​c​r​e​e​n
@@ -421,7 +511,7 @@ type RootTranslation = {
421
511
  */
422
512
  pageWidth: string;
423
513
  /**
424
- * O​r​i​g​i​n​a​l​ ​w​i​d​t​h
514
+ * O​r​i​g​i​n​a​l​ ​i​m​a​g​e​ ​w​i​d​t​h
425
515
  */
426
516
  originalWidth: string;
427
517
  /**
@@ -433,6 +523,14 @@ type RootTranslation = {
433
523
  * O​p​e​n​ ​i​m​a​g​e​ ​i​n​ ​n​e​w​ ​t​a​b
434
524
  */
435
525
  open: string;
526
+ /**
527
+ * C​a​p​t​i​o​n
528
+ */
529
+ caption: string;
530
+ /**
531
+ * W​r​i​t​e​ ​a​ ​c​a​p​t​i​o​n​.​.​.
532
+ */
533
+ captionPlaceholder: string;
436
534
  };
437
535
  file: {
438
536
  /**
@@ -482,7 +580,7 @@ type RootTranslation = {
482
580
  */
483
581
  help: string;
484
582
  /**
485
- * T​y​p​e​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n
583
+ * T​y​p​e​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n​.​.​.
486
584
  */
487
585
  placeholder: string;
488
586
  };
@@ -629,6 +727,10 @@ export type TranslationFunctions = {
629
727
  * List
630
728
  */
631
729
  list: () => LocalizedString;
730
+ /**
731
+ * Table
732
+ */
733
+ table: () => LocalizedString;
632
734
  /**
633
735
  * Alignment
634
736
  */
@@ -767,6 +869,14 @@ export type TranslationFunctions = {
767
869
  * Create a checklist
768
870
  */
769
871
  checklistDesc: () => LocalizedString;
872
+ /**
873
+ * Table
874
+ */
875
+ table: () => LocalizedString;
876
+ /**
877
+ * Insert a table
878
+ */
879
+ tableDesc: () => LocalizedString;
770
880
  /**
771
881
  * Horizontal line
772
882
  */
@@ -846,6 +956,84 @@ export type TranslationFunctions = {
846
956
  */
847
957
  unlink: () => LocalizedString;
848
958
  };
959
+ table: {
960
+ /**
961
+ * Fit table to page width
962
+ */
963
+ fitTable: () => LocalizedString;
964
+ /**
965
+ * Cell background color
966
+ */
967
+ cellBackground: () => LocalizedString;
968
+ /**
969
+ * Column
970
+ */
971
+ column: () => LocalizedString;
972
+ /**
973
+ * Insert column left
974
+ */
975
+ insertColumnLeft: () => LocalizedString;
976
+ /**
977
+ * Insert column right
978
+ */
979
+ insertColumnRight: () => LocalizedString;
980
+ /**
981
+ * Delete column
982
+ */
983
+ deleteColumn: () => LocalizedString;
984
+ /**
985
+ * Row
986
+ */
987
+ row: () => LocalizedString;
988
+ /**
989
+ * Insert row above
990
+ */
991
+ insertRowAbove: () => LocalizedString;
992
+ /**
993
+ * Insert row below
994
+ */
995
+ insertRowBelow: () => LocalizedString;
996
+ /**
997
+ * Delete row
998
+ */
999
+ deleteRow: () => LocalizedString;
1000
+ /**
1001
+ * Merge cells
1002
+ */
1003
+ merge: () => LocalizedString;
1004
+ /**
1005
+ * Merge cell up
1006
+ */
1007
+ mergeUp: () => LocalizedString;
1008
+ /**
1009
+ * Merge cell right
1010
+ */
1011
+ mergeRight: () => LocalizedString;
1012
+ /**
1013
+ * Merge cell down
1014
+ */
1015
+ mergeDown: () => LocalizedString;
1016
+ /**
1017
+ * Merge cell left
1018
+ */
1019
+ mergeLeft: () => LocalizedString;
1020
+ /**
1021
+ * Split cell
1022
+ */
1023
+ split: () => LocalizedString;
1024
+ /**
1025
+ * Split cell left and right
1026
+ */
1027
+ splitLeftRight: () => LocalizedString;
1028
+ /**
1029
+ * Split cell top and bottom
1030
+ */
1031
+ splitTopBottom: () => LocalizedString;
1032
+ /**
1033
+ * Remove table
1034
+ */
1035
+ remove: () => LocalizedString;
1036
+ };
849
1037
  image: {
850
1038
  /**
851
1039
  * Full screen
@@ -904,7 +1092,7 @@ export type TranslationFunctions = {
904
1092
  */
905
1093
  pageWidth: () => LocalizedString;
906
1094
  /**
907
- * Original width
1095
+ * Original image width
908
1096
  */
909
1097
  originalWidth: () => LocalizedString;
910
1098
  /**
@@ -915,6 +1103,14 @@ export type TranslationFunctions = {
915
1103
  * Open image in new tab
916
1104
  */
917
1105
  open: () => LocalizedString;
1106
+ /**
1107
+ * Caption
1108
+ */
1109
+ caption: () => LocalizedString;
1110
+ /**
1111
+ * Write a caption...
1112
+ */
1113
+ captionPlaceholder: () => LocalizedString;
918
1114
  };
919
1115
  file: {
920
1116
  /**
@@ -964,7 +1160,7 @@ export type TranslationFunctions = {
964
1160
  */
965
1161
  help: () => LocalizedString;
966
1162
  /**
967
- * Type a TeX expression
1163
+ * Type a TeX expression...
968
1164
  */
969
1165
  placeholder: () => LocalizedString;
970
1166
  };
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  heading5: string;
36
36
  heading6: string;
37
37
  list: string;
38
+ table: string;
38
39
  align: string;
39
40
  indent: string;
40
41
  fontFamily: string;
@@ -71,6 +72,8 @@ declare const _default: {
71
72
  bulletedListDesc: string;
72
73
  checklist: string;
73
74
  checklistDesc: string;
75
+ table: string;
76
+ tableDesc: string;
74
77
  hr: string;
75
78
  hrDesc: string;
76
79
  codeBlock: string;
@@ -93,6 +96,27 @@ declare const _default: {
93
96
  save: string;
94
97
  unlink: string;
95
98
  };
99
+ table: {
100
+ fitTable: string;
101
+ cellBackground: string;
102
+ column: string;
103
+ insertColumnLeft: string;
104
+ insertColumnRight: string;
105
+ deleteColumn: string;
106
+ row: string;
107
+ insertRowAbove: string;
108
+ insertRowBelow: string;
109
+ deleteRow: string;
110
+ merge: string;
111
+ mergeUp: string;
112
+ mergeRight: string;
113
+ mergeDown: string;
114
+ mergeLeft: string;
115
+ split: string;
116
+ splitLeftRight: string;
117
+ splitTopBottom: string;
118
+ remove: string;
119
+ };
96
120
  image: {
97
121
  view: string;
98
122
  remove: string;
@@ -111,6 +135,8 @@ declare const _default: {
111
135
  originalWidth: string;
112
136
  imageWidth: "{0} 图片大小";
113
137
  open: string;
138
+ caption: string;
139
+ captionPlaceholder: string;
114
140
  };
115
141
  file: {
116
142
  download: string;
package/lib/index.d.ts CHANGED
@@ -4,10 +4,12 @@ import './elements/bookmark';
4
4
  import { BoxComponent, BoxValue } from './types/box';
5
5
  import { ToolbarItem } from './types/toolbar';
6
6
  import { DropdownMenuItem } from './types/dropdown';
7
- import { MentionItem } from './types/mention';
8
- import { SlashItem } from './types/slash';
7
+ import { MentionItem } from './plugins/mention/types';
8
+ import { SlashItem } from './plugins/slash/types';
9
9
  import { icons } from './icons';
10
- import * as Utils from './utils';
10
+ import { query } from './utils/query';
11
+ import { template } from './utils/template';
12
+ import { toHex } from './utils/to-hex';
11
13
  import { Nodes } from './models/nodes';
12
14
  import { Fragment } from './models/fragment';
13
15
  import { Range } from './models/range';
@@ -16,20 +18,18 @@ import { HTMLParser } from './parsers/html-parser';
16
18
  import { TextParser } from './parsers/text-parser';
17
19
  import { insertBookmark } from './operations/insert-bookmark';
18
20
  import { toBookmark } from './operations/to-bookmark';
19
- import { insertNode } from './operations/insert-node';
20
- import { insertFragment } from './operations/insert-fragment';
21
+ import { insertContents } from './operations/insert-contents';
21
22
  import { deleteContents } from './operations/delete-contents';
22
23
  import { setBlocks } from './operations/set-blocks';
23
24
  import { splitBlock } from './operations/split-block';
25
+ import { insertBlock } from './operations/insert-block';
24
26
  import { splitMarks } from './operations/split-marks';
25
27
  import { addMark } from './operations/add-mark';
26
28
  import { removeMark } from './operations/remove-mark';
27
- import { fixList } from './operations/fix-list';
28
- import { insertLink } from './operations/insert-link';
29
29
  import { insertBox } from './operations/insert-box';
30
30
  import { removeBox } from './operations/remove-box';
31
31
  import { Button } from './ui/button';
32
32
  import { Dropdown } from './ui/dropdown';
33
33
  import { Editor } from './editor';
34
34
  import { Toolbar } from './ui/toolbar';
35
- export { Editor, Toolbar, ToolbarItem, DropdownMenuItem, MentionItem, SlashItem, BoxComponent, BoxValue, Button, Dropdown, icons, Utils, Nodes, Fragment, Range, Box, HTMLParser, TextParser, insertBookmark, toBookmark, insertNode, insertFragment, deleteContents, setBlocks, splitBlock, splitMarks, addMark, removeMark, fixList, insertLink, insertBox, removeBox, };
35
+ export { icons, ToolbarItem, DropdownMenuItem, MentionItem, SlashItem, BoxComponent, BoxValue, Editor, Toolbar, Button, Dropdown, Nodes, Fragment, Range, Box, HTMLParser, TextParser, query, template, toHex, insertBookmark, toBookmark, insertContents, deleteContents, setBlocks, splitBlock, insertBlock, splitMarks, addMark, removeMark, insertBox, removeBox, };