lakelib 0.3.2 → 0.3.4

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 (173) hide show
  1. package/README.md +28 -22
  2. package/dist/lake.min.css +1 -1
  3. package/dist/lake.min.js +22 -22
  4. package/dist/lake.min.js.map +1 -1
  5. package/lib/lake.css +4 -1
  6. package/lib/lake.d.ts +2148 -0
  7. package/lib/lake.js +1211 -605
  8. package/lib/lake.js.map +1 -1
  9. package/package.json +30 -33
  10. package/lib/config/element-rules.d.ts +0 -1
  11. package/lib/config/menu-items.d.ts +0 -9
  12. package/lib/config/tag-names.d.ts +0 -6
  13. package/lib/config/toolbar-items.d.ts +0 -2
  14. package/lib/css/index.d.ts +0 -17
  15. package/lib/editor.d.ts +0 -93
  16. package/lib/elements/bookmark.d.ts +0 -2
  17. package/lib/elements/box.d.ts +0 -2
  18. package/lib/i18n/en-US/index.d.ts +0 -169
  19. package/lib/i18n/index.d.ts +0 -2
  20. package/lib/i18n/ja/index.d.ts +0 -169
  21. package/lib/i18n/ko/index.d.ts +0 -169
  22. package/lib/i18n/types.d.ts +0 -1233
  23. package/lib/i18n/zh-CN/index.d.ts +0 -169
  24. package/lib/icons/index.d.ts +0 -1
  25. package/lib/index.d.ts +0 -35
  26. package/lib/managers/box-manager.d.ts +0 -6
  27. package/lib/managers/command.d.ts +0 -23
  28. package/lib/managers/history.d.ts +0 -32
  29. package/lib/managers/keystroke.d.ts +0 -11
  30. package/lib/managers/plugin.d.ts +0 -7
  31. package/lib/managers/selection.d.ts +0 -40
  32. package/lib/models/box.d.ts +0 -25
  33. package/lib/models/fragment.d.ts +0 -8
  34. package/lib/models/nodes.d.ts +0 -98
  35. package/lib/models/range.d.ts +0 -56
  36. package/lib/operations/add-mark.d.ts +0 -3
  37. package/lib/operations/delete-contents.d.ts +0 -2
  38. package/lib/operations/insert-block.d.ts +0 -3
  39. package/lib/operations/insert-bookmark.d.ts +0 -6
  40. package/lib/operations/insert-box.d.ts +0 -4
  41. package/lib/operations/insert-contents.d.ts +0 -4
  42. package/lib/operations/remove-box.d.ts +0 -3
  43. package/lib/operations/remove-mark.d.ts +0 -2
  44. package/lib/operations/set-blocks.d.ts +0 -3
  45. package/lib/operations/split-block.d.ts +0 -3
  46. package/lib/operations/split-marks.d.ts +0 -3
  47. package/lib/operations/to-bookmark.d.ts +0 -6
  48. package/lib/parsers/html-parser.d.ts +0 -13
  49. package/lib/parsers/text-parser.d.ts +0 -6
  50. package/lib/plugins/align.d.ts +0 -3
  51. package/lib/plugins/arrow-keys.d.ts +0 -3
  52. package/lib/plugins/backspace-key.d.ts +0 -3
  53. package/lib/plugins/block-quote.d.ts +0 -3
  54. package/lib/plugins/bold.d.ts +0 -3
  55. package/lib/plugins/code-block/code-block-box.d.ts +0 -4
  56. package/lib/plugins/code-block/index.d.ts +0 -5
  57. package/lib/plugins/code.d.ts +0 -3
  58. package/lib/plugins/copy.d.ts +0 -3
  59. package/lib/plugins/cut.d.ts +0 -3
  60. package/lib/plugins/delete-key.d.ts +0 -3
  61. package/lib/plugins/drop.d.ts +0 -3
  62. package/lib/plugins/emoji/emoji-box.d.ts +0 -4
  63. package/lib/plugins/emoji/index.d.ts +0 -5
  64. package/lib/plugins/enter-key.d.ts +0 -3
  65. package/lib/plugins/equation/equation-box.d.ts +0 -4
  66. package/lib/plugins/equation/index.d.ts +0 -5
  67. package/lib/plugins/escape-key.d.ts +0 -3
  68. package/lib/plugins/file/file-box.d.ts +0 -4
  69. package/lib/plugins/file/index.d.ts +0 -5
  70. package/lib/plugins/font-color.d.ts +0 -3
  71. package/lib/plugins/font-family.d.ts +0 -3
  72. package/lib/plugins/font-size.d.ts +0 -3
  73. package/lib/plugins/format-painter.d.ts +0 -3
  74. package/lib/plugins/heading.d.ts +0 -3
  75. package/lib/plugins/highlight.d.ts +0 -3
  76. package/lib/plugins/hr/hr-box.d.ts +0 -4
  77. package/lib/plugins/hr/index.d.ts +0 -5
  78. package/lib/plugins/image/image-box.d.ts +0 -5
  79. package/lib/plugins/image/index.d.ts +0 -5
  80. package/lib/plugins/indent.d.ts +0 -3
  81. package/lib/plugins/italic.d.ts +0 -3
  82. package/lib/plugins/link/index.d.ts +0 -3
  83. package/lib/plugins/link/insert-link.d.ts +0 -3
  84. package/lib/plugins/link/link-popup.d.ts +0 -32
  85. package/lib/plugins/list.d.ts +0 -3
  86. package/lib/plugins/markdown.d.ts +0 -3
  87. package/lib/plugins/mention/index.d.ts +0 -5
  88. package/lib/plugins/mention/mention-box.d.ts +0 -4
  89. package/lib/plugins/mention/mention-menu.d.ts +0 -15
  90. package/lib/plugins/mention/types.d.ts +0 -6
  91. package/lib/plugins/paste.d.ts +0 -3
  92. package/lib/plugins/redo.d.ts +0 -3
  93. package/lib/plugins/remove-format.d.ts +0 -3
  94. package/lib/plugins/select-all.d.ts +0 -3
  95. package/lib/plugins/shift-enter-key.d.ts +0 -3
  96. package/lib/plugins/slash/index.d.ts +0 -3
  97. package/lib/plugins/slash/slash-items.d.ts +0 -2
  98. package/lib/plugins/slash/slash-menu.d.ts +0 -19
  99. package/lib/plugins/slash/types.d.ts +0 -20
  100. package/lib/plugins/special-character.d.ts +0 -3
  101. package/lib/plugins/strikethrough.d.ts +0 -3
  102. package/lib/plugins/subscript.d.ts +0 -3
  103. package/lib/plugins/superscript.d.ts +0 -3
  104. package/lib/plugins/tab-key.d.ts +0 -3
  105. package/lib/plugins/table/delete-column.d.ts +0 -2
  106. package/lib/plugins/table/delete-row.d.ts +0 -2
  107. package/lib/plugins/table/delete-table.d.ts +0 -2
  108. package/lib/plugins/table/index.d.ts +0 -4
  109. package/lib/plugins/table/insert-column.d.ts +0 -4
  110. package/lib/plugins/table/insert-row.d.ts +0 -4
  111. package/lib/plugins/table/insert-table.d.ts +0 -3
  112. package/lib/plugins/table/merge-cells.d.ts +0 -3
  113. package/lib/plugins/table/split-cell.d.ts +0 -3
  114. package/lib/plugins/table/utils.d.ts +0 -6
  115. package/lib/plugins/underline.d.ts +0 -3
  116. package/lib/plugins/undo.d.ts +0 -3
  117. package/lib/plugins/unlink.d.ts +0 -3
  118. package/lib/plugins/video/index.d.ts +0 -5
  119. package/lib/plugins/video/video-box.d.ts +0 -4
  120. package/lib/storage/box-instances.d.ts +0 -2
  121. package/lib/storage/boxes.d.ts +0 -2
  122. package/lib/storage/editors.d.ts +0 -2
  123. package/lib/types/box.d.ts +0 -15
  124. package/lib/types/corner-toolbar.d.ts +0 -7
  125. package/lib/types/dropdown.d.ts +0 -23
  126. package/lib/types/native.d.ts +0 -2
  127. package/lib/types/node.d.ts +0 -13
  128. package/lib/types/object.d.ts +0 -3
  129. package/lib/types/plugin.d.ts +0 -3
  130. package/lib/types/request.d.ts +0 -20
  131. package/lib/types/selection.d.ts +0 -14
  132. package/lib/types/toolbar.d.ts +0 -29
  133. package/lib/ui/button.d.ts +0 -19
  134. package/lib/ui/corner-toolbar.d.ts +0 -18
  135. package/lib/ui/dropdown.d.ts +0 -36
  136. package/lib/ui/floating-toolbar.d.ts +0 -16
  137. package/lib/ui/menu.d.ts +0 -33
  138. package/lib/ui/resizer.d.ts +0 -17
  139. package/lib/ui/toolbar.d.ts +0 -29
  140. package/lib/utils/append-break.d.ts +0 -2
  141. package/lib/utils/camel-case.d.ts +0 -1
  142. package/lib/utils/change-tag-name.d.ts +0 -2
  143. package/lib/utils/debug.d.ts +0 -1
  144. package/lib/utils/denormalize-value.d.ts +0 -1
  145. package/lib/utils/encode.d.ts +0 -1
  146. package/lib/utils/file-size.d.ts +0 -1
  147. package/lib/utils/fix-numbered-list.d.ts +0 -2
  148. package/lib/utils/from-base64.d.ts +0 -1
  149. package/lib/utils/get-box.d.ts +0 -3
  150. package/lib/utils/get-css.d.ts +0 -1
  151. package/lib/utils/get-deep-element.d.ts +0 -2
  152. package/lib/utils/in-string.d.ts +0 -1
  153. package/lib/utils/indent-block.d.ts +0 -2
  154. package/lib/utils/merge-nodes.d.ts +0 -5
  155. package/lib/utils/modifier-text.d.ts +0 -1
  156. package/lib/utils/morph.d.ts +0 -56
  157. package/lib/utils/normalize-value.d.ts +0 -1
  158. package/lib/utils/parse-style.d.ts +0 -2
  159. package/lib/utils/query.d.ts +0 -2
  160. package/lib/utils/remove-break.d.ts +0 -2
  161. package/lib/utils/remove-empty-marks.d.ts +0 -2
  162. package/lib/utils/remove-zws.d.ts +0 -2
  163. package/lib/utils/request.d.ts +0 -27
  164. package/lib/utils/scroll-to-node.d.ts +0 -2
  165. package/lib/utils/split-nodes.d.ts +0 -5
  166. package/lib/utils/template.d.ts +0 -1
  167. package/lib/utils/to-base64.d.ts +0 -1
  168. package/lib/utils/to-hex.d.ts +0 -1
  169. package/lib/utils/to-node-list.d.ts +0 -1
  170. package/lib/utils/unsafe-template.d.ts +0 -1
  171. package/lib/utils/upload-file.d.ts +0 -11
  172. package/lib/utils/visible-info.d.ts +0 -10
  173. package/lib/utils/wrap-node-list.d.ts +0 -2
@@ -1,1233 +0,0 @@
1
- import type { BaseTranslation as BaseTranslationType, LocalizedString, RequiredParams } from 'typesafe-i18n';
2
- export type BaseTranslation = BaseTranslationType;
3
- export type BaseLocale = 'en-US';
4
- export type Locales = 'en-US' | 'ja' | 'ko' | 'zh-CN';
5
- export type Translation = RootTranslation;
6
- export type Translations = RootTranslation;
7
- type RootTranslation = {
8
- toolbar: {
9
- /**
10
- * U​n​d​o​ ​(​m​o​d​+​Z​)
11
- */
12
- undo: string;
13
- /**
14
- * R​e​d​o​ ​(​m​o​d​+​Y​)
15
- */
16
- redo: string;
17
- /**
18
- * S​e​l​e​c​t​ ​a​l​l​ ​(​m​o​d​+​A​)
19
- */
20
- selectAll: string;
21
- /**
22
- * P​a​r​a​g​r​a​p​h
23
- */
24
- paragraph: string;
25
- /**
26
- * B​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
27
- */
28
- blockQuote: string;
29
- /**
30
- * N​u​m​b​e​r​e​d​ ​l​i​s​t
31
- */
32
- numberedList: string;
33
- /**
34
- * B​u​l​l​e​t​e​d​ ​l​i​s​t
35
- */
36
- bulletedList: string;
37
- /**
38
- * C​h​e​c​k​l​i​s​t
39
- */
40
- checklist: string;
41
- /**
42
- * A​l​i​g​n​ ​l​e​f​t
43
- */
44
- alignLeft: string;
45
- /**
46
- * A​l​i​g​n​ ​c​e​n​t​e​r
47
- */
48
- alignCenter: string;
49
- /**
50
- * A​l​i​g​n​ ​r​i​g​h​t
51
- */
52
- alignRight: string;
53
- /**
54
- * J​u​s​t​i​f​y
55
- */
56
- alignJustify: string;
57
- /**
58
- * I​n​c​r​e​a​s​e​ ​i​n​d​e​n​t
59
- */
60
- increaseIndent: string;
61
- /**
62
- * D​e​c​r​e​a​s​e​ ​i​n​d​e​n​t
63
- */
64
- decreaseIndent: string;
65
- /**
66
- * B​o​l​d​ ​(​m​o​d​+​B​)
67
- */
68
- bold: string;
69
- /**
70
- * I​t​a​l​i​c​ ​(​m​o​d​+​I​)
71
- */
72
- italic: string;
73
- /**
74
- * U​n​d​e​r​l​i​n​e​ ​(​m​o​d​+​U​)
75
- */
76
- underline: string;
77
- /**
78
- * S​t​r​i​k​e​t​h​r​o​u​g​h
79
- */
80
- strikethrough: string;
81
- /**
82
- * S​u​p​e​r​s​c​r​i​p​t
83
- */
84
- superscript: string;
85
- /**
86
- * S​u​b​s​c​r​i​p​t
87
- */
88
- subscript: string;
89
- /**
90
- * I​n​l​i​n​e​ ​c​o​d​e
91
- */
92
- code: string;
93
- /**
94
- * R​e​m​o​v​e​ ​f​o​r​m​a​t
95
- */
96
- removeFormat: string;
97
- /**
98
- * F​o​r​m​a​t​ ​p​a​i​n​t​e​r
99
- */
100
- formatPainter: string;
101
- /**
102
- * L​i​n​k
103
- */
104
- link: string;
105
- /**
106
- * H​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
107
- */
108
- hr: string;
109
- /**
110
- * V​i​d​e​o
111
- */
112
- video: string;
113
- /**
114
- * C​o​d​e​ ​b​l​o​c​k
115
- */
116
- codeBlock: string;
117
- /**
118
- * H​e​a​d​i​n​g
119
- */
120
- heading: string;
121
- /**
122
- * H​e​a​d​i​n​g​ ​1
123
- */
124
- heading1: string;
125
- /**
126
- * H​e​a​d​i​n​g​ ​2
127
- */
128
- heading2: string;
129
- /**
130
- * H​e​a​d​i​n​g​ ​3
131
- */
132
- heading3: string;
133
- /**
134
- * H​e​a​d​i​n​g​ ​4
135
- */
136
- heading4: string;
137
- /**
138
- * H​e​a​d​i​n​g​ ​5
139
- */
140
- heading5: string;
141
- /**
142
- * H​e​a​d​i​n​g​ ​6
143
- */
144
- heading6: string;
145
- /**
146
- * L​i​s​t
147
- */
148
- list: string;
149
- /**
150
- * T​a​b​l​e
151
- */
152
- table: string;
153
- /**
154
- * A​l​i​g​n​m​e​n​t
155
- */
156
- align: string;
157
- /**
158
- * I​n​d​e​n​t
159
- */
160
- indent: string;
161
- /**
162
- * F​o​n​t​ ​f​a​m​i​l​y
163
- */
164
- fontFamily: string;
165
- /**
166
- * F​o​n​t​ ​s​i​z​e
167
- */
168
- fontSize: string;
169
- /**
170
- * M​o​r​e​ ​s​t​y​l​e
171
- */
172
- moreStyle: string;
173
- /**
174
- * F​o​n​t​ ​c​o​l​o​r
175
- */
176
- fontColor: string;
177
- /**
178
- * H​i​g​h​l​i​g​h​t
179
- */
180
- highlight: string;
181
- /**
182
- * I​m​a​g​e
183
- */
184
- image: string;
185
- /**
186
- * F​i​l​e
187
- */
188
- file: string;
189
- /**
190
- * E​m​o​j​i
191
- */
192
- emoji: string;
193
- /**
194
- * M​a​t​h​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
195
- */
196
- equation: string;
197
- /**
198
- * R​e​m​o​v​e​ ​c​o​l​o​r
199
- */
200
- removeColor: string;
201
- };
202
- slash: {
203
- /**
204
- * H​e​a​d​i​n​g​ ​1
205
- */
206
- heading1: string;
207
- /**
208
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​1
209
- */
210
- heading1Desc: string;
211
- /**
212
- * H​e​a​d​i​n​g​ ​2
213
- */
214
- heading2: string;
215
- /**
216
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​2
217
- */
218
- heading2Desc: string;
219
- /**
220
- * H​e​a​d​i​n​g​ ​3
221
- */
222
- heading3: string;
223
- /**
224
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​3
225
- */
226
- heading3Desc: string;
227
- /**
228
- * H​e​a​d​i​n​g​ ​4
229
- */
230
- heading4: string;
231
- /**
232
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​4
233
- */
234
- heading4Desc: string;
235
- /**
236
- * H​e​a​d​i​n​g​ ​5
237
- */
238
- heading5: string;
239
- /**
240
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​5
241
- */
242
- heading5Desc: string;
243
- /**
244
- * H​e​a​d​i​n​g​ ​6
245
- */
246
- heading6: string;
247
- /**
248
- * C​r​e​a​t​e​ ​a​ ​h​e​a​d​i​n​g​ ​l​e​v​e​l​ ​6
249
- */
250
- heading6Desc: string;
251
- /**
252
- * P​a​r​a​g​r​a​p​h
253
- */
254
- paragraph: string;
255
- /**
256
- * C​r​e​a​t​e​ ​a​ ​p​a​r​a​g​r​a​p​h
257
- */
258
- paragraphDesc: string;
259
- /**
260
- * B​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
261
- */
262
- blockQuote: string;
263
- /**
264
- * C​r​e​a​t​e​ ​a​ ​b​l​o​c​k​ ​q​u​o​t​a​t​i​o​n
265
- */
266
- blockQuoteDesc: string;
267
- /**
268
- * N​u​m​b​e​r​e​d​ ​l​i​s​t
269
- */
270
- numberedList: string;
271
- /**
272
- * C​r​e​a​t​e​ ​a​ ​n​u​m​b​e​r​e​d​ ​l​i​s​t
273
- */
274
- numberedListDesc: string;
275
- /**
276
- * B​u​l​l​e​t​e​d​ ​l​i​s​t
277
- */
278
- bulletedList: string;
279
- /**
280
- * C​r​e​a​t​e​ ​a​ ​b​u​l​l​e​t​e​d​ ​l​i​s​t
281
- */
282
- bulletedListDesc: string;
283
- /**
284
- * C​h​e​c​k​l​i​s​t
285
- */
286
- checklist: string;
287
- /**
288
- * C​r​e​a​t​e​ ​a​ ​c​h​e​c​k​l​i​s​t
289
- */
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;
299
- /**
300
- * I​n​f​o​ ​a​l​e​r​t
301
- */
302
- infoAlert: string;
303
- /**
304
- * C​r​e​a​t​e​ ​a​n​ ​i​n​f​o​ ​a​l​e​r​t
305
- */
306
- infoAlertDesc: string;
307
- /**
308
- * T​i​p​ ​a​l​e​r​t
309
- */
310
- tipAlert: string;
311
- /**
312
- * C​r​e​a​t​e​ ​a​ ​t​i​p​ ​a​l​e​r​t
313
- */
314
- tipAlertDesc: string;
315
- /**
316
- * W​a​r​n​i​n​g​ ​a​l​e​r​t
317
- */
318
- warningAlert: string;
319
- /**
320
- * C​r​e​a​t​e​ ​a​ ​w​a​r​n​i​n​g​ ​a​l​e​r​t
321
- */
322
- warningAlertDesc: string;
323
- /**
324
- * D​a​n​g​e​r​ ​a​l​e​r​t
325
- */
326
- dangerAlert: string;
327
- /**
328
- * C​r​e​a​t​e​ ​a​ ​d​a​n​g​e​r​ ​a​l​e​r​t
329
- */
330
- dangerAlertDesc: string;
331
- /**
332
- * H​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
333
- */
334
- hr: string;
335
- /**
336
- * I​n​s​e​r​t​ ​a​ ​h​o​r​i​z​o​n​t​a​l​ ​l​i​n​e
337
- */
338
- hrDesc: string;
339
- /**
340
- * C​o​d​e​ ​b​l​o​c​k
341
- */
342
- codeBlock: string;
343
- /**
344
- * I​n​s​e​r​t​ ​a​ ​c​o​d​e​ ​b​l​o​c​k
345
- */
346
- codeBlockDesc: string;
347
- /**
348
- * V​i​d​e​o
349
- */
350
- video: string;
351
- /**
352
- * I​n​s​e​r​t​ ​a​ ​v​i​d​e​o​ ​f​r​o​m​ ​Y​o​u​T​u​b​e
353
- */
354
- videoDesc: string;
355
- /**
356
- * M​a​t​h​e​m​a​t​i​c​a​l​ ​f​o​r​m​u​l​a
357
- */
358
- equation: string;
359
- /**
360
- * I​n​s​e​r​t​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n
361
- */
362
- equationDesc: string;
363
- /**
364
- * I​m​a​g​e
365
- */
366
- image: string;
367
- /**
368
- * U​p​l​o​a​d​ ​a​n​ ​i​m​a​g​e
369
- */
370
- imageDesc: string;
371
- /**
372
- * F​i​l​e
373
- */
374
- file: string;
375
- /**
376
- * U​p​l​o​a​d​ ​a​ ​f​i​l​e
377
- */
378
- fileDesc: string;
379
- };
380
- link: {
381
- /**
382
- * N​e​w​ ​l​i​n​k
383
- */
384
- newLink: string;
385
- /**
386
- * L​i​n​k​ ​U​R​L
387
- */
388
- url: string;
389
- /**
390
- * T​e​x​t​ ​t​o​ ​d​i​s​p​l​a​y
391
- */
392
- title: string;
393
- /**
394
- * C​o​p​y​ ​l​i​n​k​ ​t​o​ ​c​l​i​p​b​o​a​r​d
395
- */
396
- copy: string;
397
- /**
398
- * O​p​e​n​ ​l​i​n​k​ ​i​n​ ​n​e​w​ ​t​a​b
399
- */
400
- open: string;
401
- /**
402
- * S​a​v​e
403
- */
404
- save: string;
405
- /**
406
- * R​e​m​o​v​e​ ​l​i​n​k
407
- */
408
- unlink: string;
409
- };
410
- table: {
411
- /**
412
- * F​i​t​ ​t​a​b​l​e​ ​t​o​ ​p​a​g​e​ ​w​i​d​t​h
413
- */
414
- fitTable: string;
415
- /**
416
- * C​e​l​l​ ​b​a​c​k​g​r​o​u​n​d​ ​c​o​l​o​r
417
- */
418
- cellBackground: string;
419
- /**
420
- * C​o​l​u​m​n
421
- */
422
- column: string;
423
- /**
424
- * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​l​e​f​t
425
- */
426
- insertColumnLeft: string;
427
- /**
428
- * I​n​s​e​r​t​ ​c​o​l​u​m​n​ ​r​i​g​h​t
429
- */
430
- insertColumnRight: string;
431
- /**
432
- * D​e​l​e​t​e​ ​c​o​l​u​m​n
433
- */
434
- deleteColumn: string;
435
- /**
436
- * R​o​w
437
- */
438
- row: string;
439
- /**
440
- * I​n​s​e​r​t​ ​r​o​w​ ​a​b​o​v​e
441
- */
442
- insertRowAbove: string;
443
- /**
444
- * I​n​s​e​r​t​ ​r​o​w​ ​b​e​l​o​w
445
- */
446
- insertRowBelow: string;
447
- /**
448
- * D​e​l​e​t​e​ ​r​o​w
449
- */
450
- deleteRow: string;
451
- /**
452
- * M​e​r​g​e​ ​c​e​l​l​s
453
- */
454
- merge: string;
455
- /**
456
- * M​e​r​g​e​ ​c​e​l​l​ ​u​p
457
- */
458
- mergeUp: string;
459
- /**
460
- * M​e​r​g​e​ ​c​e​l​l​ ​r​i​g​h​t
461
- */
462
- mergeRight: string;
463
- /**
464
- * M​e​r​g​e​ ​c​e​l​l​ ​d​o​w​n
465
- */
466
- mergeDown: string;
467
- /**
468
- * M​e​r​g​e​ ​c​e​l​l​ ​l​e​f​t
469
- */
470
- mergeLeft: string;
471
- /**
472
- * S​p​l​i​t​ ​c​e​l​l
473
- */
474
- split: string;
475
- /**
476
- * S​p​l​i​t​ ​c​e​l​l​ ​l​e​f​t​ ​a​n​d​ ​r​i​g​h​t
477
- */
478
- splitLeftRight: string;
479
- /**
480
- * S​p​l​i​t​ ​c​e​l​l​ ​t​o​p​ ​a​n​d​ ​b​o​t​t​o​m
481
- */
482
- splitTopBottom: string;
483
- /**
484
- * R​e​m​o​v​e​ ​t​a​b​l​e
485
- */
486
- remove: string;
487
- };
488
- image: {
489
- /**
490
- * F​u​l​l​ ​s​c​r​e​e​n
491
- */
492
- view: string;
493
- /**
494
- * D​e​l​e​t​e
495
- */
496
- remove: string;
497
- /**
498
- * P​r​e​v​i​o​u​s
499
- */
500
- previous: string;
501
- /**
502
- * N​e​x​t
503
- */
504
- next: string;
505
- /**
506
- * C​l​o​s​e​ ​(​E​s​c​)
507
- */
508
- close: string;
509
- /**
510
- * U​n​a​b​l​e​ ​t​o​ ​l​o​a​d​ ​i​m​a​g​e​.
511
- */
512
- loadingError: string;
513
- /**
514
- * Z​o​o​m​ ​o​u​t
515
- */
516
- zoomOut: string;
517
- /**
518
- * Z​o​o​m​ ​i​n
519
- */
520
- zoomIn: string;
521
- /**
522
- * A​l​i​g​n​m​e​n​t
523
- */
524
- align: string;
525
- /**
526
- * A​l​i​g​n​ ​l​e​f​t
527
- */
528
- alignLeft: string;
529
- /**
530
- * A​l​i​g​n​ ​c​e​n​t​e​r
531
- */
532
- alignCenter: string;
533
- /**
534
- * A​l​i​g​n​ ​r​i​g​h​t
535
- */
536
- alignRight: string;
537
- /**
538
- * R​e​s​i​z​e​ ​i​m​a​g​e
539
- */
540
- resize: string;
541
- /**
542
- * P​a​g​e​ ​w​i​d​t​h
543
- */
544
- pageWidth: string;
545
- /**
546
- * O​r​i​g​i​n​a​l​ ​i​m​a​g​e​ ​w​i​d​t​h
547
- */
548
- originalWidth: string;
549
- /**
550
- * {​0​}​ ​i​m​a​g​e​ ​w​i​d​t​h
551
- * @param {unknown} 0
552
- */
553
- imageWidth: RequiredParams<'0'>;
554
- /**
555
- * O​p​e​n​ ​i​m​a​g​e​ ​i​n​ ​n​e​w​ ​t​a​b
556
- */
557
- open: string;
558
- /**
559
- * C​a​p​t​i​o​n
560
- */
561
- caption: string;
562
- /**
563
- * W​r​i​t​e​ ​a​ ​c​a​p​t​i​o​n​.​.​.
564
- */
565
- captionPlaceholder: string;
566
- };
567
- file: {
568
- /**
569
- * D​o​w​n​l​o​a​d
570
- */
571
- download: string;
572
- /**
573
- * D​e​l​e​t​e
574
- */
575
- remove: string;
576
- };
577
- video: {
578
- /**
579
- * E​m​b​e​d​ ​v​i​d​e​o
580
- */
581
- embed: string;
582
- /**
583
- * D​e​l​e​t​e
584
- */
585
- remove: string;
586
- /**
587
- * P​a​s​t​e​ ​a​ ​l​i​n​k​ ​t​o​ ​e​m​b​e​d​ ​a​ ​v​i​d​e​o​ ​f​r​o​m​ ​Y​o​u​T​u​b​e​.
588
- */
589
- description: string;
590
- /**
591
- * L​i​n​k
592
- */
593
- url: string;
594
- /**
595
- * P​l​e​a​s​e​ ​e​n​t​e​r​ ​a​ ​v​a​l​i​d​ ​l​i​n​k​.
596
- */
597
- urlError: string;
598
- };
599
- codeBlock: {
600
- /**
601
- * S​e​l​e​c​t​ ​l​a​n​g​u​a​g​e
602
- */
603
- langType: string;
604
- };
605
- equation: {
606
- /**
607
- * D​o​n​e
608
- */
609
- save: string;
610
- /**
611
- * S​u​p​p​o​r​t​e​d​ ​f​u​n​c​t​i​o​n​s
612
- */
613
- help: string;
614
- /**
615
- * T​y​p​e​ ​a​ ​T​e​X​ ​e​x​p​r​e​s​s​i​o​n​.​.​.
616
- */
617
- placeholder: string;
618
- };
619
- };
620
- export type TranslationFunctions = {
621
- toolbar: {
622
- /**
623
- * Undo (mod+Z)
624
- */
625
- undo: () => LocalizedString;
626
- /**
627
- * Redo (mod+Y)
628
- */
629
- redo: () => LocalizedString;
630
- /**
631
- * Select all (mod+A)
632
- */
633
- selectAll: () => LocalizedString;
634
- /**
635
- * Paragraph
636
- */
637
- paragraph: () => LocalizedString;
638
- /**
639
- * Block quotation
640
- */
641
- blockQuote: () => LocalizedString;
642
- /**
643
- * Numbered list
644
- */
645
- numberedList: () => LocalizedString;
646
- /**
647
- * Bulleted list
648
- */
649
- bulletedList: () => LocalizedString;
650
- /**
651
- * Checklist
652
- */
653
- checklist: () => LocalizedString;
654
- /**
655
- * Align left
656
- */
657
- alignLeft: () => LocalizedString;
658
- /**
659
- * Align center
660
- */
661
- alignCenter: () => LocalizedString;
662
- /**
663
- * Align right
664
- */
665
- alignRight: () => LocalizedString;
666
- /**
667
- * Justify
668
- */
669
- alignJustify: () => LocalizedString;
670
- /**
671
- * Increase indent
672
- */
673
- increaseIndent: () => LocalizedString;
674
- /**
675
- * Decrease indent
676
- */
677
- decreaseIndent: () => LocalizedString;
678
- /**
679
- * Bold (mod+B)
680
- */
681
- bold: () => LocalizedString;
682
- /**
683
- * Italic (mod+I)
684
- */
685
- italic: () => LocalizedString;
686
- /**
687
- * Underline (mod+U)
688
- */
689
- underline: () => LocalizedString;
690
- /**
691
- * Strikethrough
692
- */
693
- strikethrough: () => LocalizedString;
694
- /**
695
- * Superscript
696
- */
697
- superscript: () => LocalizedString;
698
- /**
699
- * Subscript
700
- */
701
- subscript: () => LocalizedString;
702
- /**
703
- * Inline code
704
- */
705
- code: () => LocalizedString;
706
- /**
707
- * Remove format
708
- */
709
- removeFormat: () => LocalizedString;
710
- /**
711
- * Format painter
712
- */
713
- formatPainter: () => LocalizedString;
714
- /**
715
- * Link
716
- */
717
- link: () => LocalizedString;
718
- /**
719
- * Horizontal line
720
- */
721
- hr: () => LocalizedString;
722
- /**
723
- * Video
724
- */
725
- video: () => LocalizedString;
726
- /**
727
- * Code block
728
- */
729
- codeBlock: () => LocalizedString;
730
- /**
731
- * Heading
732
- */
733
- heading: () => LocalizedString;
734
- /**
735
- * Heading 1
736
- */
737
- heading1: () => LocalizedString;
738
- /**
739
- * Heading 2
740
- */
741
- heading2: () => LocalizedString;
742
- /**
743
- * Heading 3
744
- */
745
- heading3: () => LocalizedString;
746
- /**
747
- * Heading 4
748
- */
749
- heading4: () => LocalizedString;
750
- /**
751
- * Heading 5
752
- */
753
- heading5: () => LocalizedString;
754
- /**
755
- * Heading 6
756
- */
757
- heading6: () => LocalizedString;
758
- /**
759
- * List
760
- */
761
- list: () => LocalizedString;
762
- /**
763
- * Table
764
- */
765
- table: () => LocalizedString;
766
- /**
767
- * Alignment
768
- */
769
- align: () => LocalizedString;
770
- /**
771
- * Indent
772
- */
773
- indent: () => LocalizedString;
774
- /**
775
- * Font family
776
- */
777
- fontFamily: () => LocalizedString;
778
- /**
779
- * Font size
780
- */
781
- fontSize: () => LocalizedString;
782
- /**
783
- * More style
784
- */
785
- moreStyle: () => LocalizedString;
786
- /**
787
- * Font color
788
- */
789
- fontColor: () => LocalizedString;
790
- /**
791
- * Highlight
792
- */
793
- highlight: () => LocalizedString;
794
- /**
795
- * Image
796
- */
797
- image: () => LocalizedString;
798
- /**
799
- * File
800
- */
801
- file: () => LocalizedString;
802
- /**
803
- * Emoji
804
- */
805
- emoji: () => LocalizedString;
806
- /**
807
- * Mathematical formula
808
- */
809
- equation: () => LocalizedString;
810
- /**
811
- * Remove color
812
- */
813
- removeColor: () => LocalizedString;
814
- };
815
- slash: {
816
- /**
817
- * Heading 1
818
- */
819
- heading1: () => LocalizedString;
820
- /**
821
- * Create a heading level 1
822
- */
823
- heading1Desc: () => LocalizedString;
824
- /**
825
- * Heading 2
826
- */
827
- heading2: () => LocalizedString;
828
- /**
829
- * Create a heading level 2
830
- */
831
- heading2Desc: () => LocalizedString;
832
- /**
833
- * Heading 3
834
- */
835
- heading3: () => LocalizedString;
836
- /**
837
- * Create a heading level 3
838
- */
839
- heading3Desc: () => LocalizedString;
840
- /**
841
- * Heading 4
842
- */
843
- heading4: () => LocalizedString;
844
- /**
845
- * Create a heading level 4
846
- */
847
- heading4Desc: () => LocalizedString;
848
- /**
849
- * Heading 5
850
- */
851
- heading5: () => LocalizedString;
852
- /**
853
- * Create a heading level 5
854
- */
855
- heading5Desc: () => LocalizedString;
856
- /**
857
- * Heading 6
858
- */
859
- heading6: () => LocalizedString;
860
- /**
861
- * Create a heading level 6
862
- */
863
- heading6Desc: () => LocalizedString;
864
- /**
865
- * Paragraph
866
- */
867
- paragraph: () => LocalizedString;
868
- /**
869
- * Create a paragraph
870
- */
871
- paragraphDesc: () => LocalizedString;
872
- /**
873
- * Block quotation
874
- */
875
- blockQuote: () => LocalizedString;
876
- /**
877
- * Create a block quotation
878
- */
879
- blockQuoteDesc: () => LocalizedString;
880
- /**
881
- * Numbered list
882
- */
883
- numberedList: () => LocalizedString;
884
- /**
885
- * Create a numbered list
886
- */
887
- numberedListDesc: () => LocalizedString;
888
- /**
889
- * Bulleted list
890
- */
891
- bulletedList: () => LocalizedString;
892
- /**
893
- * Create a bulleted list
894
- */
895
- bulletedListDesc: () => LocalizedString;
896
- /**
897
- * Checklist
898
- */
899
- checklist: () => LocalizedString;
900
- /**
901
- * Create a checklist
902
- */
903
- checklistDesc: () => LocalizedString;
904
- /**
905
- * Table
906
- */
907
- table: () => LocalizedString;
908
- /**
909
- * Insert a table
910
- */
911
- tableDesc: () => LocalizedString;
912
- /**
913
- * Info alert
914
- */
915
- infoAlert: () => LocalizedString;
916
- /**
917
- * Create an info alert
918
- */
919
- infoAlertDesc: () => LocalizedString;
920
- /**
921
- * Tip alert
922
- */
923
- tipAlert: () => LocalizedString;
924
- /**
925
- * Create a tip alert
926
- */
927
- tipAlertDesc: () => LocalizedString;
928
- /**
929
- * Warning alert
930
- */
931
- warningAlert: () => LocalizedString;
932
- /**
933
- * Create a warning alert
934
- */
935
- warningAlertDesc: () => LocalizedString;
936
- /**
937
- * Danger alert
938
- */
939
- dangerAlert: () => LocalizedString;
940
- /**
941
- * Create a danger alert
942
- */
943
- dangerAlertDesc: () => LocalizedString;
944
- /**
945
- * Horizontal line
946
- */
947
- hr: () => LocalizedString;
948
- /**
949
- * Insert a horizontal line
950
- */
951
- hrDesc: () => LocalizedString;
952
- /**
953
- * Code block
954
- */
955
- codeBlock: () => LocalizedString;
956
- /**
957
- * Insert a code block
958
- */
959
- codeBlockDesc: () => LocalizedString;
960
- /**
961
- * Video
962
- */
963
- video: () => LocalizedString;
964
- /**
965
- * Insert a video from YouTube
966
- */
967
- videoDesc: () => LocalizedString;
968
- /**
969
- * Mathematical formula
970
- */
971
- equation: () => LocalizedString;
972
- /**
973
- * Insert a TeX expression
974
- */
975
- equationDesc: () => LocalizedString;
976
- /**
977
- * Image
978
- */
979
- image: () => LocalizedString;
980
- /**
981
- * Upload an image
982
- */
983
- imageDesc: () => LocalizedString;
984
- /**
985
- * File
986
- */
987
- file: () => LocalizedString;
988
- /**
989
- * Upload a file
990
- */
991
- fileDesc: () => LocalizedString;
992
- };
993
- link: {
994
- /**
995
- * New link
996
- */
997
- newLink: () => LocalizedString;
998
- /**
999
- * Link URL
1000
- */
1001
- url: () => LocalizedString;
1002
- /**
1003
- * Text to display
1004
- */
1005
- title: () => LocalizedString;
1006
- /**
1007
- * Copy link to clipboard
1008
- */
1009
- copy: () => LocalizedString;
1010
- /**
1011
- * Open link in new tab
1012
- */
1013
- open: () => LocalizedString;
1014
- /**
1015
- * Save
1016
- */
1017
- save: () => LocalizedString;
1018
- /**
1019
- * Remove link
1020
- */
1021
- unlink: () => LocalizedString;
1022
- };
1023
- table: {
1024
- /**
1025
- * Fit table to page width
1026
- */
1027
- fitTable: () => LocalizedString;
1028
- /**
1029
- * Cell background color
1030
- */
1031
- cellBackground: () => LocalizedString;
1032
- /**
1033
- * Column
1034
- */
1035
- column: () => LocalizedString;
1036
- /**
1037
- * Insert column left
1038
- */
1039
- insertColumnLeft: () => LocalizedString;
1040
- /**
1041
- * Insert column right
1042
- */
1043
- insertColumnRight: () => LocalizedString;
1044
- /**
1045
- * Delete column
1046
- */
1047
- deleteColumn: () => LocalizedString;
1048
- /**
1049
- * Row
1050
- */
1051
- row: () => LocalizedString;
1052
- /**
1053
- * Insert row above
1054
- */
1055
- insertRowAbove: () => LocalizedString;
1056
- /**
1057
- * Insert row below
1058
- */
1059
- insertRowBelow: () => LocalizedString;
1060
- /**
1061
- * Delete row
1062
- */
1063
- deleteRow: () => LocalizedString;
1064
- /**
1065
- * Merge cells
1066
- */
1067
- merge: () => LocalizedString;
1068
- /**
1069
- * Merge cell up
1070
- */
1071
- mergeUp: () => LocalizedString;
1072
- /**
1073
- * Merge cell right
1074
- */
1075
- mergeRight: () => LocalizedString;
1076
- /**
1077
- * Merge cell down
1078
- */
1079
- mergeDown: () => LocalizedString;
1080
- /**
1081
- * Merge cell left
1082
- */
1083
- mergeLeft: () => LocalizedString;
1084
- /**
1085
- * Split cell
1086
- */
1087
- split: () => LocalizedString;
1088
- /**
1089
- * Split cell left and right
1090
- */
1091
- splitLeftRight: () => LocalizedString;
1092
- /**
1093
- * Split cell top and bottom
1094
- */
1095
- splitTopBottom: () => LocalizedString;
1096
- /**
1097
- * Remove table
1098
- */
1099
- remove: () => LocalizedString;
1100
- };
1101
- image: {
1102
- /**
1103
- * Full screen
1104
- */
1105
- view: () => LocalizedString;
1106
- /**
1107
- * Delete
1108
- */
1109
- remove: () => LocalizedString;
1110
- /**
1111
- * Previous
1112
- */
1113
- previous: () => LocalizedString;
1114
- /**
1115
- * Next
1116
- */
1117
- next: () => LocalizedString;
1118
- /**
1119
- * Close (Esc)
1120
- */
1121
- close: () => LocalizedString;
1122
- /**
1123
- * Unable to load image.
1124
- */
1125
- loadingError: () => LocalizedString;
1126
- /**
1127
- * Zoom out
1128
- */
1129
- zoomOut: () => LocalizedString;
1130
- /**
1131
- * Zoom in
1132
- */
1133
- zoomIn: () => LocalizedString;
1134
- /**
1135
- * Alignment
1136
- */
1137
- align: () => LocalizedString;
1138
- /**
1139
- * Align left
1140
- */
1141
- alignLeft: () => LocalizedString;
1142
- /**
1143
- * Align center
1144
- */
1145
- alignCenter: () => LocalizedString;
1146
- /**
1147
- * Align right
1148
- */
1149
- alignRight: () => LocalizedString;
1150
- /**
1151
- * Resize image
1152
- */
1153
- resize: () => LocalizedString;
1154
- /**
1155
- * Page width
1156
- */
1157
- pageWidth: () => LocalizedString;
1158
- /**
1159
- * Original image width
1160
- */
1161
- originalWidth: () => LocalizedString;
1162
- /**
1163
- * {0} image width
1164
- */
1165
- imageWidth: (arg0: unknown) => LocalizedString;
1166
- /**
1167
- * Open image in new tab
1168
- */
1169
- open: () => LocalizedString;
1170
- /**
1171
- * Caption
1172
- */
1173
- caption: () => LocalizedString;
1174
- /**
1175
- * Write a caption...
1176
- */
1177
- captionPlaceholder: () => LocalizedString;
1178
- };
1179
- file: {
1180
- /**
1181
- * Download
1182
- */
1183
- download: () => LocalizedString;
1184
- /**
1185
- * Delete
1186
- */
1187
- remove: () => LocalizedString;
1188
- };
1189
- video: {
1190
- /**
1191
- * Embed video
1192
- */
1193
- embed: () => LocalizedString;
1194
- /**
1195
- * Delete
1196
- */
1197
- remove: () => LocalizedString;
1198
- /**
1199
- * Paste a link to embed a video from YouTube.
1200
- */
1201
- description: () => LocalizedString;
1202
- /**
1203
- * Link
1204
- */
1205
- url: () => LocalizedString;
1206
- /**
1207
- * Please enter a valid link.
1208
- */
1209
- urlError: () => LocalizedString;
1210
- };
1211
- codeBlock: {
1212
- /**
1213
- * Select language
1214
- */
1215
- langType: () => LocalizedString;
1216
- };
1217
- equation: {
1218
- /**
1219
- * Done
1220
- */
1221
- save: () => LocalizedString;
1222
- /**
1223
- * Supported functions
1224
- */
1225
- help: () => LocalizedString;
1226
- /**
1227
- * Type a TeX expression...
1228
- */
1229
- placeholder: () => LocalizedString;
1230
- };
1231
- };
1232
- export type Formatters = {};
1233
- export {};