@worktile/theia 15.3.3 → 16.0.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 (728) hide show
  1. package/components/contextmenu/contextmenu.component.d.ts +1 -1
  2. package/components/conversion-hint/conversion-hint.component.d.ts +3 -3
  3. package/components/inline-toolbar/inline-toolbar.component.d.ts +3 -4
  4. package/components/listbox/listbox.d.ts +3 -3
  5. package/components/plugin-menu/plugin-menu.component.d.ts +4 -3
  6. package/components/table-select/table-select.component.d.ts +1 -1
  7. package/components/template/template.component.d.ts +2 -2
  8. package/components/toolbar/toolbar.component.d.ts +4 -4
  9. package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +2 -2
  10. package/components/toolbar-group/toolbar-group.component.d.ts +5 -6
  11. package/core/toolbar-item/base-toolbar-item.d.ts +6 -7
  12. package/core/utils/plugin-menu.d.ts +2 -2
  13. package/editor.component.d.ts +1 -1
  14. package/editor.module.d.ts +1 -1
  15. package/{esm2020 → esm2022}/components/action/prevent-default.mjs +4 -4
  16. package/{esm2020 → esm2022}/components/column-resize/column-resize-notifier.mjs +4 -4
  17. package/{esm2020 → esm2022}/components/column-resize/column-resize.directive.mjs +4 -4
  18. package/{esm2020 → esm2022}/components/column-resize/column-resize.module.mjs +9 -9
  19. package/{esm2020 → esm2022}/components/column-resize/event-dispatcher.mjs +4 -4
  20. package/{esm2020 → esm2022}/components/column-resize/overlay-handle.component.mjs +4 -4
  21. package/{esm2020 → esm2022}/components/column-resize/resizing.store.mjs +4 -4
  22. package/{esm2020 → esm2022}/components/contextmenu/contextmenu.component.mjs +4 -4
  23. package/{esm2020 → esm2022}/components/conversion-hint/conversion-hint.component.mjs +4 -4
  24. package/{esm2020 → esm2022}/components/element/element.component.mjs +4 -4
  25. package/{esm2020 → esm2022}/components/inline-toolbar/inline-toolbar.component.mjs +6 -6
  26. package/esm2022/components/listbox/listbox.mjs +375 -0
  27. package/esm2022/components/plugin-menu/plugin-menu.component.mjs +191 -0
  28. package/{esm2020 → esm2022}/components/table-select/table-select.component.mjs +4 -4
  29. package/esm2022/components/template/template.component.mjs +62 -0
  30. package/{esm2020 → esm2022}/components/text/text.component.mjs +4 -4
  31. package/esm2022/components/toolbar/toolbar.component.mjs +266 -0
  32. package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +144 -0
  33. package/esm2022/components/toolbar-group/toolbar-group.component.mjs +122 -0
  34. package/{esm2020 → esm2022}/components/toolbar-item/toolbar-item.component.mjs +6 -6
  35. package/esm2022/constants/auto-format-rules.mjs +167 -0
  36. package/esm2022/constants/plugin-menu.mjs +328 -0
  37. package/esm2022/core/toolbar-item/base-toolbar-item.mjs +87 -0
  38. package/{esm2020 → esm2022}/core/utils/combine-plugins.mjs +1 -1
  39. package/esm2022/core/utils/plugin-menu.mjs +33 -0
  40. package/esm2022/custom-types.mjs +2 -0
  41. package/{esm2020 → esm2022}/editor.component.mjs +11 -11
  42. package/esm2022/editor.module.mjs +254 -0
  43. package/esm2022/interfaces/auto-format.mjs +2 -0
  44. package/esm2022/interfaces/editor.mjs +25 -0
  45. package/esm2022/interfaces/plugins/plugin-menu.mjs +19 -0
  46. package/esm2022/interfaces/plugins/with-override.mjs +2 -0
  47. package/esm2022/interfaces/reset-block-type-plugin-options.mjs +2 -0
  48. package/esm2022/interfaces/toolbar.mjs +12 -0
  49. package/{esm2020 → esm2022}/interfaces/view-base.mjs +4 -4
  50. package/esm2022/pipes.mjs +42 -0
  51. package/esm2022/plugins/align/align.editor.mjs +43 -0
  52. package/esm2022/plugins/align/align.plugin.mjs +64 -0
  53. package/{esm2020 → esm2022}/plugins/autoformat/autoformat.plugin.mjs +1 -1
  54. package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +14 -0
  55. package/esm2022/plugins/autoformat/transforms/auto-format-inline.mjs +78 -0
  56. package/esm2022/plugins/blockquote/blockquote.component.mjs +21 -0
  57. package/esm2022/plugins/blockquote/blockquote.editor.mjs +17 -0
  58. package/esm2022/plugins/blockquote/blockquote.plugin.mjs +85 -0
  59. package/{esm2020 → esm2022}/plugins/code/code.component.mjs +4 -4
  60. package/esm2022/plugins/code/code.editor.mjs +48 -0
  61. package/{esm2020 → esm2022}/plugins/code/code.plugin.mjs +1 -1
  62. package/esm2022/plugins/color/color.editor.mjs +27 -0
  63. package/{esm2020 → esm2022}/plugins/color/toolbar-item.component.mjs +4 -4
  64. package/{esm2020 → esm2022}/plugins/common/block-card.plugin.mjs +1 -1
  65. package/{esm2020 → esm2022}/plugins/common/common.plugin.mjs +1 -1
  66. package/{esm2020 → esm2022}/plugins/common/get-fragment.plugin.mjs +1 -1
  67. package/esm2022/plugins/common/history.plugin.mjs +31 -0
  68. package/{esm2020 → esm2022}/plugins/common/insert-data-by-invalid-type.mjs +1 -1
  69. package/{esm2020 → esm2022}/plugins/common/move-selection.plugin.mjs +1 -1
  70. package/{esm2020 → esm2022}/plugins/common/remove-empty.plugin.mjs +1 -1
  71. package/{esm2020 → esm2022}/plugins/common/remove-void.plugin.mjs +1 -1
  72. package/{esm2020 → esm2022}/plugins/common/reset-type.plugin.mjs +1 -1
  73. package/esm2022/plugins/common/transforms.plugin.mjs +18 -0
  74. package/esm2022/plugins/deserialize/deserialize-html.plugin.mjs +53 -0
  75. package/esm2022/plugins/deserialize/deserialize-md.plugin.mjs +130 -0
  76. package/esm2022/plugins/font-size/font-size.editor.mjs +98 -0
  77. package/esm2022/plugins/heading/heading.editor.mjs +54 -0
  78. package/esm2022/plugins/heading/heading.plugin.mjs +136 -0
  79. package/{esm2020 → esm2022}/plugins/hr/hr.component.mjs +6 -6
  80. package/esm2022/plugins/hr/hr.editor.mjs +16 -0
  81. package/esm2022/plugins/hr/hr.plugin.mjs +56 -0
  82. package/esm2022/plugins/image/image.component.mjs +420 -0
  83. package/esm2022/plugins/image/image.editor.mjs +81 -0
  84. package/esm2022/plugins/indent/indent.editor.mjs +78 -0
  85. package/{esm2020 → esm2022}/plugins/indent/indent.plugin.mjs +1 -1
  86. package/esm2022/plugins/indent/on-keydown-indent.mjs +59 -0
  87. package/esm2022/plugins/inline-code/inline-code.component.mjs +26 -0
  88. package/esm2022/plugins/inline-code/inline-code.editor.mjs +48 -0
  89. package/esm2022/plugins/inline-code/inline-code.plugin.mjs +66 -0
  90. package/esm2022/plugins/link/edit/link-edit.component.mjs +103 -0
  91. package/{esm2020 → esm2022}/plugins/link/hover/link-hover.component.mjs +4 -4
  92. package/esm2022/plugins/link/link.component.mjs +167 -0
  93. package/esm2022/plugins/link/link.editor.mjs +66 -0
  94. package/{esm2020 → esm2022}/plugins/link/link.plugin.mjs +1 -1
  95. package/esm2022/plugins/list/components/bulleted-list.component.mjs +33 -0
  96. package/esm2022/plugins/list/components/list-item.component.mjs +93 -0
  97. package/esm2022/plugins/list/components/numbered-list.component.mjs +39 -0
  98. package/esm2022/plugins/list/list.editor.mjs +126 -0
  99. package/esm2022/plugins/list/list.plugin.mjs +312 -0
  100. package/esm2022/plugins/list/normalizers/get-list-normalizer.mjs +39 -0
  101. package/esm2022/plugins/list/normalizers/normalize-list-item.mjs +18 -0
  102. package/esm2022/plugins/list/normalizers/normalize-no.mjs +43 -0
  103. package/esm2022/plugins/list/on-key-down-list.mjs +33 -0
  104. package/esm2022/plugins/list/queries/get-list-item-entry.mjs +28 -0
  105. package/esm2022/plugins/list/queries/get-start-list-item.mjs +27 -0
  106. package/esm2022/plugins/list/queries/has-list-in-list-item.mjs +27 -0
  107. package/esm2022/plugins/list/queries/is-in-list.mjs +6 -0
  108. package/esm2022/plugins/list/queries/is-list-nested.mjs +10 -0
  109. package/esm2022/plugins/list/queries/is-list.mjs +5 -0
  110. package/{esm2020 → esm2022}/plugins/list/queries/is-node-type-list.mjs +1 -1
  111. package/esm2022/plugins/list/queries/is-selection-at-list-item-start.mjs +13 -0
  112. package/esm2022/plugins/list/queries/is-selection-in-same-list-item.mjs +17 -0
  113. package/{esm2020 → esm2022}/plugins/list/queries/is-single-list-item.mjs +1 -1
  114. package/esm2022/plugins/list/transforms/insert-list-data.mjs +72 -0
  115. package/esm2022/plugins/list/transforms/insert-list-item.mjs +72 -0
  116. package/esm2022/plugins/list/transforms/move-list-item-down.mjs +41 -0
  117. package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +43 -0
  118. package/esm2022/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +30 -0
  119. package/esm2022/plugins/list/transforms/move-list-item-up.mjs +78 -0
  120. package/esm2022/plugins/list/transforms/unwrap-list.mjs +10 -0
  121. package/esm2022/plugins/mark/mark.editor.mjs +28 -0
  122. package/{esm2020 → esm2022}/plugins/mark/mark.plugin.mjs +1 -1
  123. package/{esm2020 → esm2022}/plugins/mention/mention.editor.mjs +1 -1
  124. package/esm2022/plugins/mention/mention.plugin.mjs +91 -0
  125. package/{esm2020 → esm2022}/plugins/mention/suggestion.component.mjs +4 -4
  126. package/{esm2020 → esm2022}/plugins/node-id/node-id.plugin.mjs +1 -1
  127. package/{esm2020 → esm2022}/plugins/normalizers/insert-paragraph-nodes.mjs +1 -1
  128. package/esm2022/plugins/normalizers/remove-empty-nodes.mjs +18 -0
  129. package/{esm2020 → esm2022}/plugins/normalizers/trailing-node.plugin.mjs +1 -1
  130. package/{esm2020 → esm2022}/plugins/paint-format/paint-format.editor.mjs +1 -1
  131. package/{esm2020 → esm2022}/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
  132. package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +68 -0
  133. package/esm2022/plugins/quick-insert/quick-insert.plugin.mjs +104 -0
  134. package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +104 -0
  135. package/{esm2020 → esm2022}/plugins/table/components/row/row.component.mjs +6 -6
  136. package/{esm2020 → esm2022}/plugins/table/components/table.component.mjs +16 -16
  137. package/{esm2020 → esm2022}/plugins/table/components/td/td.component.mjs +4 -4
  138. package/{esm2020 → esm2022}/plugins/table/components/toolbar/table-options.component.mjs +6 -6
  139. package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +189 -0
  140. package/esm2022/plugins/table/table.editor.mjs +209 -0
  141. package/{esm2020 → esm2022}/plugins/table/table.pipe.mjs +7 -7
  142. package/esm2022/plugins/table/table.plugin.mjs +544 -0
  143. package/{esm2020 → esm2022}/plugins/table/table.service.mjs +4 -4
  144. package/esm2022/plugins/table/table.store.mjs +426 -0
  145. package/esm2022/plugins/table/table.types.mjs +60 -0
  146. package/{esm2020 → esm2022}/plugins/table/toolbar-item.component.mjs +6 -6
  147. package/esm2022/plugins/table/transforms/clear-cell.mjs +14 -0
  148. package/esm2022/plugins/table/transforms/clear-table-node.mjs +27 -0
  149. package/esm2022/plugins/table/transforms/insert-column.mjs +69 -0
  150. package/esm2022/plugins/table/transforms/insert-row.mjs +50 -0
  151. package/esm2022/plugins/table/transforms/insert-table.mjs +15 -0
  152. package/esm2022/plugins/table/transforms/remove-column.mjs +51 -0
  153. package/esm2022/plugins/table/transforms/remove-row.mjs +48 -0
  154. package/esm2022/plugins/table/transforms/remove-table.mjs +49 -0
  155. package/esm2022/plugins/table/utils/calc-anchor-position.mjs +25 -0
  156. package/esm2022/plugins/table/utils/cell-position.mjs +60 -0
  157. package/esm2022/plugins/table/utils/create-table-position.mjs +10 -0
  158. package/esm2022/plugins/table/utils/get-min-max-cell-index.mjs +69 -0
  159. package/esm2022/plugins/table/utils/get-select-cell-node.mjs +23 -0
  160. package/esm2022/plugins/table/utils/handle-cell.mjs +25 -0
  161. package/esm2022/plugins/table/utils/is-range-in-table.mjs +16 -0
  162. package/esm2022/plugins/table/utils/is-selection-in-table.mjs +51 -0
  163. package/esm2022/plugins/table/utils/merge-cell.mjs +108 -0
  164. package/esm2022/plugins/table/utils/set-menu-cell-invisibility.mjs +45 -0
  165. package/esm2022/plugins/table/utils/split-cell.mjs +29 -0
  166. package/esm2022/plugins/table/utils/table-entry.mjs +21 -0
  167. package/{esm2020 → esm2022}/plugins/todo-item/todo-item.component.mjs +7 -7
  168. package/esm2022/plugins/todo-item/todo-item.editor.mjs +32 -0
  169. package/esm2022/plugins/todo-item/todo-item.plugin.mjs +93 -0
  170. package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +83 -0
  171. package/esm2022/queries/anchor-block-entry.mjs +13 -0
  172. package/esm2022/queries/anchor-block.mjs +6 -0
  173. package/esm2022/queries/anchor-inline-entry.mjs +10 -0
  174. package/{esm2020 → esm2022}/queries/find-descendant.mjs +1 -1
  175. package/esm2022/queries/find-node.mjs +45 -0
  176. package/esm2022/queries/get-above-by-type.mjs +14 -0
  177. package/esm2022/queries/get-above.mjs +9 -0
  178. package/esm2022/queries/get-anchor-block-entry.mjs +8 -0
  179. package/esm2022/queries/get-block-above.mjs +10 -0
  180. package/esm2022/queries/get-block-card-above.mjs +10 -0
  181. package/esm2022/queries/get-block-card-cursor.mjs +5 -0
  182. package/esm2022/queries/get-container-blocks.mjs +12 -0
  183. package/esm2022/queries/get-insert-elements-path.mjs +44 -0
  184. package/{esm2020 → esm2022}/queries/get-last-node.mjs +1 -1
  185. package/esm2022/queries/get-node.mjs +10 -0
  186. package/esm2022/queries/get-nodes-by-type.mjs +15 -0
  187. package/esm2022/queries/get-nodes.mjs +7 -0
  188. package/esm2022/queries/get-parent.mjs +12 -0
  189. package/esm2022/queries/get-plain-text.mjs +16 -0
  190. package/esm2022/queries/get-plugin-by-toolbar.mjs +13 -0
  191. package/{esm2020 → esm2022}/queries/get-point-before.mjs +1 -1
  192. package/esm2022/queries/get-point-from-location.mjs +15 -0
  193. package/esm2022/queries/get-rang-from-block-start.mjs +16 -0
  194. package/esm2022/queries/get-range-before.mjs +17 -0
  195. package/{esm2020 → esm2022}/queries/get-selection-marks.mjs +1 -1
  196. package/esm2022/queries/get-selection-nodes-by-type.mjs +30 -0
  197. package/esm2022/queries/get-text.mjs +9 -0
  198. package/esm2022/queries/get-toolbar-disabled.mjs +13 -0
  199. package/esm2022/queries/is-across-blocks.mjs +7 -0
  200. package/esm2022/queries/is-ancestor-empty.mjs +6 -0
  201. package/esm2022/queries/is-block-above-empty.mjs +11 -0
  202. package/esm2022/queries/is-block-active.mjs +8 -0
  203. package/esm2022/queries/is-block-card-cursor.mjs +4 -0
  204. package/{esm2020 → esm2022}/queries/is-block-text-empty-after-selection.mjs +1 -1
  205. package/esm2022/queries/is-contain-nested-type.mjs +29 -0
  206. package/esm2022/queries/is-container-type.mjs +3 -0
  207. package/esm2022/queries/is-empty-content-filter.mjs +23 -0
  208. package/{esm2020 → esm2022}/queries/is-empty-content.mjs +1 -1
  209. package/esm2022/queries/is-empty-paragraph-by-path.mjs +7 -0
  210. package/esm2022/queries/is-empty-paragraph.mjs +28 -0
  211. package/esm2022/queries/is-global-collapsed.mjs +5 -0
  212. package/esm2022/queries/is-include-types.mjs +12 -0
  213. package/esm2022/queries/is-node-type-in.mjs +9 -0
  214. package/esm2022/queries/is-node-type.mjs +15 -0
  215. package/esm2022/queries/is-paragraph.mjs +9 -0
  216. package/esm2022/queries/is-range-across-blocks.mjs +22 -0
  217. package/esm2022/queries/is-start.mjs +6 -0
  218. package/esm2022/queries/some-node.mjs +9 -0
  219. package/{esm2020 → esm2022}/services/context.service.mjs +4 -4
  220. package/{esm2020 → esm2022}/services/table-contextmenu.service.mjs +4 -4
  221. package/{esm2020 → esm2022}/services/toolbar.service.mjs +4 -4
  222. package/{esm2020 → esm2022}/shortcuts/index.mjs +1 -1
  223. package/esm2022/shortcuts/mark.mjs +25 -0
  224. package/esm2022/test/utils/with-editor.mjs +8 -0
  225. package/esm2022/test/utils/with-plugin.mjs +8 -0
  226. package/{esm2020 → esm2022}/transforms/clear-marks.mjs +1 -1
  227. package/esm2022/transforms/close-conversion-hint.mjs +8 -0
  228. package/{esm2020 → esm2022}/transforms/delete-element.mjs +1 -1
  229. package/esm2022/transforms/handle-continual-delete-backward.mjs +18 -0
  230. package/esm2022/transforms/handle-continual-insert-break.mjs +20 -0
  231. package/esm2022/transforms/insert-elements.mjs +38 -0
  232. package/esm2022/transforms/insert-paragraph.mjs +6 -0
  233. package/esm2022/transforms/move-children.mjs +22 -0
  234. package/esm2022/transforms/on-keydown-reset-block-type.mjs +22 -0
  235. package/{esm2020 → esm2022}/transforms/set-end-selection.mjs +1 -1
  236. package/esm2022/transforms/set-marks.mjs +9 -0
  237. package/esm2022/transforms/set-node.mjs +6 -0
  238. package/esm2022/transforms/un-hang-range.mjs +11 -0
  239. package/esm2022/transforms/un-wrap.mjs +12 -0
  240. package/esm2022/transforms/unwrap-nodes-by-type.mjs +14 -0
  241. package/{esm2020 → esm2022}/utils/auto-focus.mjs +1 -1
  242. package/esm2022/utils/copy-node.mjs +32 -0
  243. package/esm2022/utils/create-empty-paragraph.mjs +5 -0
  244. package/esm2022/utils/create-paragraph.mjs +14 -0
  245. package/{esm2020 → esm2022}/utils/dom.mjs +1 -1
  246. package/esm2022/utils/editor-uuid.mjs +8 -0
  247. package/esm2022/utils/fragment.mjs +74 -0
  248. package/esm2022/utils/get-editable-element-height.mjs +6 -0
  249. package/esm2022/utils/get-toolbar-class.mjs +6 -0
  250. package/esm2022/utils/index.mjs +20 -0
  251. package/esm2022/utils/insert-data-by-invalid-type.mjs +62 -0
  252. package/esm2022/utils/is-clean-empty-paragraph.mjs +37 -0
  253. package/esm2022/utils/is-inline.mjs +9 -0
  254. package/{esm2020 → esm2022}/utils/match.mjs +1 -1
  255. package/esm2022/utils/merge-element-options.mjs +19 -0
  256. package/esm2022/utils/scroll-into-view.mjs +38 -0
  257. package/{fesm2020 → fesm2022}/worktile-theia.mjs +397 -388
  258. package/fesm2022/worktile-theia.mjs.map +1 -0
  259. package/interfaces/auto-format.d.ts +5 -5
  260. package/interfaces/editor.d.ts +8 -6
  261. package/interfaces/plugins/plugin-menu.d.ts +5 -5
  262. package/interfaces/plugins/with-override.d.ts +2 -2
  263. package/interfaces/reset-block-type-plugin-options.d.ts +3 -3
  264. package/interfaces/toolbar.d.ts +5 -5
  265. package/interfaces/view-base.d.ts +3 -2
  266. package/package.json +11 -17
  267. package/pipes.d.ts +3 -3
  268. package/plugins/align/align.editor.d.ts +4 -4
  269. package/plugins/align/align.plugin.d.ts +2 -1
  270. package/plugins/autoformat/autoformat.plugin.d.ts +2 -1
  271. package/plugins/autoformat/transforms/auto-format-block.d.ts +5 -4
  272. package/plugins/autoformat/transforms/auto-format-inline.d.ts +2 -2
  273. package/plugins/blockquote/blockquote.component.d.ts +3 -3
  274. package/plugins/blockquote/blockquote.editor.d.ts +2 -2
  275. package/plugins/blockquote/blockquote.plugin.d.ts +2 -1
  276. package/plugins/code/code.component.d.ts +2 -3
  277. package/plugins/code/code.editor.d.ts +3 -3
  278. package/plugins/code/code.plugin.d.ts +2 -1
  279. package/plugins/color/color.editor.d.ts +3 -3
  280. package/plugins/common/block-card.plugin.d.ts +2 -1
  281. package/plugins/common/common.plugin.d.ts +2 -1
  282. package/plugins/common/get-fragment.plugin.d.ts +2 -1
  283. package/plugins/common/history.plugin.d.ts +6 -6
  284. package/plugins/common/insert-data-by-invalid-type.d.ts +2 -1
  285. package/plugins/common/move-selection.plugin.d.ts +2 -1
  286. package/plugins/common/remove-empty.plugin.d.ts +2 -1
  287. package/plugins/common/remove-void.plugin.d.ts +2 -1
  288. package/plugins/common/reset-type.plugin.d.ts +2 -1
  289. package/plugins/common/transforms.plugin.d.ts +2 -1
  290. package/plugins/deserialize/deserialize-html.plugin.d.ts +2 -1
  291. package/plugins/deserialize/deserialize-md.plugin.d.ts +2 -1
  292. package/plugins/font-size/font-size.editor.d.ts +3 -4
  293. package/plugins/heading/heading.editor.d.ts +3 -4
  294. package/plugins/heading/heading.plugin.d.ts +2 -2
  295. package/plugins/hr/hr.component.d.ts +3 -3
  296. package/plugins/hr/hr.editor.d.ts +3 -3
  297. package/plugins/hr/hr.plugin.d.ts +2 -1
  298. package/plugins/image/image.component.d.ts +2 -3
  299. package/plugins/image/image.editor.d.ts +8 -7
  300. package/plugins/indent/indent.editor.d.ts +3 -4
  301. package/plugins/indent/indent.plugin.d.ts +2 -1
  302. package/plugins/indent/on-keydown-indent.d.ts +2 -2
  303. package/plugins/inline-code/inline-code.component.d.ts +2 -3
  304. package/plugins/inline-code/inline-code.editor.d.ts +6 -5
  305. package/plugins/inline-code/inline-code.plugin.d.ts +2 -1
  306. package/plugins/link/edit/link-edit.component.d.ts +4 -3
  307. package/plugins/link/hover/link-hover.component.d.ts +1 -1
  308. package/plugins/link/link.component.d.ts +2 -3
  309. package/plugins/link/link.editor.d.ts +5 -5
  310. package/plugins/link/link.plugin.d.ts +2 -1
  311. package/plugins/list/components/bulleted-list.component.d.ts +2 -3
  312. package/plugins/list/components/list-item.component.d.ts +3 -3
  313. package/plugins/list/components/numbered-list.component.d.ts +2 -3
  314. package/plugins/list/list.editor.d.ts +11 -9
  315. package/plugins/list/list.plugin.d.ts +2 -1
  316. package/plugins/list/normalizers/get-list-normalizer.d.ts +3 -2
  317. package/plugins/list/normalizers/normalize-list-item.d.ts +3 -2
  318. package/plugins/list/normalizers/normalize-no.d.ts +3 -2
  319. package/plugins/list/on-key-down-list.d.ts +2 -2
  320. package/plugins/list/queries/get-list-item-entry.d.ts +3 -2
  321. package/plugins/list/queries/get-start-list-item.d.ts +2 -2
  322. package/plugins/list/queries/has-list-in-list-item.d.ts +5 -4
  323. package/plugins/list/queries/is-in-list.d.ts +3 -2
  324. package/plugins/list/queries/is-list-nested.d.ts +3 -2
  325. package/plugins/list/queries/is-list.d.ts +2 -2
  326. package/plugins/list/queries/is-node-type-list.d.ts +2 -1
  327. package/plugins/list/queries/is-selection-at-list-item-start.d.ts +2 -2
  328. package/plugins/list/queries/is-selection-in-same-list-item.d.ts +2 -2
  329. package/plugins/list/transforms/insert-list-data.d.ts +5 -3
  330. package/plugins/list/transforms/insert-list-item.d.ts +2 -2
  331. package/plugins/list/transforms/move-list-item-down.d.ts +3 -2
  332. package/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.d.ts +3 -2
  333. package/plugins/list/transforms/move-list-item-sublist-items-to-list.d.ts +3 -2
  334. package/plugins/list/transforms/move-list-item-up.d.ts +3 -2
  335. package/plugins/list/transforms/unwrap-list.d.ts +2 -2
  336. package/plugins/mark/mark.editor.d.ts +3 -2
  337. package/plugins/mark/mark.plugin.d.ts +2 -1
  338. package/plugins/mention/mention.plugin.d.ts +2 -1
  339. package/plugins/mention/suggestion.component.d.ts +1 -1
  340. package/plugins/node-id/node-id.plugin.d.ts +2 -2
  341. package/plugins/normalizers/insert-paragraph-nodes.d.ts +2 -1
  342. package/plugins/normalizers/trailing-node.plugin.d.ts +2 -2
  343. package/plugins/quick-insert/components/quick-insert.component.d.ts +3 -3
  344. package/plugins/quick-insert/quick-insert.editor.d.ts +6 -6
  345. package/plugins/quick-insert/quick-insert.plugin.d.ts +3 -3
  346. package/plugins/table/components/insert-mark/insert-mark.component.d.ts +3 -3
  347. package/plugins/table/components/table.component.d.ts +2 -3
  348. package/plugins/table/components/td/td.component.d.ts +2 -2
  349. package/plugins/table/components/toolbar/table-options.component.d.ts +3 -3
  350. package/plugins/table/components/toolbar/table-toolbar.component.d.ts +3 -3
  351. package/plugins/table/table.editor.d.ts +11 -11
  352. package/plugins/table/table.store.d.ts +12 -12
  353. package/plugins/table/table.types.d.ts +4 -3
  354. package/plugins/table/transforms/clear-cell.d.ts +3 -2
  355. package/plugins/table/transforms/clear-table-node.d.ts +2 -2
  356. package/plugins/table/transforms/insert-column.d.ts +5 -4
  357. package/plugins/table/transforms/insert-row.d.ts +2 -2
  358. package/plugins/table/transforms/insert-table.d.ts +3 -2
  359. package/plugins/table/transforms/remove-column.d.ts +2 -2
  360. package/plugins/table/transforms/remove-row.d.ts +2 -2
  361. package/plugins/table/transforms/remove-table.d.ts +2 -2
  362. package/plugins/table/utils/calc-anchor-position.d.ts +2 -2
  363. package/plugins/table/utils/cell-position.d.ts +3 -3
  364. package/plugins/table/utils/create-table-position.d.ts +3 -2
  365. package/plugins/table/utils/get-min-max-cell-index.d.ts +2 -2
  366. package/plugins/table/utils/get-select-cell-node.d.ts +3 -3
  367. package/plugins/table/utils/handle-cell.d.ts +3 -2
  368. package/plugins/table/utils/is-range-in-table.d.ts +3 -2
  369. package/plugins/table/utils/is-selection-in-table.d.ts +3 -3
  370. package/plugins/table/utils/merge-cell.d.ts +6 -5
  371. package/plugins/table/utils/set-menu-cell-invisibility.d.ts +2 -2
  372. package/plugins/table/utils/split-cell.d.ts +3 -3
  373. package/plugins/table/utils/table-entry.d.ts +5 -5
  374. package/plugins/todo-item/todo-item.component.d.ts +2 -3
  375. package/plugins/todo-item/todo-item.editor.d.ts +3 -3
  376. package/plugins/todo-item/todo-item.plugin.d.ts +2 -1
  377. package/plugins/vertical-align/toolbar-item.component.d.ts +2 -3
  378. package/queries/anchor-block-entry.d.ts +4 -2
  379. package/queries/anchor-block.d.ts +3 -2
  380. package/queries/anchor-inline-entry.d.ts +3 -2
  381. package/queries/find-descendant.d.ts +3 -2
  382. package/queries/find-node.d.ts +3 -3
  383. package/queries/get-above-by-type.d.ts +2 -3
  384. package/queries/get-above.d.ts +3 -3
  385. package/queries/get-anchor-block-entry.d.ts +4 -2
  386. package/queries/get-block-above.d.ts +3 -3
  387. package/queries/get-block-card-above.d.ts +3 -3
  388. package/queries/get-block-card-cursor.d.ts +2 -2
  389. package/queries/get-container-blocks.d.ts +2 -2
  390. package/queries/get-last-node.d.ts +3 -2
  391. package/queries/get-node.d.ts +3 -2
  392. package/queries/get-nodes-by-type.d.ts +2 -3
  393. package/queries/get-nodes.d.ts +2 -3
  394. package/queries/get-parent.d.ts +3 -3
  395. package/queries/get-plain-text.d.ts +2 -2
  396. package/queries/get-plugin-by-toolbar.d.ts +2 -3
  397. package/queries/get-point-before.d.ts +3 -2
  398. package/queries/get-point-from-location.d.ts +3 -2
  399. package/queries/get-rang-from-block-start.d.ts +2 -3
  400. package/queries/get-range-before.d.ts +3 -2
  401. package/queries/get-selection-marks.d.ts +2 -2
  402. package/queries/get-selection-nodes-by-type.d.ts +3 -2
  403. package/queries/get-text.d.ts +3 -2
  404. package/queries/get-toolbar-disabled.d.ts +2 -3
  405. package/queries/is-across-blocks.d.ts +3 -2
  406. package/queries/is-ancestor-empty.d.ts +3 -2
  407. package/queries/is-block-above-empty.d.ts +2 -2
  408. package/queries/is-block-active.d.ts +2 -2
  409. package/queries/is-block-card-cursor.d.ts +2 -2
  410. package/queries/is-block-text-empty-after-selection.d.ts +2 -2
  411. package/queries/is-contain-nested-type.d.ts +2 -2
  412. package/queries/is-container-type.d.ts +3 -2
  413. package/queries/is-empty-content-filter.d.ts +2 -2
  414. package/queries/is-empty-paragraph-by-path.d.ts +3 -2
  415. package/queries/is-empty-paragraph.d.ts +6 -4
  416. package/queries/is-global-collapsed.d.ts +2 -2
  417. package/queries/is-include-types.d.ts +2 -2
  418. package/queries/is-node-type-in.d.ts +2 -3
  419. package/queries/is-paragraph.d.ts +2 -2
  420. package/queries/is-range-across-blocks.d.ts +3 -3
  421. package/queries/is-start.d.ts +3 -2
  422. package/queries/some-node.d.ts +3 -2
  423. package/shortcuts/index.d.ts +2 -2
  424. package/shortcuts/mark.d.ts +2 -2
  425. package/test/utils/with-editor.d.ts +2 -0
  426. package/transforms/clear-marks.d.ts +2 -2
  427. package/transforms/close-conversion-hint.d.ts +2 -2
  428. package/transforms/delete-element.d.ts +3 -2
  429. package/transforms/handle-continual-delete-backward.d.ts +4 -3
  430. package/transforms/handle-continual-insert-break.d.ts +3 -3
  431. package/transforms/insert-elements.d.ts +3 -2
  432. package/transforms/insert-paragraph.d.ts +3 -2
  433. package/transforms/move-children.d.ts +3 -2
  434. package/transforms/on-keydown-reset-block-type.d.ts +2 -2
  435. package/transforms/set-end-selection.d.ts +2 -2
  436. package/transforms/set-marks.d.ts +3 -2
  437. package/transforms/set-node.d.ts +3 -2
  438. package/transforms/un-hang-range.d.ts +3 -2
  439. package/transforms/un-wrap.d.ts +2 -2
  440. package/transforms/unwrap-nodes-by-type.d.ts +2 -3
  441. package/utils/auto-focus.d.ts +2 -2
  442. package/utils/copy-node.d.ts +5 -3
  443. package/utils/create-paragraph.d.ts +2 -0
  444. package/utils/dom.d.ts +2 -2
  445. package/utils/editor-uuid.d.ts +3 -3
  446. package/utils/fragment.d.ts +7 -5
  447. package/utils/get-editable-element-height.d.ts +2 -2
  448. package/utils/get-toolbar-class.d.ts +2 -2
  449. package/utils/index.d.ts +1 -0
  450. package/utils/is-clean-empty-paragraph.d.ts +4 -3
  451. package/utils/is-inline.d.ts +3 -2
  452. package/utils/match.d.ts +2 -2
  453. package/utils/merge-element-options.d.ts +1 -1
  454. package/utils/scroll-into-view.d.ts +2 -2
  455. package/esm2020/components/listbox/listbox.mjs +0 -375
  456. package/esm2020/components/plugin-menu/plugin-menu.component.mjs +0 -191
  457. package/esm2020/components/template/template.component.mjs +0 -62
  458. package/esm2020/components/toolbar/toolbar.component.mjs +0 -266
  459. package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +0 -144
  460. package/esm2020/components/toolbar-group/toolbar-group.component.mjs +0 -122
  461. package/esm2020/constants/auto-format-rules.mjs +0 -167
  462. package/esm2020/constants/plugin-menu.mjs +0 -325
  463. package/esm2020/core/toolbar-item/base-toolbar-item.mjs +0 -87
  464. package/esm2020/core/utils/plugin-menu.mjs +0 -33
  465. package/esm2020/custom-types.mjs +0 -2
  466. package/esm2020/editor.module.mjs +0 -254
  467. package/esm2020/interfaces/auto-format.mjs +0 -2
  468. package/esm2020/interfaces/editor.mjs +0 -25
  469. package/esm2020/interfaces/plugins/plugin-menu.mjs +0 -19
  470. package/esm2020/interfaces/plugins/with-override.mjs +0 -2
  471. package/esm2020/interfaces/reset-block-type-plugin-options.mjs +0 -2
  472. package/esm2020/interfaces/toolbar.mjs +0 -12
  473. package/esm2020/pipes.mjs +0 -42
  474. package/esm2020/plugins/align/align.editor.mjs +0 -43
  475. package/esm2020/plugins/align/align.plugin.mjs +0 -64
  476. package/esm2020/plugins/autoformat/transforms/auto-format-block.mjs +0 -14
  477. package/esm2020/plugins/autoformat/transforms/auto-format-inline.mjs +0 -78
  478. package/esm2020/plugins/blockquote/blockquote.component.mjs +0 -21
  479. package/esm2020/plugins/blockquote/blockquote.editor.mjs +0 -20
  480. package/esm2020/plugins/blockquote/blockquote.plugin.mjs +0 -85
  481. package/esm2020/plugins/code/code.editor.mjs +0 -48
  482. package/esm2020/plugins/color/color.editor.mjs +0 -27
  483. package/esm2020/plugins/common/history.plugin.mjs +0 -31
  484. package/esm2020/plugins/common/transforms.plugin.mjs +0 -18
  485. package/esm2020/plugins/deserialize/deserialize-html.plugin.mjs +0 -53
  486. package/esm2020/plugins/deserialize/deserialize-md.plugin.mjs +0 -130
  487. package/esm2020/plugins/font-size/font-size.editor.mjs +0 -98
  488. package/esm2020/plugins/heading/heading.editor.mjs +0 -54
  489. package/esm2020/plugins/heading/heading.plugin.mjs +0 -136
  490. package/esm2020/plugins/hr/hr.editor.mjs +0 -16
  491. package/esm2020/plugins/hr/hr.plugin.mjs +0 -56
  492. package/esm2020/plugins/image/image.component.mjs +0 -420
  493. package/esm2020/plugins/image/image.editor.mjs +0 -81
  494. package/esm2020/plugins/indent/indent.editor.mjs +0 -78
  495. package/esm2020/plugins/indent/on-keydown-indent.mjs +0 -59
  496. package/esm2020/plugins/inline-code/inline-code.component.mjs +0 -26
  497. package/esm2020/plugins/inline-code/inline-code.editor.mjs +0 -48
  498. package/esm2020/plugins/inline-code/inline-code.plugin.mjs +0 -66
  499. package/esm2020/plugins/link/edit/link-edit.component.mjs +0 -103
  500. package/esm2020/plugins/link/link.component.mjs +0 -167
  501. package/esm2020/plugins/link/link.editor.mjs +0 -66
  502. package/esm2020/plugins/list/components/bulleted-list.component.mjs +0 -33
  503. package/esm2020/plugins/list/components/list-item.component.mjs +0 -93
  504. package/esm2020/plugins/list/components/numbered-list.component.mjs +0 -39
  505. package/esm2020/plugins/list/list.editor.mjs +0 -126
  506. package/esm2020/plugins/list/list.plugin.mjs +0 -312
  507. package/esm2020/plugins/list/normalizers/get-list-normalizer.mjs +0 -39
  508. package/esm2020/plugins/list/normalizers/normalize-list-item.mjs +0 -18
  509. package/esm2020/plugins/list/normalizers/normalize-no.mjs +0 -43
  510. package/esm2020/plugins/list/on-key-down-list.mjs +0 -33
  511. package/esm2020/plugins/list/queries/get-list-item-entry.mjs +0 -28
  512. package/esm2020/plugins/list/queries/get-start-list-item.mjs +0 -27
  513. package/esm2020/plugins/list/queries/has-list-in-list-item.mjs +0 -27
  514. package/esm2020/plugins/list/queries/is-in-list.mjs +0 -6
  515. package/esm2020/plugins/list/queries/is-list-nested.mjs +0 -10
  516. package/esm2020/plugins/list/queries/is-list.mjs +0 -5
  517. package/esm2020/plugins/list/queries/is-selection-at-list-item-start.mjs +0 -13
  518. package/esm2020/plugins/list/queries/is-selection-in-same-list-item.mjs +0 -17
  519. package/esm2020/plugins/list/transforms/insert-list-data.mjs +0 -72
  520. package/esm2020/plugins/list/transforms/insert-list-item.mjs +0 -73
  521. package/esm2020/plugins/list/transforms/move-list-item-down.mjs +0 -41
  522. package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list-item-sublist.mjs +0 -43
  523. package/esm2020/plugins/list/transforms/move-list-item-sublist-items-to-list.mjs +0 -30
  524. package/esm2020/plugins/list/transforms/move-list-item-up.mjs +0 -78
  525. package/esm2020/plugins/list/transforms/unwrap-list.mjs +0 -10
  526. package/esm2020/plugins/mark/mark.editor.mjs +0 -28
  527. package/esm2020/plugins/mention/mention.plugin.mjs +0 -91
  528. package/esm2020/plugins/normalizers/remove-empty-nodes.mjs +0 -18
  529. package/esm2020/plugins/quick-insert/quick-insert.editor.mjs +0 -68
  530. package/esm2020/plugins/quick-insert/quick-insert.plugin.mjs +0 -104
  531. package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +0 -104
  532. package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +0 -189
  533. package/esm2020/plugins/table/table.editor.mjs +0 -209
  534. package/esm2020/plugins/table/table.plugin.mjs +0 -544
  535. package/esm2020/plugins/table/table.store.mjs +0 -426
  536. package/esm2020/plugins/table/table.types.mjs +0 -60
  537. package/esm2020/plugins/table/transforms/clear-cell.mjs +0 -14
  538. package/esm2020/plugins/table/transforms/clear-table-node.mjs +0 -27
  539. package/esm2020/plugins/table/transforms/insert-column.mjs +0 -69
  540. package/esm2020/plugins/table/transforms/insert-row.mjs +0 -50
  541. package/esm2020/plugins/table/transforms/insert-table.mjs +0 -15
  542. package/esm2020/plugins/table/transforms/remove-column.mjs +0 -51
  543. package/esm2020/plugins/table/transforms/remove-row.mjs +0 -48
  544. package/esm2020/plugins/table/transforms/remove-table.mjs +0 -49
  545. package/esm2020/plugins/table/utils/calc-anchor-position.mjs +0 -25
  546. package/esm2020/plugins/table/utils/cell-position.mjs +0 -60
  547. package/esm2020/plugins/table/utils/create-table-position.mjs +0 -10
  548. package/esm2020/plugins/table/utils/get-min-max-cell-index.mjs +0 -69
  549. package/esm2020/plugins/table/utils/get-select-cell-node.mjs +0 -23
  550. package/esm2020/plugins/table/utils/handle-cell.mjs +0 -25
  551. package/esm2020/plugins/table/utils/is-range-in-table.mjs +0 -16
  552. package/esm2020/plugins/table/utils/is-selection-in-table.mjs +0 -51
  553. package/esm2020/plugins/table/utils/merge-cell.mjs +0 -108
  554. package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +0 -45
  555. package/esm2020/plugins/table/utils/split-cell.mjs +0 -29
  556. package/esm2020/plugins/table/utils/table-entry.mjs +0 -21
  557. package/esm2020/plugins/todo-item/todo-item.editor.mjs +0 -32
  558. package/esm2020/plugins/todo-item/todo-item.plugin.mjs +0 -93
  559. package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +0 -83
  560. package/esm2020/queries/anchor-block-entry.mjs +0 -13
  561. package/esm2020/queries/anchor-block.mjs +0 -6
  562. package/esm2020/queries/anchor-inline-entry.mjs +0 -10
  563. package/esm2020/queries/find-node.mjs +0 -45
  564. package/esm2020/queries/get-above-by-type.mjs +0 -14
  565. package/esm2020/queries/get-above.mjs +0 -9
  566. package/esm2020/queries/get-anchor-block-entry.mjs +0 -8
  567. package/esm2020/queries/get-block-above.mjs +0 -10
  568. package/esm2020/queries/get-block-card-above.mjs +0 -10
  569. package/esm2020/queries/get-block-card-cursor.mjs +0 -5
  570. package/esm2020/queries/get-container-blocks.mjs +0 -12
  571. package/esm2020/queries/get-insert-elements-path.mjs +0 -44
  572. package/esm2020/queries/get-node.mjs +0 -10
  573. package/esm2020/queries/get-nodes-by-type.mjs +0 -15
  574. package/esm2020/queries/get-nodes.mjs +0 -7
  575. package/esm2020/queries/get-parent.mjs +0 -12
  576. package/esm2020/queries/get-plain-text.mjs +0 -16
  577. package/esm2020/queries/get-plugin-by-toolbar.mjs +0 -13
  578. package/esm2020/queries/get-point-from-location.mjs +0 -15
  579. package/esm2020/queries/get-rang-from-block-start.mjs +0 -16
  580. package/esm2020/queries/get-range-before.mjs +0 -17
  581. package/esm2020/queries/get-selection-nodes-by-type.mjs +0 -30
  582. package/esm2020/queries/get-text.mjs +0 -9
  583. package/esm2020/queries/get-toolbar-disabled.mjs +0 -13
  584. package/esm2020/queries/is-across-blocks.mjs +0 -7
  585. package/esm2020/queries/is-ancestor-empty.mjs +0 -6
  586. package/esm2020/queries/is-block-above-empty.mjs +0 -11
  587. package/esm2020/queries/is-block-active.mjs +0 -8
  588. package/esm2020/queries/is-block-card-cursor.mjs +0 -4
  589. package/esm2020/queries/is-contain-nested-type.mjs +0 -29
  590. package/esm2020/queries/is-container-type.mjs +0 -3
  591. package/esm2020/queries/is-empty-content-filter.mjs +0 -23
  592. package/esm2020/queries/is-empty-paragraph-by-path.mjs +0 -7
  593. package/esm2020/queries/is-empty-paragraph.mjs +0 -28
  594. package/esm2020/queries/is-global-collapsed.mjs +0 -5
  595. package/esm2020/queries/is-include-types.mjs +0 -12
  596. package/esm2020/queries/is-node-type-in.mjs +0 -9
  597. package/esm2020/queries/is-node-type.mjs +0 -15
  598. package/esm2020/queries/is-paragraph.mjs +0 -9
  599. package/esm2020/queries/is-range-across-blocks.mjs +0 -22
  600. package/esm2020/queries/is-start.mjs +0 -6
  601. package/esm2020/queries/some-node.mjs +0 -9
  602. package/esm2020/shortcuts/mark.mjs +0 -25
  603. package/esm2020/test/utils/with-plugin.mjs +0 -11
  604. package/esm2020/transforms/close-conversion-hint.mjs +0 -8
  605. package/esm2020/transforms/handle-continual-delete-backward.mjs +0 -18
  606. package/esm2020/transforms/handle-continual-insert-break.mjs +0 -20
  607. package/esm2020/transforms/insert-elements.mjs +0 -38
  608. package/esm2020/transforms/insert-paragraph.mjs +0 -6
  609. package/esm2020/transforms/move-children.mjs +0 -22
  610. package/esm2020/transforms/on-keydown-reset-block-type.mjs +0 -23
  611. package/esm2020/transforms/set-marks.mjs +0 -9
  612. package/esm2020/transforms/set-node.mjs +0 -6
  613. package/esm2020/transforms/un-hang-range.mjs +0 -11
  614. package/esm2020/transforms/un-wrap.mjs +0 -12
  615. package/esm2020/transforms/unwrap-nodes-by-type.mjs +0 -14
  616. package/esm2020/utils/copy-node.mjs +0 -32
  617. package/esm2020/utils/create-empty-paragraph.mjs +0 -14
  618. package/esm2020/utils/editor-uuid.mjs +0 -8
  619. package/esm2020/utils/fragment.mjs +0 -74
  620. package/esm2020/utils/get-editable-element-height.mjs +0 -6
  621. package/esm2020/utils/get-toolbar-class.mjs +0 -6
  622. package/esm2020/utils/index.mjs +0 -19
  623. package/esm2020/utils/insert-data-by-invalid-type.mjs +0 -62
  624. package/esm2020/utils/is-clean-empty-paragraph.mjs +0 -37
  625. package/esm2020/utils/is-inline.mjs +0 -9
  626. package/esm2020/utils/merge-element-options.mjs +0 -19
  627. package/esm2020/utils/scroll-into-view.mjs +0 -38
  628. package/fesm2015/worktile-theia.mjs +0 -16674
  629. package/fesm2015/worktile-theia.mjs.map +0 -1
  630. package/fesm2020/worktile-theia.mjs.map +0 -1
  631. /package/{esm2020 → esm2022}/components/column-resize/resize-ref.mjs +0 -0
  632. /package/{esm2020 → esm2022}/components/column-resize/selectors.mjs +0 -0
  633. /package/{esm2020 → esm2022}/components/index.mjs +0 -0
  634. /package/{esm2020 → esm2022}/components/listbox/listbox.type.mjs +0 -0
  635. /package/{esm2020 → esm2022}/constants/code.mjs +0 -0
  636. /package/{esm2020 → esm2022}/constants/color-select.mjs +0 -0
  637. /package/{esm2020 → esm2022}/constants/default.mjs +0 -0
  638. /package/{esm2020 → esm2022}/constants/error.mjs +0 -0
  639. /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
  640. /package/{esm2020 → esm2022}/constants/node-types.mjs +0 -0
  641. /package/{esm2020 → esm2022}/constants/selector.mjs +0 -0
  642. /package/{esm2020 → esm2022}/constants/toolbar.mjs +0 -0
  643. /package/{esm2020 → esm2022}/core/create-plugin.mjs +0 -0
  644. /package/{esm2020 → esm2022}/core/create-toolbar.mjs +0 -0
  645. /package/{esm2020 → esm2022}/core/index.mjs +0 -0
  646. /package/{esm2020 → esm2022}/core/utils/flatten-deep-plugins.mjs +0 -0
  647. /package/{esm2020 → esm2022}/core/utils/get-plugin-options.mjs +0 -0
  648. /package/{esm2020 → esm2022}/core/utils/get-plugin.mjs +0 -0
  649. /package/{esm2020 → esm2022}/core/utils/get-plugins.mjs +0 -0
  650. /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
  651. /package/{esm2020 → esm2022}/core/utils/merge-array.mjs +0 -0
  652. /package/{esm2020 → esm2022}/core/utils/merge-deep-plugins.mjs +0 -0
  653. /package/{esm2020 → esm2022}/core/utils/merge-options.mjs +0 -0
  654. /package/{esm2020 → esm2022}/core/utils/nested-structure-by-key.mjs +0 -0
  655. /package/{esm2020 → esm2022}/core/utils/plugins-by-key.mjs +0 -0
  656. /package/{esm2020 → esm2022}/core/with-theia.mjs +0 -0
  657. /package/{esm2020 → esm2022}/interfaces/element.mjs +0 -0
  658. /package/{esm2020 → esm2022}/interfaces/image.mjs +0 -0
  659. /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
  660. /package/{esm2020 → esm2022}/interfaces/plugins/index.mjs +0 -0
  661. /package/{esm2020 → esm2022}/interfaces/plugins/no-infer.mjs +0 -0
  662. /package/{esm2020 → esm2022}/interfaces/plugins/plugin-key.mjs +0 -0
  663. /package/{esm2020 → esm2022}/interfaces/plugins/plugins.mjs +0 -0
  664. /package/{esm2020 → esm2022}/interfaces/upload.mjs +0 -0
  665. /package/{esm2020 → esm2022}/interfaces/utility/index.mjs +0 -0
  666. /package/{esm2020 → esm2022}/interfaces/utility/nested-structure-by-key.mjs +0 -0
  667. /package/{esm2020 → esm2022}/interfaces/utility/override-by-key.mjs +0 -0
  668. /package/{esm2020 → esm2022}/interfaces/utility/types.mjs +0 -0
  669. /package/{esm2020 → esm2022}/interfaces/valid-children-types.mjs +0 -0
  670. /package/{esm2020 → esm2022}/plugins/color/color.plugin.mjs +0 -0
  671. /package/{esm2020 → esm2022}/plugins/image/image.plugin.mjs +0 -0
  672. /package/{esm2020 → esm2022}/plugins/index.mjs +0 -0
  673. /package/{esm2020 → esm2022}/plugins/link/link.types.mjs +0 -0
  674. /package/{esm2020 → esm2022}/plugins/list/queries/get-list-item-sublist.mjs +0 -0
  675. /package/{esm2020 → esm2022}/plugins/list/queries/get-list-types.mjs +0 -0
  676. /package/{esm2020 → esm2022}/plugins/list/types.mjs +0 -0
  677. /package/{esm2020 → esm2022}/plugins/mention/index.mjs +0 -0
  678. /package/{esm2020 → esm2022}/plugins/mention/mention.type.mjs +0 -0
  679. /package/{esm2020 → esm2022}/plugins/public-api.mjs +0 -0
  680. /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.plugin.mjs +0 -0
  681. /package/{esm2020 → esm2022}/plugins/soft-break/soft-break.types.mjs +0 -0
  682. /package/{esm2020 → esm2022}/plugins/table/transforms/index.mjs +0 -0
  683. /package/{esm2020 → esm2022}/plugins/table/utils/add-columns.mjs +0 -0
  684. /package/{esm2020 → esm2022}/plugins/table/utils/calc-span.mjs +0 -0
  685. /package/{esm2020 → esm2022}/plugins/table/utils/calculate-table.mjs +0 -0
  686. /package/{esm2020 → esm2022}/plugins/table/utils/create-cell.mjs +0 -0
  687. /package/{esm2020 → esm2022}/plugins/table/utils/create-row.mjs +0 -0
  688. /package/{esm2020 → esm2022}/plugins/table/utils/create-table.mjs +0 -0
  689. /package/{esm2020 → esm2022}/plugins/table/utils/get-grid-columns.mjs +0 -0
  690. /package/{esm2020 → esm2022}/plugins/table/utils/index.mjs +0 -0
  691. /package/{esm2020 → esm2022}/plugins/table/utils/is-header-row.mjs +0 -0
  692. /package/{esm2020 → esm2022}/plugins/table/utils/is-legal-table.mjs +0 -0
  693. /package/{esm2020 → esm2022}/plugins/table/utils/is-virtual-key.mjs +0 -0
  694. /package/{esm2020 → esm2022}/plugins/table/utils/next-path.mjs +0 -0
  695. /package/{esm2020 → esm2022}/plugins/table/utils/normalize-table.mjs +0 -0
  696. /package/{esm2020 → esm2022}/plugins/table/utils/remove-columns.mjs +0 -0
  697. /package/{esm2020 → esm2022}/plugins/table/utils/remove-row-column.mjs +0 -0
  698. /package/{esm2020 → esm2022}/plugins/table/utils/set-cells-background-color.mjs +0 -0
  699. /package/{esm2020 → esm2022}/plugins/table/utils/set-node-options.mjs +0 -0
  700. /package/{esm2020 → esm2022}/plugins/table/utils/table-position.mjs +0 -0
  701. /package/{esm2020 → esm2022}/plugins/vertical-align/vertical-align.editor.mjs +0 -0
  702. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  703. /package/{esm2020 → esm2022}/queries/find-path.mjs +0 -0
  704. /package/{esm2020 → esm2022}/queries/get-directly-parent.mjs +0 -0
  705. /package/{esm2020 → esm2022}/queries/get-last-child-path.mjs +0 -0
  706. /package/{esm2020 → esm2022}/queries/get-next-sibling-nodes.mjs +0 -0
  707. /package/{esm2020 → esm2022}/queries/get-previous-path.mjs +0 -0
  708. /package/{esm2020 → esm2022}/queries/index.mjs +0 -0
  709. /package/{esm2020 → esm2022}/queries/is-ancestor.mjs +0 -0
  710. /package/{esm2020 → esm2022}/queries/is-collapsed.mjs +0 -0
  711. /package/{esm2020 → esm2022}/queries/is-descendant.mjs +0 -0
  712. /package/{esm2020 → esm2022}/queries/is-first-child.mjs +0 -0
  713. /package/{esm2020 → esm2022}/queries/is-point-at-root.mjs +0 -0
  714. /package/{esm2020 → esm2022}/queries/is-range-at-root.mjs +0 -0
  715. /package/{esm2020 → esm2022}/test/index.mjs +0 -0
  716. /package/{esm2020 → esm2022}/transforms/apply-deep-to-nodes.mjs +0 -0
  717. /package/{esm2020 → esm2022}/transforms/index.mjs +0 -0
  718. /package/{esm2020 → esm2022}/transforms/merge-deep-to-nodes.mjs +0 -0
  719. /package/{esm2020 → esm2022}/utils/blob.mjs +0 -0
  720. /package/{esm2020 → esm2022}/utils/cast-array.mjs +0 -0
  721. /package/{esm2020 → esm2022}/utils/color-picker.mjs +0 -0
  722. /package/{esm2020 → esm2022}/utils/common.mjs +0 -0
  723. /package/{esm2020 → esm2022}/utils/data-transform.mjs +0 -0
  724. /package/{esm2020 → esm2022}/utils/id-creator.mjs +0 -0
  725. /package/{esm2020 → esm2022}/utils/lodash.mjs +0 -0
  726. /package/{esm2020 → esm2022}/utils/refocus.mjs +0 -0
  727. /package/{esm2020 → esm2022}/utils/weak-maps.mjs +0 -0
  728. /package/{esm2020 → esm2022}/worktile-theia.mjs +0 -0
@@ -1,5 +1,5 @@
1
1
  import { OnInit, OnDestroy, ChangeDetectorRef, Renderer2 } from '@angular/core';
2
- import { Editor } from 'slate';
2
+ import { TheEditor } from '../../../../interfaces';
3
3
  import { TableStore } from '../../table.store';
4
4
  import { Subject } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -15,7 +15,7 @@ export declare class TheInsertMarkComponent implements OnInit, OnDestroy {
15
15
  destroy$: Subject<void>;
16
16
  tooltipContent: string;
17
17
  disabled: boolean;
18
- get editor(): Editor;
18
+ get editor(): TheEditor;
19
19
  constructor(cdr: ChangeDetectorRef, renderer2: Renderer2);
20
20
  ngOnInit(): void;
21
21
  ngOnDestroy(): void;
@@ -24,5 +24,5 @@ export declare class TheInsertMarkComponent implements OnInit, OnDestroy {
24
24
  onMouseLeave(event: MouseEvent): void;
25
25
  getLength(): string;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<TheInsertMarkComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TheInsertMarkComponent, "the-table-insert-mark", never, { "type": "type"; "at": "at"; "tableStore": "tableStore"; "parentElement": "parentElement"; }, {}, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheInsertMarkComponent, "the-table-insert-mark", never, { "type": { "alias": "type"; "required": false; }; "at": { "alias": "at"; "required": false; }; "tableStore": { "alias": "tableStore"; "required": false; }; "parentElement": { "alias": "parentElement"; "required": false; }; }, {}, never, never, false, never>;
28
28
  }
@@ -1,7 +1,6 @@
1
1
  import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef, NgZone, AfterViewInit, Renderer2, QueryList } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
- import { Editor } from 'slate';
4
- import { TheBaseElementComponent, ThePluginOption, TheModeConfig } from '../../../interfaces';
3
+ import { TheEditor, TheBaseElementComponent, ThePluginOption, TheModeConfig } from '../../../interfaces';
5
4
  import { TableCellElement, TableElement } from '../../../custom-types';
6
5
  import { ColumnResizeNotifierSource, TableCellEventDispatcher } from '../../../components';
7
6
  import { TheTableContextMenuService } from '../../../services/table-contextmenu.service';
@@ -11,7 +10,7 @@ import { TableService } from '../table.service';
11
10
  import { ThePluginTableOption, TheTableColumn } from '../table.types';
12
11
  import { TableFreezeColumnPipe, TableFreezeRowPipe } from '../table.pipe';
13
12
  import * as i0 from "@angular/core";
14
- export declare class TheTableComponent extends TheBaseElementComponent<TableElement, Editor> implements OnInit, AfterViewInit, OnDestroy {
13
+ export declare class TheTableComponent extends TheBaseElementComponent<TableElement, TheEditor> implements OnInit, AfterViewInit, OnDestroy {
15
14
  eventDispatcher: TableCellEventDispatcher;
16
15
  resizeNotifier: ColumnResizeNotifierSource;
17
16
  tableStore: TableStore;
@@ -1,5 +1,4 @@
1
1
  import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef, NgZone, Renderer2, ViewContainerRef, AfterViewInit, Injector } from '@angular/core';
2
- import { Editor } from 'slate';
3
2
  import { Subject } from 'rxjs';
4
3
  import { ConnectedPosition, Overlay, OverlayRef, ScrollDispatcher } from '@angular/cdk/overlay';
5
4
  import { ColumnResizingStore } from '../../../../components/column-resize/resizing.store';
@@ -7,6 +6,7 @@ import { Position, TableCellEventDispatcher } from '../../../../components/colum
7
6
  import { ColumnResizeNotifierSource } from '../../../../components/column-resize/column-resize-notifier';
8
7
  import { ResizeRef } from '../../../../components/column-resize/resize-ref';
9
8
  import { TheBaseElementComponent } from '../../../../interfaces/view-base';
9
+ import { TheEditor } from '../../../../interfaces/editor';
10
10
  import { TableCellElement } from '../../../../custom-types';
11
11
  import { TableOptions } from '../../table.types';
12
12
  import { TableFreezeColumnPipe } from '../../table.pipe';
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
16
16
  export declare const POSITION_MAP: {
17
17
  [key: string]: ConnectedPosition;
18
18
  };
19
- export declare class TheTdComponent extends TheBaseElementComponent<TableCellElement, Editor> implements OnInit, AfterViewInit, OnDestroy {
19
+ export declare class TheTdComponent extends TheBaseElementComponent<TableCellElement, TheEditor> implements OnInit, AfterViewInit, OnDestroy {
20
20
  elementRef: ElementRef;
21
21
  cdr: ChangeDetectorRef;
22
22
  private renderer;
@@ -1,11 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { ThyPopoverRef } from 'ngx-tethys/popover';
3
- import { Editor } from 'slate';
4
3
  import { TableDropdownOption } from '../../table.types';
4
+ import { TheEditor } from '../../../../interfaces';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TheTableOptionsComponent implements OnInit {
7
7
  private popoverRef;
8
- editor: Editor;
8
+ editor: TheEditor;
9
9
  tableDropdownList: TableDropdownOption[];
10
10
  constructor(popoverRef: ThyPopoverRef<TheTableOptionsComponent>);
11
11
  ngOnInit(): void;
@@ -13,5 +13,5 @@ export declare class TheTableOptionsComponent implements OnInit {
13
13
  setColumnOptions(): void;
14
14
  setTableOptions(event: MouseEvent, option: TableDropdownOption): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TheTableOptionsComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TheTableOptionsComponent, "the-table-options", never, { "editor": "editor"; }, {}, never, never, false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheTableOptionsComponent, "the-table-options", never, { "editor": { "alias": "editor"; "required": false; }; }, {}, never, never, false, never>;
17
17
  }
@@ -1,8 +1,8 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
3
- import { Editor } from 'slate';
4
3
  import { TableStore } from '../../table.store';
5
4
  import { MenuEntity } from '../../table.types';
5
+ import { TheEditor } from '../../../../interfaces';
6
6
  import { TableElement } from '../../../..//custom-types';
7
7
  import { Subscription } from 'rxjs';
8
8
  import { ThyNotifyService } from 'ngx-tethys/notify';
@@ -19,7 +19,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
19
19
  tableChangeSubscriber: Subscription;
20
20
  tableStore: TableStore;
21
21
  tableElement: TableElement;
22
- get editor(): Editor;
22
+ get editor(): TheEditor;
23
23
  cellMenuList: MenuEntity[];
24
24
  get hasDivider(): boolean;
25
25
  get tableOptions(): import("../../../../interfaces").ThePluginOption<{}>;
@@ -38,7 +38,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
38
38
  setEquallyColumnHandle(event: MouseEvent): void;
39
39
  openTableOptionMenu(event: Event): void;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<TheTableToolbarComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "tableElement": "tableElement"; }, {}, never, never, false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": { "alias": "tableStore"; "required": false; }; "tableElement": { "alias": "tableElement"; "required": false; }; }, {}, never, never, false, never>;
42
42
  }
43
43
  export declare enum DeleteIcon {
44
44
  'table-delete-rows' = "table-delete-rows",
@@ -1,19 +1,19 @@
1
- import { Editor, NodeEntry, Path, Range, Location } from 'slate';
1
+ import { NodeEntry, Path, Range, Location } from 'slate';
2
2
  import { TableOptions } from './table.types';
3
3
  import { Alignment, Indents, VerticalAlignment } from '../../constants';
4
4
  import { TheEditor } from '../../interfaces';
5
5
  import { CustomElement, TableElement } from '../../custom-types';
6
6
  export declare const TableEditor: {
7
- insertTable(editor: Editor, optionsParam?: TableOptions): void;
8
- insertColumn(editor: Editor, count?: number, at?: number, optionsParam?: TableOptions): void;
9
- insertRow(editor: Editor, count?: number, at?: number, optionsParam?: TableOptions): void;
10
- removeTable(editor: Editor, optionsParam?: TableOptions): void;
11
- removeRow(editor: Editor, rowIndex?: number, optionsParam?: TableOptions): void;
12
- removeColumn(editor: Editor, colIndex?: number, optionsParam?: TableOptions): void;
13
- clearCell(editor: Editor, nodeEntry?: NodeEntry<CustomElement>, optionsParam?: TableOptions): void;
14
- isActive(editor: Editor): boolean;
15
- getSelectedCells(editor: Editor): import("./table.types").CellPosition[];
16
- setAlign(editor: Editor, alignment: Alignment): boolean;
7
+ insertTable(editor: TheEditor, optionsParam?: TableOptions): void;
8
+ insertColumn(editor: TheEditor, count?: number, at?: number, optionsParam?: TableOptions): void;
9
+ insertRow(editor: TheEditor, count?: number, at?: number, optionsParam?: TableOptions): void;
10
+ removeTable(editor: TheEditor, optionsParam?: TableOptions): void;
11
+ removeRow(editor: TheEditor, rowIndex?: number, optionsParam?: TableOptions): void;
12
+ removeColumn(editor: TheEditor, colIndex?: number, optionsParam?: TableOptions): void;
13
+ clearCell(editor: TheEditor, nodeEntry?: NodeEntry<CustomElement>, optionsParam?: TableOptions): void;
14
+ isActive(editor: TheEditor): boolean;
15
+ getSelectedCells(editor: TheEditor): import("./table.types").CellPosition[];
16
+ setAlign(editor: TheEditor, alignment: Alignment): boolean;
17
17
  setVerticalAlign(editor: TheEditor, alignment: VerticalAlignment): boolean;
18
18
  isVerticalAlignActive(editor: TheEditor, alignment: VerticalAlignment): boolean;
19
19
  toggleMark(editor: TheEditor, isActive: boolean, format: string | string[], value?: string | number | boolean): boolean;
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { Editor } from 'slate';
2
+ import { TheEditor } from '../../interfaces';
3
3
  import { TablePosition } from './utils';
4
4
  import { ColorType } from '../../constants/color-select';
5
5
  import { CellPosition } from './table.types';
@@ -15,7 +15,7 @@ export declare class TableStore {
15
15
  dangerousColumnsIndex: number[];
16
16
  dangerousRowsIndex: number[];
17
17
  isSelectedTable: boolean;
18
- editor: Editor;
18
+ editor: TheEditor;
19
19
  isFullscreen: boolean;
20
20
  anchorCellPath: number[];
21
21
  focusCellPath: number[];
@@ -31,19 +31,19 @@ export declare class TableStore {
31
31
  maxCol: number;
32
32
  get dangerousCells(): CellPosition[];
33
33
  constructor();
34
- initEditor(editor: Editor): void;
34
+ initEditor(editor: TheEditor): void;
35
35
  getSelectedCellPositions(): CellPosition[];
36
36
  publishDangerousCells(value: CellPosition[]): void;
37
37
  setSelectedColumnsAndRowIndex(): void;
38
38
  setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
39
- selectRow(editor: Editor, index: number): void;
40
- selectColumn(editor: Editor, index: number): void;
41
- selectTable(editor: Editor): void;
42
- selectCellStart(cell: HTMLTableCellElement, editor: Editor): void;
43
- selectCells(editor: Editor): void;
39
+ selectRow(editor: TheEditor, index: number): void;
40
+ selectColumn(editor: TheEditor, index: number): void;
41
+ selectTable(editor: TheEditor): void;
42
+ selectCellStart(cell: HTMLTableCellElement, editor: TheEditor): void;
43
+ selectCells(editor: TheEditor): void;
44
44
  selectFirstCell(): void;
45
- selectCell(cell: HTMLTableCellElement, editor: Editor): void;
46
- selectCellOngoing(cell: HTMLTableCellElement, editor: Editor): void;
45
+ selectCell(cell: HTMLTableCellElement, editor: TheEditor): void;
46
+ selectCellOngoing(cell: HTMLTableCellElement, editor: TheEditor): void;
47
47
  clearSelectedCells(): void;
48
48
  clearLastFocusPath(): void;
49
49
  selectedCellsChange(): Observable<TableCellElement[]>;
@@ -51,7 +51,7 @@ export declare class TableStore {
51
51
  changeCells(): void;
52
52
  emitTableChange(): void;
53
53
  tableChange(): Observable<void>;
54
- selectCellEnd(editor: Editor): void;
54
+ selectCellEnd(editor: TheEditor): void;
55
55
  dangerousCellsChange(): Observable<CellPosition[]>;
56
56
  setDangerousCells(): void;
57
57
  clearDangerousCells(): void;
@@ -70,7 +70,7 @@ export declare class TableStore {
70
70
  * @param editor 编辑器对象
71
71
  * @param cell 单元格元素
72
72
  */
73
- areaSelectionStart(cell: HTMLTableCellElement, editor: Editor): void;
73
+ areaSelectionStart(cell: HTMLTableCellElement, editor: TheEditor): void;
74
74
  /**
75
75
  * 设置区域选择的单元格
76
76
  * @param cellElement 单元格元素
@@ -3,7 +3,8 @@ import { ComponentType } from 'slate-angular';
3
3
  import { TheBaseElementComponent } from '../../interfaces/view-base';
4
4
  import { ElementKinds } from '../../constants/node-types';
5
5
  import type { TheTableComponent } from './components/table.component';
6
- import { Editor, Element } from 'slate';
6
+ import { Element } from 'slate';
7
+ import { TheEditor } from '../../interfaces';
7
8
  import { Observable } from 'rxjs';
8
9
  export declare const THE_TABLE_COMPONENT_TOKEN: InjectionToken<ComponentType<TheTableComponent>>;
9
10
  export declare const HEADER_CELL_CLASS = "the-header-cell";
@@ -59,8 +60,8 @@ export interface ThePluginTableOption {
59
60
  freezeColumnHeader?: boolean;
60
61
  freezeRowHeader?: boolean;
61
62
  showFullscreen?: boolean;
62
- setFullscreen?: (editor: Editor, event: MouseEvent, element: Element) => void;
63
- fullscreenAction?: (editor: Editor) => Observable<{
63
+ setFullscreen?: (editor: TheEditor, event: MouseEvent, element: Element) => void;
64
+ fullscreenAction?: (editor: TheEditor) => Observable<{
64
65
  element: Element | undefined;
65
66
  state: FullscreenState;
66
67
  }>;
@@ -1,6 +1,7 @@
1
- import { NodeEntry, Editor, Element } from 'slate';
1
+ import { NodeEntry, Element } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
2
3
  import { TableOptions } from '../table.types';
3
4
  /**
4
5
  * Clear the content of the given cell
5
6
  */
6
- export declare function clearCell(opts: TableOptions, editor: Editor, cellEntry: NodeEntry<Element>): void;
7
+ export declare function clearCell(opts: TableOptions, editor: TheEditor, cellEntry: NodeEntry<Element>): void;
@@ -1,6 +1,6 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableOptions } from '../table.types';
3
3
  /**
4
4
  * Clear the content of the given node
5
5
  */
6
- export declare function clearTableNode(opts: TableOptions, editor: Editor, isTopToBot?: boolean): void;
6
+ export declare function clearTableNode(opts: TableOptions, editor: TheEditor, isTopToBot?: boolean): void;
@@ -1,12 +1,13 @@
1
- import { Editor, NodeEntry } from 'slate';
2
- import { TableOptions } from '../table.types';
1
+ import { NodeEntry } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
3
3
  import { TableCellElement, TableElement } from '../../../custom-types';
4
+ import { TableOptions } from '../table.types';
4
5
  /**
5
6
  * Insert a new column in current table
6
7
  */
7
- export declare function insertColumn(opts: TableOptions, editor: Editor, count?: number, at?: number, // Column index
8
+ export declare function insertColumn(opts: TableOptions, editor: TheEditor, count?: number, at?: number, // Column index
8
9
  getCell?: (column: number, row: number) => TableCellElement): void;
9
10
  /**
10
11
  * Insert new column in the row
11
12
  */
12
- export declare function insertColumnAtRow(opts: TableOptions, editor: Editor, count: number, tableEntry: NodeEntry<TableElement>, rowIndex: number, columnIndex: number, getCell?: (column: number, row: number) => TableCellElement): void;
13
+ export declare function insertColumnAtRow(opts: TableOptions, editor: TheEditor, count: number, tableEntry: NodeEntry<TableElement>, rowIndex: number, columnIndex: number, getCell?: (column: number, row: number) => TableCellElement): void;
@@ -1,6 +1,6 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableOptions } from '../table.types';
3
3
  /**
4
4
  * Insert a new row in current table
5
5
  */
6
- export declare function insertRow(opts: TableOptions, editor: Editor, count?: number, at?: number): void;
6
+ export declare function insertRow(opts: TableOptions, editor: TheEditor, count?: number, at?: number): void;
@@ -1,6 +1,7 @@
1
- import { Editor, Node } from 'slate';
1
+ import { Node } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
2
3
  import { TableOptions } from '../table.types';
3
4
  /**
4
5
  * Insert a new table
5
6
  */
6
- export declare function insertTable(opts: TableOptions, editor: Editor, rows?: number, columns?: number, getCellContent?: (column: number, row: number) => Node[]): void;
7
+ export declare function insertTable(opts: TableOptions, editor: TheEditor, rows?: number, columns?: number, getCellContent?: (column: number, row: number) => Node[]): void;
@@ -1,3 +1,3 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableOptions } from '../table.types';
3
- export declare function removeColumn(opts: TableOptions, editor: Editor, selectColIndex?: number): void;
3
+ export declare function removeColumn(opts: TableOptions, editor: TheEditor, selectColIndex?: number): void;
@@ -1,3 +1,3 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableOptions } from '../table.types';
3
- export declare function removeRow(opts: TableOptions, editor: Editor, selectRowIndex?: number): void;
3
+ export declare function removeRow(opts: TableOptions, editor: TheEditor, selectRowIndex?: number): void;
@@ -1,3 +1,3 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableOptions } from '../table.types';
3
- export declare function removeTable(opts: TableOptions, editor: Editor): void;
3
+ export declare function removeTable(opts: TableOptions, editor: TheEditor): void;
@@ -1,5 +1,5 @@
1
- import { Editor } from 'slate';
2
- export declare function calculateAnchorPositionInCell(editor: Editor): {
1
+ import { TheEditor } from '../../../interfaces';
2
+ export declare function calculateAnchorPositionInCell(editor: TheEditor): {
3
3
  isFirstLine: boolean;
4
4
  isLastLine: boolean;
5
5
  anchorBlockPath: import("slate").Path;
@@ -1,4 +1,4 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableCellElement } from '../../../custom-types';
3
3
  import { CellPosition } from '../table.types';
4
4
  /**
@@ -7,14 +7,14 @@ import { CellPosition } from '../table.types';
7
7
  * @param selectedCellPositions 选中的单元格位置数组
8
8
  * @returns 是否选中了所有的单元格
9
9
  */
10
- export declare const isSelectedAllCell: (editor: Editor, selectedCellPositions: CellPosition[]) => boolean;
10
+ export declare const isSelectedAllCell: (editor: TheEditor, selectedCellPositions: CellPosition[]) => boolean;
11
11
  /**
12
12
  * 获取选中的单元格位置数组
13
13
  * @param editor 编辑器对象
14
14
  * @param selectedCells 选中的单元格
15
15
  * @returns 选中的单元格位置
16
16
  */
17
- export declare const getSelectedCellPositions: (editor: Editor, selectedCells: TableCellElement[]) => {
17
+ export declare const getSelectedCellPositions: (editor: TheEditor, selectedCells: TableCellElement[]) => {
18
18
  row: number;
19
19
  col: number;
20
20
  }[];
@@ -1,3 +1,4 @@
1
- import { Editor, Path } from 'slate';
1
+ import { Path } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
2
3
  import { TablePosition } from './table-position';
3
- export declare const createTablePosition: (editor: Editor, path?: Path) => TablePosition;
4
+ export declare const createTablePosition: (editor: TheEditor, path?: Path) => TablePosition;
@@ -1,7 +1,7 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableElement } from '../../../custom-types';
3
3
  import { CellPosition } from '../table.types';
4
- export declare const getMinAndMaxCellIndex: (editor: Editor, selectedCellPositions: CellPosition[], maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement) => {
4
+ export declare const getMinAndMaxCellIndex: (editor: TheEditor, selectedCellPositions: CellPosition[], maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement) => {
5
5
  minRow: number;
6
6
  maxRow: number;
7
7
  minCol: number;
@@ -1,8 +1,8 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { CellPosition } from '../table.types';
3
- export declare function getSelectCellNode(editor: Editor, selectedCells: CellPosition[]): {
3
+ export declare function getSelectCellNode(editor: TheEditor, selectedCells: CellPosition[]): {
4
4
  node: import("@worktile/theia").TableCellElement;
5
5
  row: number;
6
6
  col: number;
7
7
  }[];
8
- export declare function focusCell(editor: Editor, path: number[]): void;
8
+ export declare function focusCell(editor: TheEditor, path: number[]): void;
@@ -1,6 +1,7 @@
1
1
  import { CellPosition } from '../table.types';
2
- import { Editor, Path } from 'slate';
2
+ import { Path } from 'slate';
3
+ import { TheEditor } from '../../../interfaces';
3
4
  import { Indents } from '../../../constants';
4
5
  import { CustomElement } from '../../../custom-types';
5
6
  export declare function sortCell(cells: CellPosition[]): void;
6
- export declare function setCellIndent(editor: Editor, indentType: Indents, child: CustomElement, at: Path): void;
7
+ export declare function setCellIndent(editor: TheEditor, indentType: Indents, child: CustomElement, at: Path): void;
@@ -1,6 +1,7 @@
1
- import { Editor, Range } from 'slate';
1
+ import { Range } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
2
3
  import { TableOptions } from '../table.types';
3
4
  /**
4
5
  * True if the given range is inside one table
5
6
  */
6
- export declare function isRangeInTable(opts: TableOptions, editor: Editor, range: Range): boolean;
7
+ export declare function isRangeInTable(opts: TableOptions, editor: TheEditor, range: Range): boolean;
@@ -1,13 +1,13 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { CellPosition, TableOptions } from '../table.types';
3
3
  /**
4
4
  * Is the selection in a table
5
5
  */
6
- export declare function isSelectionInTable(opts: TableOptions, editor: Editor): boolean;
6
+ export declare function isSelectionInTable(opts: TableOptions, editor: TheEditor): boolean;
7
7
  /**
8
8
  * Whether the cells passed in can form a rectangle
9
9
  * @param editor
10
10
  * @param cells
11
11
  * @returns boolean
12
12
  */
13
- export declare function isRectangularInTableCells(editor: Editor, cells: CellPosition[]): boolean;
13
+ export declare function isRectangularInTableCells(editor: TheEditor, cells: CellPosition[]): boolean;
@@ -1,4 +1,5 @@
1
- import { Path, Editor } from 'slate';
1
+ import { Path } from 'slate';
2
+ import { TheEditor } from '../../../interfaces';
2
3
  import { TableCellElement } from '../../../custom-types';
3
4
  import { CellPosition } from '../table.types';
4
5
  export interface SelectedCellInfo {
@@ -7,7 +8,7 @@ export interface SelectedCellInfo {
7
8
  node: TableCellElement;
8
9
  maxRowSpan?: number;
9
10
  }
10
- export declare function isSelectedCellMerged(editor: Editor): boolean;
11
+ export declare function isSelectedCellMerged(editor: TheEditor): boolean;
11
12
  export declare function getLeftCellDict(selectCellNodes: SelectedCellInfo[]): {
12
13
  [key: string]: SelectedCellInfo;
13
14
  };
@@ -17,6 +18,6 @@ export declare function calculateCellSpan(selectCellNodes: SelectedCellInfo[], l
17
18
  rowspan: number;
18
19
  colspan: number;
19
20
  };
20
- export declare function mergeCell(editor: Editor, selectedCells: CellPosition[]): void;
21
- export declare function mergeCellContent(editor: Editor, leftTopCellPath: Path, cellPath: Path): void;
22
- export declare function getCellPositionsBeforeMerge(editor: Editor, { row, col }: CellPosition): CellPosition[];
21
+ export declare function mergeCell(editor: TheEditor, selectedCells: CellPosition[]): void;
22
+ export declare function mergeCellContent(editor: TheEditor, leftTopCellPath: Path, cellPath: Path): void;
23
+ export declare function getCellPositionsBeforeMerge(editor: TheEditor, { row, col }: CellPosition): CellPosition[];
@@ -1,6 +1,6 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { MenuEntity, CellPosition } from '../table.types';
3
- export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], tableInfo: {
3
+ export declare function setCellMenuVisibility(editor: TheEditor, menuList: MenuEntity[], tableInfo: {
4
4
  selectedCellPositions: CellPosition[];
5
5
  isFullscreen?: boolean;
6
6
  isSelectedTable?: boolean;
@@ -1,4 +1,4 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../../interfaces';
2
2
  import { TableCellElement, TableElement } from '../../../custom-types';
3
- export declare function splitCell(editor: Editor): import("@worktile/theia").TheEditor;
4
- export declare function resetTableCell(editor: Editor, table: TableElement, cell: TableCellElement, cellRow: number, cellCol: number): void;
3
+ export declare function splitCell(editor: TheEditor): TheEditor;
4
+ export declare function resetTableCell(editor: TheEditor, table: TableElement, cell: TableCellElement, cellRow: number, cellCol: number): void;
@@ -1,5 +1,5 @@
1
- import { Editor } from 'slate';
2
- export declare const getTableEntry: (editor: Editor) => import("slate").NodeEntry<import("@worktile/theia").TableElement>;
3
- export declare const getTablePath: (editor: Editor) => import("slate").Path;
4
- export declare const getTable: (editor: Editor) => import("@worktile/theia").TableElement;
5
- export declare const getSelectedCell: (editor: Editor) => import("@worktile/theia").TableCellElement;
1
+ import { TheEditor } from '../../../interfaces';
2
+ export declare const getTableEntry: (editor: TheEditor) => import("slate").NodeEntry<import("@worktile/theia").TableElement>;
3
+ export declare const getTablePath: (editor: TheEditor) => import("slate").Path;
4
+ export declare const getTable: (editor: TheEditor) => import("@worktile/theia").TableElement;
5
+ export declare const getSelectedCell: (editor: TheEditor) => import("@worktile/theia").TableCellElement;
@@ -1,10 +1,9 @@
1
1
  import { ElementRef, ChangeDetectorRef, OnInit } from '@angular/core';
2
- import { Editor } from 'slate';
3
- import { TheBaseElementComponent } from '../../interfaces';
2
+ import { TheBaseElementComponent, TheEditor } from '../../interfaces';
4
3
  import { TodoItemElement } from '../../custom-types';
5
4
  import { TheContextService } from '../../services/context.service';
6
5
  import * as i0 from "@angular/core";
7
- export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement, Editor> implements OnInit {
6
+ export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoItemElement, TheEditor> implements OnInit {
8
7
  elementRef: ElementRef;
9
8
  cdr: ChangeDetectorRef;
10
9
  private ctxService;
@@ -1,5 +1,5 @@
1
- import { Editor } from 'slate';
1
+ import { TheEditor } from '../../interfaces';
2
2
  export declare const TodoItemEditor: {
3
- isActive(editor: Editor): boolean;
4
- insertTodoItem(editor: Editor): void;
3
+ isActive(editor: TheEditor): boolean;
4
+ insertTodoItem(editor: TheEditor): void;
5
5
  };
@@ -1,5 +1,6 @@
1
+ import { TheEditor } from '../../interfaces';
1
2
  export interface TodoItemPluginOptions {
2
3
  editableWithReadonly?: boolean;
3
4
  }
4
- export declare const withTodoItem: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
5
+ export declare const withTodoItem: <T extends TheEditor>(editor: T) => T;
5
6
  export declare const createTodoItemPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>;
@@ -1,8 +1,7 @@
1
1
  import { ElementRef, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
3
- import { Editor } from 'slate';
3
+ import { TheEditor, ToolbarItem } from '../../interfaces';
4
4
  import { TheBaseToolbarDropdown } from '../../core/toolbar-item/base-toolbar-item';
5
- import { ToolbarItem } from '../../interfaces';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropdown implements OnInit {
8
7
  elementRef: ElementRef;
@@ -15,7 +14,7 @@ export declare class TheVerticalToolbarItemComponent extends TheBaseToolbarDropd
15
14
  handleDocumentMouseDown(event: MouseEvent): void;
16
15
  constructor(elementRef: ElementRef, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef);
17
16
  ngOnInit(): void;
18
- menusActive(editor: Editor): ToolbarItem;
17
+ menusActive(editor: TheEditor): ToolbarItem;
19
18
  execute(event: MouseEvent): void;
20
19
  itemMousedown(event: MouseEvent, item: ToolbarItem): void;
21
20
  openPopover(): void;
@@ -1,2 +1,4 @@
1
- import { Editor, NodeEntry, Path, Point, Element } from 'slate';
2
- export declare const anchorBlockEntry: (editor: Editor, at?: Path | Point) => NodeEntry<Element> | undefined;
1
+ import { NodeEntry, Path, Point } from 'slate';
2
+ import { TheEditor } from '../interfaces';
3
+ import { CustomElement } from '../custom-types';
4
+ export declare const anchorBlockEntry: (editor: TheEditor, at?: Path | Point) => NodeEntry<CustomElement> | undefined;
@@ -1,2 +1,3 @@
1
- import { Editor, Element } from 'slate';
2
- export declare const anchorBlock: (editor: Editor) => Element;
1
+ import { TheEditor } from '../interfaces';
2
+ import { CustomElement } from '../custom-types';
3
+ export declare const anchorBlock: (editor: TheEditor) => CustomElement;
@@ -1,2 +1,3 @@
1
- import { Editor } from 'slate';
2
- export declare const anchorInlineEntry: (editor: Editor) => import("slate").NodeEntry<import("@worktile/theia").CustomElement>;
1
+ import { TheEditor } from '../interfaces';
2
+ import { CustomElement } from '../custom-types';
3
+ export declare const anchorInlineEntry: (editor: TheEditor) => import("slate").NodeEntry<CustomElement>;
@@ -2,9 +2,10 @@
2
2
  * Iterate through all of the nodes in the editor and return the first match. If
3
3
  * no match is found, return undefined.
4
4
  */
5
- import { Editor, Node, NodeEntry } from 'slate';
5
+ import { Node, NodeEntry } from 'slate';
6
+ import { TheEditor } from '../interfaces';
6
7
  import { FindNodeOptions } from './find-node';
7
8
  /**
8
9
  * Get the first descendant node matching the condition.
9
10
  */
10
- export declare const findDescendant: <T extends Node = Node>(editor: Editor, options: FindNodeOptions<T>) => NodeEntry<T>;
11
+ export declare const findDescendant: <T extends Node = Node>(editor: TheEditor, options: FindNodeOptions<T>) => NodeEntry<T>;
@@ -2,8 +2,8 @@
2
2
  * Iterate through all of the nodes in the editor and return the first match. If
3
3
  * no match is found, return undefined.
4
4
  */
5
- import { Editor, Location, Node, NodeEntry, Span } from 'slate';
6
- import { MatchOptions } from '../interfaces';
5
+ import { Location, Node, NodeEntry, Span } from 'slate';
6
+ import { MatchOptions, TheEditor } from '../interfaces';
7
7
  export type FindNodeOptions<T extends Node = Node> = {
8
8
  at?: Location | Span;
9
9
  reverse?: boolean;
@@ -12,4 +12,4 @@ export type FindNodeOptions<T extends Node = Node> = {
12
12
  /**
13
13
  * Find node matching the condition.
14
14
  */
15
- export declare const findNode: <T extends Node = Node>(editor: Editor, options: FindNodeOptions<T>) => NodeEntry<T>;
15
+ export declare const findNode: <T extends Node = Node>(editor: TheEditor, options: FindNodeOptions<T>) => NodeEntry<T>;
@@ -1,6 +1,5 @@
1
- import { Editor } from 'slate';
2
- import { EditorAboveOptions } from '../interfaces';
1
+ import { EditorAboveOptions, TheEditor } from '../interfaces';
3
2
  /**
4
3
  * Get the block above a location (default: selection) by type.
5
4
  */
6
- export declare const getAboveByType: (editor: Editor, types: string[] | string, options?: Omit<EditorAboveOptions, 'match'>) => import("slate").NodeEntry<import("slate").Ancestor>;
5
+ export declare const getAboveByType: (editor: TheEditor, types: string[] | string, options?: Omit<EditorAboveOptions, 'match'>) => import("slate").NodeEntry<import("slate").Ancestor>;
@@ -1,6 +1,6 @@
1
- import { Ancestor, Editor } from 'slate';
2
- import { EditorAboveOptions } from '../interfaces';
1
+ import { Ancestor } from 'slate';
2
+ import { EditorAboveOptions, TheEditor } from '../interfaces';
3
3
  /**
4
4
  * Get node above a location (default: selection).
5
5
  */
6
- export declare const getAbove: <T = Ancestor>(editor: Editor, options?: EditorAboveOptions<T>) => import("slate").NodeEntry<Ancestor>;
6
+ export declare const getAbove: <T = Ancestor>(editor: TheEditor, options?: EditorAboveOptions<T>) => import("slate").NodeEntry<Ancestor>;