@ckeditor/ckeditor5-table 45.2.1-alpha.9 → 46.0.0-alpha.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 (179) hide show
  1. package/build/table.js +1 -1
  2. package/dist/index-content.css +6 -5
  3. package/dist/index-editor.css +46 -46
  4. package/dist/index.css +63 -62
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +305 -49
  7. package/dist/index.js.map +1 -1
  8. package/package.json +10 -10
  9. package/src/commands/insertcolumncommand.d.ts +1 -1
  10. package/src/commands/insertcolumncommand.js +1 -1
  11. package/src/commands/insertrowcommand.d.ts +1 -1
  12. package/src/commands/insertrowcommand.js +1 -1
  13. package/src/commands/inserttablecommand.d.ts +1 -1
  14. package/src/commands/inserttablecommand.js +1 -1
  15. package/src/commands/inserttablelayoutcommand.d.ts +1 -1
  16. package/src/commands/inserttablelayoutcommand.js +1 -1
  17. package/src/commands/mergecellcommand.d.ts +3 -3
  18. package/src/commands/mergecellcommand.js +2 -2
  19. package/src/commands/mergecellscommand.d.ts +1 -1
  20. package/src/commands/mergecellscommand.js +2 -2
  21. package/src/commands/removecolumncommand.d.ts +1 -1
  22. package/src/commands/removecolumncommand.js +2 -2
  23. package/src/commands/removerowcommand.d.ts +1 -1
  24. package/src/commands/removerowcommand.js +1 -1
  25. package/src/commands/selectcolumncommand.d.ts +1 -1
  26. package/src/commands/selectcolumncommand.js +2 -2
  27. package/src/commands/selectrowcommand.d.ts +1 -1
  28. package/src/commands/selectrowcommand.js +1 -1
  29. package/src/commands/setheadercolumncommand.d.ts +2 -2
  30. package/src/commands/setheadercolumncommand.js +1 -1
  31. package/src/commands/setheaderrowcommand.d.ts +2 -2
  32. package/src/commands/setheaderrowcommand.js +1 -1
  33. package/src/commands/splitcellcommand.d.ts +1 -1
  34. package/src/commands/splitcellcommand.js +1 -1
  35. package/src/converters/downcast.d.ts +21 -9
  36. package/src/converters/downcast.js +11 -3
  37. package/src/converters/table-caption-post-fixer.d.ts +3 -1
  38. package/src/converters/table-caption-post-fixer.js +3 -1
  39. package/src/converters/table-cell-paragraph-post-fixer.d.ts +3 -1
  40. package/src/converters/table-cell-paragraph-post-fixer.js +3 -1
  41. package/src/converters/table-cell-refresh-handler.d.ts +3 -1
  42. package/src/converters/table-cell-refresh-handler.js +3 -1
  43. package/src/converters/table-headings-refresh-handler.d.ts +3 -1
  44. package/src/converters/table-headings-refresh-handler.js +4 -2
  45. package/src/converters/table-layout-post-fixer.d.ts +3 -1
  46. package/src/converters/table-layout-post-fixer.js +4 -2
  47. package/src/converters/tableproperties.d.ts +17 -1
  48. package/src/converters/tableproperties.js +49 -2
  49. package/src/converters/upcasttable.d.ts +6 -1
  50. package/src/converters/upcasttable.js +6 -1
  51. package/src/index.d.ts +89 -56
  52. package/src/index.js +84 -24
  53. package/src/plaintableoutput.d.ts +2 -2
  54. package/src/plaintableoutput.js +2 -2
  55. package/src/table.d.ts +7 -7
  56. package/src/table.js +7 -7
  57. package/src/tablecaption/tablecaptionediting.d.ts +6 -6
  58. package/src/tablecaption/tablecaptionediting.js +8 -8
  59. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  60. package/src/tablecaption/tablecaptionui.js +1 -1
  61. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  62. package/src/tablecaption/toggletablecaptioncommand.js +1 -1
  63. package/src/tablecaption/utils.d.ts +8 -4
  64. package/src/tablecaption/utils.js +4 -0
  65. package/src/tablecaption.d.ts +3 -3
  66. package/src/tablecaption.js +3 -3
  67. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  68. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
  69. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +4 -4
  70. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  71. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +4 -4
  72. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  73. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +4 -4
  74. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  75. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  76. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  77. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  78. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
  79. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +4 -4
  80. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  81. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +3 -3
  82. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  83. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  84. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
  85. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  86. package/src/tablecellproperties/tablecellpropertiesediting.js +44 -19
  87. package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
  88. package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
  89. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
  90. package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
  91. package/src/tablecellproperties.d.ts +3 -3
  92. package/src/tablecellproperties.js +3 -3
  93. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  94. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  95. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  96. package/src/tablecellwidth/tablecellwidthediting.js +5 -3
  97. package/src/tableclipboard.d.ts +6 -6
  98. package/src/tableclipboard.js +4 -4
  99. package/src/tablecolumnresize/constants.d.ts +9 -0
  100. package/src/tablecolumnresize/constants.js +9 -0
  101. package/src/tablecolumnresize/converters.d.ts +11 -1
  102. package/src/tablecolumnresize/converters.js +16 -0
  103. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +7 -7
  104. package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -11
  105. package/src/tablecolumnresize/tablewidthscommand.d.ts +3 -3
  106. package/src/tablecolumnresize/tablewidthscommand.js +1 -1
  107. package/src/tablecolumnresize/utils.d.ts +23 -11
  108. package/src/tablecolumnresize/utils.js +14 -2
  109. package/src/tablecolumnresize.d.ts +3 -3
  110. package/src/tablecolumnresize.js +3 -3
  111. package/src/tableconfig.d.ts +3 -1
  112. package/src/tableediting.d.ts +7 -7
  113. package/src/tableediting.js +19 -19
  114. package/src/tablekeyboard.d.ts +8 -8
  115. package/src/tablekeyboard.js +7 -7
  116. package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
  117. package/src/tablelayout/commands/tabletypecommand.js +1 -1
  118. package/src/tablelayout/tablelayoutediting.d.ts +2 -2
  119. package/src/tablelayout/tablelayoutediting.js +4 -4
  120. package/src/tablelayout/tablelayoutui.d.ts +1 -1
  121. package/src/tablelayout/tablelayoutui.js +4 -4
  122. package/src/tablelayout.d.ts +5 -5
  123. package/src/tablelayout.js +5 -5
  124. package/src/tablemouse/mouseeventsobserver.d.ts +13 -11
  125. package/src/tablemouse/mouseeventsobserver.js +4 -2
  126. package/src/tablemouse.d.ts +3 -3
  127. package/src/tablemouse.js +4 -4
  128. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  129. package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
  130. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  131. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
  132. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +4 -4
  133. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  134. package/src/tableproperties/commands/tableborderstylecommand.d.ts +4 -4
  135. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  136. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +4 -4
  137. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  138. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  139. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  140. package/src/tableproperties/commands/tablepropertycommand.d.ts +4 -4
  141. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  142. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  143. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  144. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  145. package/src/tableproperties/tablepropertiesediting.js +49 -21
  146. package/src/tableproperties/tablepropertiesui.d.ts +2 -2
  147. package/src/tableproperties/tablepropertiesui.js +2 -2
  148. package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
  149. package/src/tableproperties/ui/tablepropertiesview.js +1 -1
  150. package/src/tableproperties.d.ts +3 -3
  151. package/src/tableproperties.js +3 -3
  152. package/src/tableselection.d.ts +9 -9
  153. package/src/tableselection.js +4 -4
  154. package/src/tabletoolbar.d.ts +1 -1
  155. package/src/tabletoolbar.js +1 -1
  156. package/src/tableui.d.ts +1 -1
  157. package/src/tableui.js +4 -4
  158. package/src/tableutils.d.ts +25 -26
  159. package/src/tableutils.js +4 -4
  160. package/src/tablewalker.d.ts +8 -8
  161. package/src/tablewalker.js +2 -2
  162. package/src/ui/colorinputview.d.ts +6 -1
  163. package/src/ui/colorinputview.js +1 -1
  164. package/src/ui/inserttableview.d.ts +3 -1
  165. package/src/ui/inserttableview.js +3 -1
  166. package/src/utils/common.d.ts +16 -7
  167. package/src/utils/common.js +9 -1
  168. package/src/utils/structure.d.ts +24 -14
  169. package/src/utils/structure.js +11 -1
  170. package/src/utils/table-properties.d.ts +15 -2
  171. package/src/utils/table-properties.js +6 -0
  172. package/src/utils/ui/contextualballoon.d.ts +4 -3
  173. package/src/utils/ui/contextualballoon.js +1 -0
  174. package/src/utils/ui/table-properties.d.ts +20 -7
  175. package/src/utils/ui/table-properties.js +24 -11
  176. package/src/utils/ui/widget.d.ts +6 -0
  177. package/src/utils/ui/widget.js +6 -0
  178. package/theme/tablecaption.css +9 -8
  179. package/theme/tablecolumnresize.css +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "45.2.1-alpha.9",
3
+ "version": "46.0.0-alpha.0",
4
4
  "description": "Table feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,15 +13,15 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "45.2.1-alpha.9",
17
- "@ckeditor/ckeditor5-clipboard": "45.2.1-alpha.9",
18
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.9",
19
- "@ckeditor/ckeditor5-engine": "45.2.1-alpha.9",
20
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.9",
21
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.9",
22
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.9",
23
- "@ckeditor/ckeditor5-widget": "45.2.1-alpha.9",
24
- "es-toolkit": "1.32.0"
16
+ "ckeditor5": "46.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-clipboard": "46.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-engine": "46.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.0",
21
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.0",
22
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.0",
23
+ "@ckeditor/ckeditor5-widget": "46.0.0-alpha.0",
24
+ "es-toolkit": "1.39.5"
25
25
  },
26
26
  "author": "CKSource (http://cksource.com/)",
27
27
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,7 +24,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
24
24
  * editor.execute( 'insertTableColumnRight' );
25
25
  * ```
26
26
  */
27
- export default class InsertColumnCommand extends Command {
27
+ export declare class InsertColumnCommand extends Command {
28
28
  /**
29
29
  * The order of insertion relative to the column in which the caret is located.
30
30
  */
@@ -24,7 +24,7 @@ import { Command } from 'ckeditor5/src/core.js';
24
24
  * editor.execute( 'insertTableColumnRight' );
25
25
  * ```
26
26
  */
27
- export default class InsertColumnCommand extends Command {
27
+ export class InsertColumnCommand extends Command {
28
28
  /**
29
29
  * The order of insertion relative to the column in which the caret is located.
30
30
  */
@@ -24,7 +24,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
24
24
  * editor.execute( 'insertTableRowAbove' );
25
25
  * ```
26
26
  */
27
- export default class InsertRowCommand extends Command {
27
+ export declare class InsertRowCommand extends Command {
28
28
  /**
29
29
  * The order of insertion relative to the row in which the caret is located.
30
30
  */
@@ -24,7 +24,7 @@ import { Command } from 'ckeditor5/src/core.js';
24
24
  * editor.execute( 'insertTableRowAbove' );
25
25
  * ```
26
26
  */
27
- export default class InsertRowCommand extends Command {
27
+ export class InsertRowCommand extends Command {
28
28
  /**
29
29
  * The order of insertion relative to the row in which the caret is located.
30
30
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'insertTable', { rows: 20, columns: 5 } );
18
18
  * ```
19
19
  */
20
- export default class InsertTableCommand extends Command {
20
+ export declare class InsertTableCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'insertTable', { rows: 20, columns: 5 } );
18
18
  * ```
19
19
  */
20
- export default class InsertTableCommand extends Command {
20
+ export class InsertTableCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -18,7 +18,7 @@ import { Command } from 'ckeditor5/src/core.js';
18
18
  * editor.execute( 'insertTableLayout', { rows: 20, columns: 5 } );
19
19
  * ```
20
20
  */
21
- export default class InsertTableLayoutCommand extends Command {
21
+ export declare class InsertTableLayoutCommand extends Command {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -18,7 +18,7 @@ import { Command } from 'ckeditor5/src/core.js';
18
18
  * editor.execute( 'insertTableLayout', { rows: 20, columns: 5 } );
19
19
  * ```
20
20
  */
21
- export default class InsertTableLayoutCommand extends Command {
21
+ export class InsertTableLayoutCommand extends Command {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/commands/mergecellcommand
7
7
  */
8
- import type { Node } from 'ckeditor5/src/engine.js';
8
+ import type { ModelNode } from 'ckeditor5/src/engine.js';
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  import type { ArrowKeyCodeDirection } from 'ckeditor5/src/utils.js';
11
11
  /**
@@ -26,7 +26,7 @@ import type { ArrowKeyCodeDirection } from 'ckeditor5/src/utils.js';
26
26
  * (for `'mergeTableCellRight'` and `'mergeTableCellLeft'`) or [`colspan`](https://www.w3.org/TR/html50/tabular-data.html#attr-tdth-colspan)
27
27
  * (for `'mergeTableCellUp'` and `'mergeTableCellDown'`), the command will be disabled.
28
28
  */
29
- export default class MergeCellCommand extends Command {
29
+ export declare class MergeCellCommand extends Command {
30
30
  /**
31
31
  * The direction that indicates which cell will be merged with the currently selected one.
32
32
  */
@@ -38,7 +38,7 @@ export default class MergeCellCommand extends Command {
38
38
  /**
39
39
  * @inheritDoc
40
40
  */
41
- value: Node | undefined;
41
+ value: ModelNode | undefined;
42
42
  /**
43
43
  * Creates a new `MergeCellCommand` instance.
44
44
  *
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Command } from 'ckeditor5/src/core.js';
6
- import TableWalker from '../tablewalker.js';
6
+ import { TableWalker } from '../tablewalker.js';
7
7
  import { isHeadingColumnCell } from '../utils/common.js';
8
8
  import { removeEmptyRowsColumns } from '../utils/structure.js';
9
9
  /**
@@ -24,7 +24,7 @@ import { removeEmptyRowsColumns } from '../utils/structure.js';
24
24
  * (for `'mergeTableCellRight'` and `'mergeTableCellLeft'`) or [`colspan`](https://www.w3.org/TR/html50/tabular-data.html#attr-tdth-colspan)
25
25
  * (for `'mergeTableCellUp'` and `'mergeTableCellDown'`), the command will be disabled.
26
26
  */
27
- export default class MergeCellCommand extends Command {
27
+ export class MergeCellCommand extends Command {
28
28
  /**
29
29
  * The direction that indicates which cell will be merged with the currently selected one.
30
30
  */
@@ -14,7 +14,7 @@ import { Command } from 'ckeditor5/src/core.js';
14
14
  * editor.execute( 'mergeTableCells' );
15
15
  * ```
16
16
  */
17
- export default class MergeCellsCommand extends Command {
17
+ export declare class MergeCellsCommand extends Command {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Command } from 'ckeditor5/src/core.js';
6
- import TableUtils from '../tableutils.js';
6
+ import { TableUtils } from '../tableutils.js';
7
7
  import { updateNumericAttribute } from '../utils/common.js';
8
8
  import { removeEmptyRowsColumns } from '../utils/structure.js';
9
9
  /**
@@ -17,7 +17,7 @@ import { removeEmptyRowsColumns } from '../utils/structure.js';
17
17
  * editor.execute( 'mergeTableCells' );
18
18
  * ```
19
19
  */
20
- export default class MergeCellsCommand extends Command {
20
+ export class MergeCellsCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'removeTableColumn' );
18
18
  * ```
19
19
  */
20
- export default class RemoveColumnCommand extends Command {
20
+ export declare class RemoveColumnCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/commands/removecolumncommand
7
7
  */
8
8
  import { Command } from 'ckeditor5/src/core.js';
9
- import TableWalker from '../tablewalker.js';
9
+ import { TableWalker } from '../tablewalker.js';
10
10
  /**
11
11
  * The remove column command.
12
12
  *
@@ -18,7 +18,7 @@ import TableWalker from '../tablewalker.js';
18
18
  * editor.execute( 'removeTableColumn' );
19
19
  * ```
20
20
  */
21
- export default class RemoveColumnCommand extends Command {
21
+ export class RemoveColumnCommand extends Command {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'removeTableRow' );
18
18
  * ```
19
19
  */
20
- export default class RemoveRowCommand extends Command {
20
+ export declare class RemoveRowCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'removeTableRow' );
18
18
  * ```
19
19
  */
20
- export default class RemoveRowCommand extends Command {
20
+ export class RemoveRowCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -17,7 +17,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'selectTableColumn' );
18
18
  * ```
19
19
  */
20
- export default class SelectColumnCommand extends Command {
20
+ export declare class SelectColumnCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/commands/selectcolumncommand
7
7
  */
8
8
  import { Command } from 'ckeditor5/src/core.js';
9
- import TableWalker from '../tablewalker.js';
9
+ import { TableWalker } from '../tablewalker.js';
10
10
  /**
11
11
  * The select column command.
12
12
  *
@@ -18,7 +18,7 @@ import TableWalker from '../tablewalker.js';
18
18
  * editor.execute( 'selectTableColumn' );
19
19
  * ```
20
20
  */
21
- export default class SelectColumnCommand extends Command {
21
+ export class SelectColumnCommand extends Command {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -17,7 +17,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'selectTableRow' );
18
18
  * ```
19
19
  */
20
- export default class SelectRowCommand extends Command {
20
+ export declare class SelectRowCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
17
17
  * editor.execute( 'selectTableRow' );
18
18
  * ```
19
19
  */
20
- export default class SelectRowCommand extends Command {
20
+ export class SelectRowCommand extends Command {
21
21
  /**
22
22
  * @inheritDoc
23
23
  */
@@ -21,10 +21,10 @@ import { Command } from 'ckeditor5/src/core.js';
21
21
  * **Note:** All preceding columns will also become headers. If the current column is already a header, executing this command
22
22
  * will make it a regular column back again (including the following columns).
23
23
  */
24
- export default class SetHeaderColumnCommand extends Command {
24
+ export declare class SetHeaderColumnCommand extends Command {
25
25
  /**
26
26
  * Flag indicating whether the command is active. The command is active when the
27
- * {@link module:engine/model/selection~Selection} is in a header column.
27
+ * {@link module:engine/model/selection~ModelSelection} is in a header column.
28
28
  *
29
29
  * @observable
30
30
  */
@@ -23,7 +23,7 @@ import { getHorizontallyOverlappingCells, splitVertically } from '../utils/struc
23
23
  * **Note:** All preceding columns will also become headers. If the current column is already a header, executing this command
24
24
  * will make it a regular column back again (including the following columns).
25
25
  */
26
- export default class SetHeaderColumnCommand extends Command {
26
+ export class SetHeaderColumnCommand extends Command {
27
27
  /**
28
28
  * @inheritDoc
29
29
  */
@@ -20,10 +20,10 @@ import { Command } from 'ckeditor5/src/core.js';
20
20
  * **Note:** All preceding rows will also become headers. If the current row is already a header, executing this command
21
21
  * will make it a regular row back again (including the following rows).
22
22
  */
23
- export default class SetHeaderRowCommand extends Command {
23
+ export declare class SetHeaderRowCommand extends Command {
24
24
  /**
25
25
  * Flag indicating whether the command is active. The command is active when the
26
- * {@link module:engine/model/selection~Selection} is in a header row.
26
+ * {@link module:engine/model/selection~ModelSelection} is in a header row.
27
27
  *
28
28
  * @observable
29
29
  */
@@ -22,7 +22,7 @@ import { getVerticallyOverlappingCells, splitHorizontally } from '../utils/struc
22
22
  * **Note:** All preceding rows will also become headers. If the current row is already a header, executing this command
23
23
  * will make it a regular row back again (including the following rows).
24
24
  */
25
- export default class SetHeaderRowCommand extends Command {
25
+ export class SetHeaderRowCommand extends Command {
26
26
  /**
27
27
  * @inheritDoc
28
28
  */
@@ -18,7 +18,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
18
18
  * editor.execute( 'splitTableCellVertically' );
19
19
  * ```
20
20
  */
21
- export default class SplitCellCommand extends Command {
21
+ export declare class SplitCellCommand extends Command {
22
22
  /**
23
23
  * The direction that indicates which cell will be split.
24
24
  */
@@ -18,7 +18,7 @@ import { Command } from 'ckeditor5/src/core.js';
18
18
  * editor.execute( 'splitTableCellVertically' );
19
19
  * ```
20
20
  */
21
- export default class SplitCellCommand extends Command {
21
+ export class SplitCellCommand extends Command {
22
22
  /**
23
23
  * The direction that indicates which cell will be split.
24
24
  */
@@ -2,31 +2,35 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import type { Element, ElementCreatorFunction } from 'ckeditor5/src/engine.js';
6
- import type TableUtils from '../tableutils.js';
7
- import type { AdditionalSlot } from '../tableediting.js';
5
+ import type { ModelElement, DowncastElementCreatorFunction } from 'ckeditor5/src/engine.js';
6
+ import { type TableUtils } from '../tableutils.js';
7
+ import type { TableConversionAdditionalSlot } from '../tableediting.js';
8
8
  /**
9
9
  * Model table element to view table element conversion helper.
10
+ *
11
+ * @internal
10
12
  */
11
- export declare function downcastTable(tableUtils: TableUtils, options: DowncastTableOptions): ElementCreatorFunction;
13
+ export declare function downcastTable(tableUtils: TableUtils, options: DowncastTableOptions): DowncastElementCreatorFunction;
12
14
  /**
13
15
  * Model table row element to view `<tr>` element conversion helper.
14
16
  *
17
+ * @internal
15
18
  * @returns Element creator.
16
19
  */
17
- export declare function downcastRow(): ElementCreatorFunction;
20
+ export declare function downcastRow(): DowncastElementCreatorFunction;
18
21
  /**
19
22
  * Model table cell element to view `<td>` or `<th>` element conversion helper.
20
23
  *
21
24
  * This conversion helper will create proper `<th>` elements for table cells that are in the heading section (heading row or column)
22
25
  * and `<td>` otherwise.
23
26
  *
27
+ * @internal
24
28
  * @param options.asWidget If set to `true`, the downcast conversion will produce a widget.
25
29
  * @returns Element creator.
26
30
  */
27
31
  export declare function downcastCell(options?: {
28
32
  asWidget?: boolean;
29
- }): ElementCreatorFunction;
33
+ }): DowncastElementCreatorFunction;
30
34
  /**
31
35
  * Overrides paragraph inside table cell conversion.
32
36
  *
@@ -36,12 +40,13 @@ export declare function downcastCell(options?: {
36
40
  * * For a single paragraph without attributes it returns `<span>` to simulate data table.
37
41
  * * For all other cases it returns `<p>` element.
38
42
  *
43
+ * @internal
39
44
  * @param options.asWidget If set to `true`, the downcast conversion will produce a widget.
40
45
  * @returns Element creator.
41
46
  */
42
47
  export declare function convertParagraphInTableCell(options?: {
43
48
  asWidget?: boolean;
44
- }): ElementCreatorFunction;
49
+ }): DowncastElementCreatorFunction;
45
50
  /**
46
51
  * Checks if given model `<paragraph>` is an only child of a parent (`<tableCell>`) and if it has any attribute set.
47
52
  *
@@ -49,8 +54,15 @@ export declare function convertParagraphInTableCell(options?: {
49
54
  *
50
55
  * * If returned `true` - to a `<span class="ck-table-bogus-paragraph">`
51
56
  * * If returned `false` - to a `<p>`
57
+ *
58
+ * @internal
59
+ */
60
+ export declare function isSingleParagraphWithoutAttributes(modelElement: ModelElement): boolean;
61
+ /**
62
+ * Options for the downcast table conversion.
63
+ *
64
+ * @internal
52
65
  */
53
- export declare function isSingleParagraphWithoutAttributes(modelElement: Element): boolean;
54
66
  export interface DowncastTableOptions {
55
67
  /**
56
68
  * If set to `true`, the downcast conversion will produce a widget.
@@ -59,5 +71,5 @@ export interface DowncastTableOptions {
59
71
  /**
60
72
  * Array of additional slot handlers.
61
73
  */
62
- additionalSlots: Array<AdditionalSlot>;
74
+ additionalSlots: Array<TableConversionAdditionalSlot>;
63
75
  }
@@ -6,9 +6,11 @@
6
6
  * @module table/converters/downcast
7
7
  */
8
8
  import { toWidget, toWidgetEditable } from 'ckeditor5/src/widget.js';
9
- import TableWalker from './../tablewalker.js';
9
+ import { TableWalker } from './../tablewalker.js';
10
10
  /**
11
11
  * Model table element to view table element conversion helper.
12
+ *
13
+ * @internal
12
14
  */
13
15
  export function downcastTable(tableUtils, options) {
14
16
  return (table, { writer }) => {
@@ -40,6 +42,7 @@ export function downcastTable(tableUtils, options) {
40
42
  /**
41
43
  * Model table row element to view `<tr>` element conversion helper.
42
44
  *
45
+ * @internal
43
46
  * @returns Element creator.
44
47
  */
45
48
  export function downcastRow() {
@@ -55,6 +58,7 @@ export function downcastRow() {
55
58
  * This conversion helper will create proper `<th>` elements for table cells that are in the heading section (heading row or column)
56
59
  * and `<td>` otherwise.
57
60
  *
61
+ * @internal
58
62
  * @param options.asWidget If set to `true`, the downcast conversion will produce a widget.
59
63
  * @returns Element creator.
60
64
  */
@@ -90,6 +94,7 @@ export function downcastCell(options = {}) {
90
94
  * * For a single paragraph without attributes it returns `<span>` to simulate data table.
91
95
  * * For all other cases it returns `<p>` element.
92
96
  *
97
+ * @internal
93
98
  * @param options.asWidget If set to `true`, the downcast conversion will produce a widget.
94
99
  * @returns Element creator.
95
100
  */
@@ -119,6 +124,8 @@ export function convertParagraphInTableCell(options = {}) {
119
124
  *
120
125
  * * If returned `true` - to a `<span class="ck-table-bogus-paragraph">`
121
126
  * * If returned `false` - to a `<p>`
127
+ *
128
+ * @internal
122
129
  */
123
130
  export function isSingleParagraphWithoutAttributes(modelElement) {
124
131
  const tableCell = modelElement.parent;
@@ -126,8 +133,9 @@ export function isSingleParagraphWithoutAttributes(modelElement) {
126
133
  return isSingleParagraph && !hasAnyAttribute(modelElement);
127
134
  }
128
135
  /**
129
- * Converts a given {@link module:engine/view/element~Element} to a table widget:
130
- * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to recognize the table widget element.
136
+ * Converts a given {@link module:engine/view/element~ViewElement} to a table widget:
137
+ * * Adds a {@link module:engine/view/element~ViewElement#_setCustomProperty custom property}
138
+ * allowing to recognize the table widget element.
131
139
  * * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.
132
140
  *
133
141
  * @param writer An instance of the view writer.
@@ -16,5 +16,7 @@ import type { Model } from 'ckeditor5/src/engine.js';
16
16
  *
17
17
  * * If there are many caption model element, they are merged into one model.
18
18
  * * A final, merged caption model is placed at the end of the table.
19
+ *
20
+ * @internal
19
21
  */
20
- export default function injectTableCaptionPostFixer(model: Model): void;
22
+ export declare function injectTableCaptionPostFixer(model: Model): void;
@@ -12,8 +12,10 @@
12
12
  *
13
13
  * * If there are many caption model element, they are merged into one model.
14
14
  * * A final, merged caption model is placed at the end of the table.
15
+ *
16
+ * @internal
15
17
  */
16
- export default function injectTableCaptionPostFixer(model) {
18
+ export function injectTableCaptionPostFixer(model) {
17
19
  model.document.registerPostFixer(writer => tableCaptionPostFixer(writer, model));
18
20
  }
19
21
  /**
@@ -28,5 +28,7 @@ import type { Model } from 'ckeditor5/src/engine.js';
28
28
  * </tableRow>
29
29
  * </table>
30
30
  * ```
31
+ *
32
+ * @internal
31
33
  */
32
- export default function injectTableCellParagraphPostFixer(model: Model): void;
34
+ export declare function injectTableCellParagraphPostFixer(model: Model): void;
@@ -24,8 +24,10 @@
24
24
  * </tableRow>
25
25
  * </table>
26
26
  * ```
27
+ *
28
+ * @internal
27
29
  */
28
- export default function injectTableCellParagraphPostFixer(model) {
30
+ export function injectTableCellParagraphPostFixer(model) {
29
31
  model.document.registerPostFixer(writer => tableCellContentsPostFixer(writer, model));
30
32
  }
31
33
  /**
@@ -14,5 +14,7 @@ import type { EditingController, Model } from 'ckeditor5/src/engine.js';
14
14
  *
15
15
  * When table cell content changes, for example a second `paragraph` element is added, we need to ensure that the first `paragraph` is
16
16
  * re-rendered so it changes from `<span>` to `<p>`. The easiest way to do it is to re-render the entire table cell.
17
+ *
18
+ * @internal
17
19
  */
18
- export default function tableCellRefreshHandler(model: Model, editing: EditingController): void;
20
+ export declare function tableCellRefreshHandler(model: Model, editing: EditingController): void;
@@ -11,8 +11,10 @@ import { isSingleParagraphWithoutAttributes } from './downcast.js';
11
11
  *
12
12
  * When table cell content changes, for example a second `paragraph` element is added, we need to ensure that the first `paragraph` is
13
13
  * re-rendered so it changes from `<span>` to `<p>`. The easiest way to do it is to re-render the entire table cell.
14
+ *
15
+ * @internal
14
16
  */
15
- export default function tableCellRefreshHandler(model, editing) {
17
+ export function tableCellRefreshHandler(model, editing) {
16
18
  const differ = model.document.differ;
17
19
  // Stores cells to be refreshed, so the table cell will be refreshed once for multiple changes.
18
20
  const cellsToCheck = new Set();
@@ -13,5 +13,7 @@ import type { EditingController, Model } from 'ckeditor5/src/engine.js';
13
13
  * Table heading rows and heading columns are represented in the model by a `headingRows` and `headingColumns` attributes.
14
14
  *
15
15
  * When table headings attribute changes, all the cells/rows are marked to re-render to change between `<td>` and `<th>`.
16
+ *
17
+ * @internal
16
18
  */
17
- export default function tableHeadingsRefreshHandler(model: Model, editing: EditingController): void;
19
+ export declare function tableHeadingsRefreshHandler(model: Model, editing: EditingController): void;
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TableWalker from '../tablewalker.js';
5
+ import { TableWalker } from '../tablewalker.js';
6
6
  /**
7
7
  * A table headings refresh handler which marks the table cells or rows in the differ to have it re-rendered
8
8
  * if the headings attribute changed.
@@ -10,8 +10,10 @@ import TableWalker from '../tablewalker.js';
10
10
  * Table heading rows and heading columns are represented in the model by a `headingRows` and `headingColumns` attributes.
11
11
  *
12
12
  * When table headings attribute changes, all the cells/rows are marked to re-render to change between `<td>` and `<th>`.
13
+ *
14
+ * @internal
13
15
  */
14
- export default function tableHeadingsRefreshHandler(model, editing) {
16
+ export function tableHeadingsRefreshHandler(model, editing) {
15
17
  const differ = model.document.differ;
16
18
  for (const change of differ.getChanges()) {
17
19
  let table;
@@ -222,5 +222,7 @@ import type { Model } from 'ckeditor5/src/engine.js';
222
222
  * </tbody>
223
223
  * </table>
224
224
  * ```
225
+ *
226
+ * @internal
225
227
  */
226
- export default function injectTableLayoutPostFixer(model: Model): void;
228
+ export declare function injectTableLayoutPostFixer(model: Model): void;
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import TableWalker from './../tablewalker.js';
5
+ import { TableWalker } from './../tablewalker.js';
6
6
  import { createEmptyTableCell, updateNumericAttribute } from '../utils/common.js';
7
7
  /**
8
8
  * Injects a table layout post-fixer into the model.
@@ -220,8 +220,10 @@ import { createEmptyTableCell, updateNumericAttribute } from '../utils/common.js
220
220
  * </tbody>
221
221
  * </table>
222
222
  * ```
223
+ *
224
+ * @internal
223
225
  */
224
- export default function injectTableLayoutPostFixer(model) {
226
+ export function injectTableLayoutPostFixer(model) {
225
227
  model.document.registerPostFixer(writer => tableLayoutPostFixer(writer, model));
226
228
  }
227
229
  /**