lakelib 0.2.6 → 0.3.1
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 +6 -6
- package/dist/lake.css +377 -363
- package/dist/lake.min.js +40 -40
- package/dist/lake.min.js.map +1 -1
- package/lib/css/index.d.ts +0 -11
- package/lib/editor.d.ts +19 -19
- package/lib/i18n/en-US/index.d.ts +24 -0
- package/lib/i18n/ja/index.d.ts +24 -0
- package/lib/i18n/ko/index.d.ts +24 -0
- package/lib/i18n/types.d.ts +182 -2
- package/lib/i18n/zh-CN/index.d.ts +24 -0
- package/lib/index.d.ts +8 -8
- package/lib/lake.css +126 -112
- package/lib/lake.js +5709 -4679
- 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/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/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 +19 -18
- 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
|
@@ -11,18 +11,7 @@ import './resizer.css';
|
|
|
11
11
|
import './corner-toolbar.css';
|
|
12
12
|
import './format-painter.css';
|
|
13
13
|
import './heading.css';
|
|
14
|
-
import './link.css';
|
|
15
14
|
import './list.css';
|
|
16
15
|
import './block-quote.css';
|
|
17
|
-
import './table.css';
|
|
18
|
-
import './hr.css';
|
|
19
|
-
import './code-block.css';
|
|
20
|
-
import './image.css';
|
|
21
|
-
import './video.css';
|
|
22
|
-
import './file.css';
|
|
23
|
-
import './emoji.css';
|
|
24
|
-
import './equation.css';
|
|
25
|
-
import './mention.css';
|
|
26
|
-
import './slash.css';
|
|
27
16
|
import './toolbar.css';
|
|
28
17
|
import './floating-toolbar.css';
|
package/lib/editor.d.ts
CHANGED
|
@@ -41,23 +41,23 @@ export declare class Editor {
|
|
|
41
41
|
private unsavedInputCount;
|
|
42
42
|
private state;
|
|
43
43
|
private unmountPluginMap;
|
|
44
|
-
|
|
45
|
-
static
|
|
46
|
-
static
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
container: Nodes;
|
|
52
|
-
overlayContainer: Nodes;
|
|
44
|
+
private readonly containerWrapper;
|
|
45
|
+
static readonly version: string;
|
|
46
|
+
static readonly box: BoxManager;
|
|
47
|
+
static readonly plugin: Plugin;
|
|
48
|
+
readonly root: Nodes;
|
|
49
|
+
readonly toolbar: Toolbar | undefined;
|
|
50
|
+
readonly config: Config;
|
|
51
|
+
readonly container: Nodes;
|
|
52
|
+
readonly overlayContainer: Nodes;
|
|
53
|
+
readonly event: EventEmitter;
|
|
54
|
+
readonly selection: Selection;
|
|
55
|
+
readonly command: Command;
|
|
56
|
+
readonly history: History;
|
|
57
|
+
readonly keystroke: Keystroke;
|
|
58
|
+
readonly box: BoxManager;
|
|
59
|
+
readonly readonly: boolean;
|
|
53
60
|
isComposing: boolean;
|
|
54
|
-
readonly: boolean;
|
|
55
|
-
event: EventEmitter;
|
|
56
|
-
selection: Selection;
|
|
57
|
-
command: Command;
|
|
58
|
-
history: History;
|
|
59
|
-
keystroke: Keystroke;
|
|
60
|
-
box: BoxManager;
|
|
61
61
|
popup: any;
|
|
62
62
|
constructor(config: EditorConfig);
|
|
63
63
|
private copyListener;
|
|
@@ -75,16 +75,16 @@ export declare class Editor {
|
|
|
75
75
|
private bindInputEvents;
|
|
76
76
|
private removeBoxGarbage;
|
|
77
77
|
private bindHistoryEvents;
|
|
78
|
-
get hasFocus(): boolean;
|
|
79
78
|
get locale(): TranslationFunctions;
|
|
80
|
-
fixContent(): boolean;
|
|
81
79
|
setPluginConfig(name: string, config: {
|
|
82
80
|
[key: string]: any;
|
|
83
81
|
}): void;
|
|
82
|
+
fixContent(): boolean;
|
|
84
83
|
renderBoxes(): void;
|
|
84
|
+
scrollToCursor(): void;
|
|
85
|
+
hasFocus(): boolean;
|
|
85
86
|
focus(): void;
|
|
86
87
|
blur(): void;
|
|
87
|
-
scrollToCaret(): void;
|
|
88
88
|
setValue(value: string): void;
|
|
89
89
|
getValue(): string;
|
|
90
90
|
render(): 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;
|
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;
|
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;
|
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
|
|
@@ -490,7 +580,7 @@ type RootTranslation = {
|
|
|
490
580
|
*/
|
|
491
581
|
help: string;
|
|
492
582
|
/**
|
|
493
|
-
* Type a TeX expression
|
|
583
|
+
* Type a TeX expression...
|
|
494
584
|
*/
|
|
495
585
|
placeholder: string;
|
|
496
586
|
};
|
|
@@ -637,6 +727,10 @@ export type TranslationFunctions = {
|
|
|
637
727
|
* List
|
|
638
728
|
*/
|
|
639
729
|
list: () => LocalizedString;
|
|
730
|
+
/**
|
|
731
|
+
* Table
|
|
732
|
+
*/
|
|
733
|
+
table: () => LocalizedString;
|
|
640
734
|
/**
|
|
641
735
|
* Alignment
|
|
642
736
|
*/
|
|
@@ -775,6 +869,14 @@ export type TranslationFunctions = {
|
|
|
775
869
|
* Create a checklist
|
|
776
870
|
*/
|
|
777
871
|
checklistDesc: () => LocalizedString;
|
|
872
|
+
/**
|
|
873
|
+
* Table
|
|
874
|
+
*/
|
|
875
|
+
table: () => LocalizedString;
|
|
876
|
+
/**
|
|
877
|
+
* Insert a table
|
|
878
|
+
*/
|
|
879
|
+
tableDesc: () => LocalizedString;
|
|
778
880
|
/**
|
|
779
881
|
* Horizontal line
|
|
780
882
|
*/
|
|
@@ -854,6 +956,84 @@ export type TranslationFunctions = {
|
|
|
854
956
|
*/
|
|
855
957
|
unlink: () => LocalizedString;
|
|
856
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
|
+
};
|
|
857
1037
|
image: {
|
|
858
1038
|
/**
|
|
859
1039
|
* Full screen
|
|
@@ -980,7 +1160,7 @@ export type TranslationFunctions = {
|
|
|
980
1160
|
*/
|
|
981
1161
|
help: () => LocalizedString;
|
|
982
1162
|
/**
|
|
983
|
-
* Type a TeX expression
|
|
1163
|
+
* Type a TeX expression...
|
|
984
1164
|
*/
|
|
985
1165
|
placeholder: () => LocalizedString;
|
|
986
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;
|
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, };
|