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.
- package/README.md +5 -5
- package/dist/lake.css +433 -398
- package/dist/lake.min.js +41 -56
- package/dist/lake.min.js.map +1 -1
- package/lib/css/index.d.ts +1 -11
- package/lib/editor.d.ts +1 -1
- package/lib/i18n/en-US/index.d.ts +26 -0
- package/lib/i18n/ja/index.d.ts +26 -0
- package/lib/i18n/ko/index.d.ts +26 -0
- package/lib/i18n/types.d.ts +200 -4
- package/lib/i18n/zh-CN/index.d.ts +26 -0
- package/lib/index.d.ts +8 -8
- package/lib/lake.css +182 -147
- package/lib/lake.js +5494 -4280
- package/lib/lake.js.map +1 -1
- package/lib/managers/command.d.ts +4 -4
- package/lib/managers/selection.d.ts +6 -10
- package/lib/operations/insert-block.d.ts +3 -0
- package/lib/operations/insert-contents.d.ts +4 -0
- package/lib/operations/split-block.d.ts +1 -1
- package/lib/operations/split-marks.d.ts +1 -1
- package/lib/plugins/align.d.ts +1 -1
- package/lib/plugins/arrow-keys.d.ts +1 -1
- package/lib/plugins/backspace-key.d.ts +1 -1
- package/lib/plugins/block-quote.d.ts +1 -1
- package/lib/plugins/bold.d.ts +1 -1
- package/lib/plugins/code-block/code-block-box.d.ts +4 -0
- package/lib/plugins/code-block/index.d.ts +5 -0
- package/lib/plugins/code.d.ts +1 -1
- package/lib/plugins/copy.d.ts +1 -1
- package/lib/plugins/cut.d.ts +1 -1
- package/lib/plugins/delete-key.d.ts +1 -1
- package/lib/plugins/drop.d.ts +1 -1
- package/lib/plugins/emoji/emoji-box.d.ts +4 -0
- package/lib/plugins/emoji/index.d.ts +5 -0
- package/lib/plugins/enter-key.d.ts +1 -1
- package/lib/plugins/equation/equation-box.d.ts +4 -0
- package/lib/plugins/equation/index.d.ts +5 -0
- package/lib/plugins/escape-key.d.ts +1 -1
- package/lib/plugins/file/file-box.d.ts +4 -0
- package/lib/plugins/file/index.d.ts +5 -0
- package/lib/plugins/font-color.d.ts +1 -1
- package/lib/plugins/font-family.d.ts +1 -1
- package/lib/plugins/font-size.d.ts +1 -1
- package/lib/plugins/format-painter.d.ts +1 -1
- package/lib/plugins/heading.d.ts +1 -1
- package/lib/plugins/highlight.d.ts +1 -1
- package/lib/plugins/hr/hr-box.d.ts +4 -0
- package/lib/plugins/hr/index.d.ts +5 -0
- package/lib/{boxes/image.d.ts → plugins/image/image-box.d.ts} +2 -1
- package/lib/plugins/image/index.d.ts +5 -0
- package/lib/plugins/indent.d.ts +1 -1
- package/lib/plugins/italic.d.ts +1 -1
- package/lib/plugins/{link.d.ts → link/index.d.ts} +1 -1
- package/lib/plugins/link/insert-link.d.ts +3 -0
- package/lib/{ui → plugins/link}/link-popup.d.ts +3 -2
- package/lib/plugins/list.d.ts +1 -1
- package/lib/plugins/markdown.d.ts +1 -1
- package/lib/plugins/mention/index.d.ts +5 -0
- package/lib/plugins/mention/mention-box.d.ts +4 -0
- package/lib/{ui → plugins/mention}/mention-menu.d.ts +4 -3
- package/lib/plugins/paste.d.ts +1 -1
- package/lib/plugins/redo.d.ts +1 -1
- package/lib/plugins/remove-format.d.ts +1 -1
- package/lib/plugins/select-all.d.ts +1 -1
- package/lib/plugins/shift-enter-key.d.ts +1 -1
- package/lib/plugins/{mention.d.ts → slash/index.d.ts} +1 -1
- package/lib/{config → plugins/slash}/slash-items.d.ts +1 -1
- package/lib/{ui → plugins/slash}/slash-menu.d.ts +5 -4
- package/lib/{types/slash.d.ts → plugins/slash/types.d.ts} +2 -2
- package/lib/plugins/special-character.d.ts +1 -1
- package/lib/plugins/strikethrough.d.ts +1 -1
- package/lib/plugins/subscript.d.ts +1 -1
- package/lib/plugins/superscript.d.ts +1 -1
- package/lib/plugins/tab-key.d.ts +1 -1
- package/lib/plugins/table/delete-column.d.ts +2 -0
- package/lib/plugins/table/delete-row.d.ts +2 -0
- package/lib/plugins/table/delete-table.d.ts +2 -0
- package/lib/plugins/{slash.d.ts → table/index.d.ts} +2 -1
- package/lib/plugins/table/insert-column.d.ts +4 -0
- package/lib/plugins/table/insert-row.d.ts +4 -0
- package/lib/plugins/table/insert-table.d.ts +3 -0
- package/lib/plugins/table/merge-cells.d.ts +3 -0
- package/lib/plugins/table/split-cell.d.ts +3 -0
- package/lib/plugins/table/utils.d.ts +6 -0
- package/lib/plugins/underline.d.ts +1 -1
- package/lib/plugins/undo.d.ts +1 -1
- package/lib/plugins/unlink.d.ts +1 -1
- package/lib/plugins/video/index.d.ts +5 -0
- package/lib/plugins/video/video-box.d.ts +4 -0
- package/lib/storage/editors.d.ts +1 -1
- package/lib/types/corner-toolbar.d.ts +7 -0
- package/lib/types/dropdown.d.ts +1 -0
- package/lib/types/native.d.ts +0 -8
- package/lib/types/node.d.ts +12 -0
- package/lib/types/object.d.ts +0 -24
- package/lib/types/selection.d.ts +14 -0
- package/lib/types/toolbar.d.ts +5 -5
- package/lib/ui/corner-toolbar.d.ts +18 -0
- package/lib/ui/floating-toolbar.d.ts +1 -1
- package/lib/ui/resizer.d.ts +0 -2
- package/lib/ui/toolbar.d.ts +2 -2
- package/lib/utils/indent-block.d.ts +2 -0
- package/lib/utils/remove-empty-marks.d.ts +2 -0
- package/lib/utils/unsafe-template.d.ts +1 -0
- package/lib/utils/visible-info.d.ts +10 -0
- package/package.json +15 -14
- package/lib/boxes/code-block.d.ts +0 -3
- package/lib/boxes/emoji.d.ts +0 -3
- package/lib/boxes/equation.d.ts +0 -3
- package/lib/boxes/file.d.ts +0 -3
- package/lib/boxes/hr.d.ts +0 -3
- package/lib/boxes/mention.d.ts +0 -3
- package/lib/boxes/video.d.ts +0 -3
- package/lib/operations/fix-list.d.ts +0 -2
- package/lib/operations/insert-fragment.d.ts +0 -3
- package/lib/operations/insert-link.d.ts +0 -3
- package/lib/operations/insert-node.d.ts +0 -3
- package/lib/plugins/code-block.d.ts +0 -3
- package/lib/plugins/emoji.d.ts +0 -3
- package/lib/plugins/equation.d.ts +0 -3
- package/lib/plugins/file.d.ts +0 -3
- package/lib/plugins/hr.d.ts +0 -3
- package/lib/plugins/image.d.ts +0 -3
- package/lib/plugins/video.d.ts +0 -3
- package/lib/utils/index.d.ts +0 -33
- package/lib/utils/is-visible.d.ts +0 -8
- package/lib/utils/safe-template.d.ts +0 -1
- package/lib/utils/set-block-indent.d.ts +0 -2
- /package/lib/{types/mention.d.ts → plugins/mention/types.d.ts} +0 -0
package/lib/css/index.d.ts
CHANGED
|
@@ -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;
|
package/lib/i18n/ja/index.d.ts
CHANGED
|
@@ -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/i18n/ko/index.d.ts
CHANGED
|
@@ -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/i18n/types.d.ts
CHANGED
|
@@ -146,6 +146,10 @@ type RootTranslation = {
|
|
|
146
146
|
* List
|
|
147
147
|
*/
|
|
148
148
|
list: string;
|
|
149
|
+
/**
|
|
150
|
+
* Table
|
|
151
|
+
*/
|
|
152
|
+
table: string;
|
|
149
153
|
/**
|
|
150
154
|
* Alignment
|
|
151
155
|
*/
|
|
@@ -284,6 +288,14 @@ type RootTranslation = {
|
|
|
284
288
|
* Create a checklist
|
|
285
289
|
*/
|
|
286
290
|
checklistDesc: string;
|
|
291
|
+
/**
|
|
292
|
+
* Table
|
|
293
|
+
*/
|
|
294
|
+
table: string;
|
|
295
|
+
/**
|
|
296
|
+
* Insert a table
|
|
297
|
+
*/
|
|
298
|
+
tableDesc: string;
|
|
287
299
|
/**
|
|
288
300
|
* Horizontal line
|
|
289
301
|
*/
|
|
@@ -363,6 +375,84 @@ type RootTranslation = {
|
|
|
363
375
|
*/
|
|
364
376
|
unlink: string;
|
|
365
377
|
};
|
|
378
|
+
table: {
|
|
379
|
+
/**
|
|
380
|
+
* Fit table to page width
|
|
381
|
+
*/
|
|
382
|
+
fitTable: string;
|
|
383
|
+
/**
|
|
384
|
+
* Cell background color
|
|
385
|
+
*/
|
|
386
|
+
cellBackground: string;
|
|
387
|
+
/**
|
|
388
|
+
* Column
|
|
389
|
+
*/
|
|
390
|
+
column: string;
|
|
391
|
+
/**
|
|
392
|
+
* Insert column left
|
|
393
|
+
*/
|
|
394
|
+
insertColumnLeft: string;
|
|
395
|
+
/**
|
|
396
|
+
* Insert column right
|
|
397
|
+
*/
|
|
398
|
+
insertColumnRight: string;
|
|
399
|
+
/**
|
|
400
|
+
* Delete column
|
|
401
|
+
*/
|
|
402
|
+
deleteColumn: string;
|
|
403
|
+
/**
|
|
404
|
+
* Row
|
|
405
|
+
*/
|
|
406
|
+
row: string;
|
|
407
|
+
/**
|
|
408
|
+
* Insert row above
|
|
409
|
+
*/
|
|
410
|
+
insertRowAbove: string;
|
|
411
|
+
/**
|
|
412
|
+
* Insert row below
|
|
413
|
+
*/
|
|
414
|
+
insertRowBelow: string;
|
|
415
|
+
/**
|
|
416
|
+
* Delete row
|
|
417
|
+
*/
|
|
418
|
+
deleteRow: string;
|
|
419
|
+
/**
|
|
420
|
+
* Merge cells
|
|
421
|
+
*/
|
|
422
|
+
merge: string;
|
|
423
|
+
/**
|
|
424
|
+
* Merge cell up
|
|
425
|
+
*/
|
|
426
|
+
mergeUp: string;
|
|
427
|
+
/**
|
|
428
|
+
* Merge cell right
|
|
429
|
+
*/
|
|
430
|
+
mergeRight: string;
|
|
431
|
+
/**
|
|
432
|
+
* Merge cell down
|
|
433
|
+
*/
|
|
434
|
+
mergeDown: string;
|
|
435
|
+
/**
|
|
436
|
+
* Merge cell left
|
|
437
|
+
*/
|
|
438
|
+
mergeLeft: string;
|
|
439
|
+
/**
|
|
440
|
+
* Split cell
|
|
441
|
+
*/
|
|
442
|
+
split: string;
|
|
443
|
+
/**
|
|
444
|
+
* Split cell left and right
|
|
445
|
+
*/
|
|
446
|
+
splitLeftRight: string;
|
|
447
|
+
/**
|
|
448
|
+
* Split cell top and bottom
|
|
449
|
+
*/
|
|
450
|
+
splitTopBottom: string;
|
|
451
|
+
/**
|
|
452
|
+
* Remove table
|
|
453
|
+
*/
|
|
454
|
+
remove: string;
|
|
455
|
+
};
|
|
366
456
|
image: {
|
|
367
457
|
/**
|
|
368
458
|
* Full screen
|
|
@@ -421,7 +511,7 @@ type RootTranslation = {
|
|
|
421
511
|
*/
|
|
422
512
|
pageWidth: string;
|
|
423
513
|
/**
|
|
424
|
-
* Original width
|
|
514
|
+
* Original image width
|
|
425
515
|
*/
|
|
426
516
|
originalWidth: string;
|
|
427
517
|
/**
|
|
@@ -433,6 +523,14 @@ type RootTranslation = {
|
|
|
433
523
|
* Open image in new tab
|
|
434
524
|
*/
|
|
435
525
|
open: string;
|
|
526
|
+
/**
|
|
527
|
+
* Caption
|
|
528
|
+
*/
|
|
529
|
+
caption: string;
|
|
530
|
+
/**
|
|
531
|
+
* Write a caption...
|
|
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
|
-
* Type a TeX expression
|
|
583
|
+
* Type a TeX expression...
|
|
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 './
|
|
8
|
-
import { SlashItem } from './
|
|
7
|
+
import { MentionItem } from './plugins/mention/types';
|
|
8
|
+
import { SlashItem } from './plugins/slash/types';
|
|
9
9
|
import { icons } from './icons';
|
|
10
|
-
import
|
|
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 {
|
|
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 {
|
|
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, };
|