@ckeditor/ckeditor5-table 0.0.0-nightly-20250605.0 → 0.0.0-nightly-20250606.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 (165) hide show
  1. package/build/table.js +1 -1
  2. package/dist/index-content.css +2 -1
  3. package/dist/index.css +2 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.js +50 -6
  6. package/dist/index.js.map +1 -1
  7. package/package.json +9 -9
  8. package/src/commands/insertcolumncommand.d.ts +1 -1
  9. package/src/commands/insertcolumncommand.js +1 -1
  10. package/src/commands/insertrowcommand.d.ts +1 -1
  11. package/src/commands/insertrowcommand.js +1 -1
  12. package/src/commands/inserttablecommand.d.ts +1 -1
  13. package/src/commands/inserttablecommand.js +1 -1
  14. package/src/commands/inserttablelayoutcommand.d.ts +1 -1
  15. package/src/commands/inserttablelayoutcommand.js +1 -1
  16. package/src/commands/mergecellcommand.d.ts +1 -1
  17. package/src/commands/mergecellcommand.js +2 -2
  18. package/src/commands/mergecellscommand.d.ts +1 -1
  19. package/src/commands/mergecellscommand.js +2 -2
  20. package/src/commands/removecolumncommand.d.ts +1 -1
  21. package/src/commands/removecolumncommand.js +2 -2
  22. package/src/commands/removerowcommand.d.ts +1 -1
  23. package/src/commands/removerowcommand.js +1 -1
  24. package/src/commands/selectcolumncommand.d.ts +1 -1
  25. package/src/commands/selectcolumncommand.js +2 -2
  26. package/src/commands/selectrowcommand.d.ts +1 -1
  27. package/src/commands/selectrowcommand.js +1 -1
  28. package/src/commands/setheadercolumncommand.d.ts +1 -1
  29. package/src/commands/setheadercolumncommand.js +1 -1
  30. package/src/commands/setheaderrowcommand.d.ts +1 -1
  31. package/src/commands/setheaderrowcommand.js +1 -1
  32. package/src/commands/splitcellcommand.d.ts +1 -1
  33. package/src/commands/splitcellcommand.js +1 -1
  34. package/src/converters/downcast.d.ts +1 -1
  35. package/src/converters/downcast.js +1 -1
  36. package/src/converters/table-caption-post-fixer.d.ts +1 -1
  37. package/src/converters/table-caption-post-fixer.js +1 -1
  38. package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
  39. package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
  40. package/src/converters/table-cell-refresh-handler.d.ts +1 -1
  41. package/src/converters/table-cell-refresh-handler.js +1 -1
  42. package/src/converters/table-headings-refresh-handler.d.ts +1 -1
  43. package/src/converters/table-headings-refresh-handler.js +2 -2
  44. package/src/converters/table-layout-post-fixer.d.ts +1 -1
  45. package/src/converters/table-layout-post-fixer.js +2 -2
  46. package/src/converters/upcasttable.d.ts +1 -1
  47. package/src/converters/upcasttable.js +1 -1
  48. package/src/index.d.ts +55 -55
  49. package/src/index.js +55 -24
  50. package/src/plaintableoutput.d.ts +2 -2
  51. package/src/plaintableoutput.js +2 -2
  52. package/src/table.d.ts +7 -7
  53. package/src/table.js +7 -7
  54. package/src/tablecaption/tablecaptionediting.d.ts +1 -1
  55. package/src/tablecaption/tablecaptionediting.js +3 -3
  56. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  57. package/src/tablecaption/tablecaptionui.js +1 -1
  58. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  59. package/src/tablecaption/toggletablecaptioncommand.js +1 -1
  60. package/src/tablecaption.d.ts +3 -3
  61. package/src/tablecaption.js +3 -3
  62. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  63. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
  64. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +2 -2
  65. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  66. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +2 -2
  67. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  68. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +2 -2
  69. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  70. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  71. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  72. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  73. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
  74. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +2 -2
  75. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  76. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +1 -1
  77. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  78. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  79. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
  80. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  81. package/src/tablecellproperties/tablecellpropertiesediting.js +16 -11
  82. package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
  83. package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
  84. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
  85. package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
  86. package/src/tablecellproperties.d.ts +3 -3
  87. package/src/tablecellproperties.js +3 -3
  88. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  89. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  90. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  91. package/src/tablecellwidth/tablecellwidthediting.js +3 -3
  92. package/src/tableclipboard.d.ts +3 -3
  93. package/src/tableclipboard.js +4 -4
  94. package/src/tablecolumnresize/converters.d.ts +5 -1
  95. package/src/tablecolumnresize/converters.js +10 -0
  96. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +3 -3
  97. package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -10
  98. package/src/tablecolumnresize/tablewidthscommand.d.ts +1 -1
  99. package/src/tablecolumnresize/tablewidthscommand.js +1 -1
  100. package/src/tablecolumnresize/utils.d.ts +1 -1
  101. package/src/tablecolumnresize/utils.js +2 -2
  102. package/src/tablecolumnresize.d.ts +3 -3
  103. package/src/tablecolumnresize.js +3 -3
  104. package/src/tableconfig.d.ts +1 -1
  105. package/src/tableediting.d.ts +2 -2
  106. package/src/tableediting.js +19 -19
  107. package/src/tablekeyboard.d.ts +3 -3
  108. package/src/tablekeyboard.js +4 -4
  109. package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
  110. package/src/tablelayout/commands/tabletypecommand.js +1 -1
  111. package/src/tablelayout/tablelayoutediting.d.ts +2 -2
  112. package/src/tablelayout/tablelayoutediting.js +4 -4
  113. package/src/tablelayout/tablelayoutui.d.ts +1 -1
  114. package/src/tablelayout/tablelayoutui.js +2 -2
  115. package/src/tablelayout.d.ts +5 -5
  116. package/src/tablelayout.js +5 -5
  117. package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
  118. package/src/tablemouse/mouseeventsobserver.js +1 -1
  119. package/src/tablemouse.d.ts +3 -3
  120. package/src/tablemouse.js +4 -4
  121. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  122. package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
  123. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  124. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
  125. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +2 -2
  126. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  127. package/src/tableproperties/commands/tableborderstylecommand.d.ts +2 -2
  128. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  129. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +2 -2
  130. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  131. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  132. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  133. package/src/tableproperties/commands/tablepropertycommand.d.ts +1 -1
  134. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  135. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  136. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  137. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  138. package/src/tableproperties/tablepropertiesediting.js +15 -9
  139. package/src/tableproperties/tablepropertiesui.d.ts +2 -2
  140. package/src/tableproperties/tablepropertiesui.js +2 -2
  141. package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
  142. package/src/tableproperties/ui/tablepropertiesview.js +1 -1
  143. package/src/tableproperties.d.ts +3 -3
  144. package/src/tableproperties.js +3 -3
  145. package/src/tableselection.d.ts +2 -2
  146. package/src/tableselection.js +3 -3
  147. package/src/tabletoolbar.d.ts +1 -1
  148. package/src/tabletoolbar.js +1 -1
  149. package/src/tableui.d.ts +1 -1
  150. package/src/tableui.js +2 -2
  151. package/src/tableutils.d.ts +2 -2
  152. package/src/tableutils.js +2 -2
  153. package/src/tablewalker.d.ts +1 -1
  154. package/src/tablewalker.js +1 -1
  155. package/src/ui/colorinputview.d.ts +1 -1
  156. package/src/ui/colorinputview.js +1 -1
  157. package/src/ui/inserttableview.d.ts +1 -1
  158. package/src/ui/inserttableview.js +1 -1
  159. package/src/utils/common.d.ts +1 -1
  160. package/src/utils/common.js +1 -0
  161. package/src/utils/structure.d.ts +1 -1
  162. package/src/utils/structure.js +1 -1
  163. package/src/utils/ui/table-properties.d.ts +3 -3
  164. package/src/utils/ui/table-properties.js +1 -1
  165. package/theme/tablecaption.css +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "0.0.0-nightly-20250605.0",
3
+ "version": "0.0.0-nightly-20250606.0",
4
4
  "description": "Table feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,14 +13,14 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "0.0.0-nightly-20250605.0",
17
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20250605.0",
18
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250605.0",
19
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250605.0",
20
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250605.0",
21
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250605.0",
22
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250605.0",
23
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20250605.0",
16
+ "ckeditor5": "0.0.0-nightly-20250606.0",
17
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20250606.0",
18
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250606.0",
19
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250606.0",
20
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250606.0",
21
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250606.0",
22
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250606.0",
23
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20250606.0",
24
24
  "es-toolkit": "1.38.0"
25
25
  },
26
26
  "author": "CKSource (http://cksource.com/)",
@@ -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
  */
@@ -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
  */
@@ -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,7 +21,7 @@ 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
27
  * {@link module:engine/model/selection~Selection} is in a header column.
@@ -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,7 +20,7 @@ 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
26
  * {@link module:engine/model/selection~Selection} is in a header row.
@@ -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
  */
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { Element, ElementCreatorFunction } from 'ckeditor5/src/engine.js';
6
- import type TableUtils from '../tableutils.js';
6
+ import { type TableUtils } from '../tableutils.js';
7
7
  import type { AdditionalSlot } from '../tableediting.js';
8
8
  /**
9
9
  * Model table element to view table element conversion helper.
@@ -6,7 +6,7 @@
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
12
  */
@@ -17,4 +17,4 @@ import type { Model } from 'ckeditor5/src/engine.js';
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
19
  */
20
- export default function injectTableCaptionPostFixer(model: Model): void;
20
+ export declare function injectTableCaptionPostFixer(model: Model): void;
@@ -13,7 +13,7 @@
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
15
  */
16
- export default function injectTableCaptionPostFixer(model) {
16
+ export function injectTableCaptionPostFixer(model) {
17
17
  model.document.registerPostFixer(writer => tableCaptionPostFixer(writer, model));
18
18
  }
19
19
  /**
@@ -29,4 +29,4 @@ import type { Model } from 'ckeditor5/src/engine.js';
29
29
  * </table>
30
30
  * ```
31
31
  */
32
- export default function injectTableCellParagraphPostFixer(model: Model): void;
32
+ export declare function injectTableCellParagraphPostFixer(model: Model): void;
@@ -25,7 +25,7 @@
25
25
  * </table>
26
26
  * ```
27
27
  */
28
- export default function injectTableCellParagraphPostFixer(model) {
28
+ export function injectTableCellParagraphPostFixer(model) {
29
29
  model.document.registerPostFixer(writer => tableCellContentsPostFixer(writer, model));
30
30
  }
31
31
  /**
@@ -15,4 +15,4 @@ import type { EditingController, Model } from 'ckeditor5/src/engine.js';
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
17
  */
18
- export default function tableCellRefreshHandler(model: Model, editing: EditingController): void;
18
+ export declare function tableCellRefreshHandler(model: Model, editing: EditingController): void;
@@ -12,7 +12,7 @@ import { isSingleParagraphWithoutAttributes } from './downcast.js';
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
14
  */
15
- export default function tableCellRefreshHandler(model, editing) {
15
+ export function tableCellRefreshHandler(model, editing) {
16
16
  const differ = model.document.differ;
17
17
  // Stores cells to be refreshed, so the table cell will be refreshed once for multiple changes.
18
18
  const cellsToCheck = new Set();
@@ -14,4 +14,4 @@ import type { EditingController, Model } from 'ckeditor5/src/engine.js';
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
16
  */
17
- export default function tableHeadingsRefreshHandler(model: Model, editing: EditingController): void;
17
+ 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.
@@ -11,7 +11,7 @@ import TableWalker from '../tablewalker.js';
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
13
  */
14
- export default function tableHeadingsRefreshHandler(model, editing) {
14
+ export function tableHeadingsRefreshHandler(model, editing) {
15
15
  const differ = model.document.differ;
16
16
  for (const change of differ.getChanges()) {
17
17
  let table;
@@ -223,4 +223,4 @@ import type { Model } from 'ckeditor5/src/engine.js';
223
223
  * </table>
224
224
  * ```
225
225
  */
226
- export default function injectTableLayoutPostFixer(model: Model): void;
226
+ 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.
@@ -221,7 +221,7 @@ import { createEmptyTableCell, updateNumericAttribute } from '../utils/common.js
221
221
  * </table>
222
222
  * ```
223
223
  */
224
- export default function injectTableLayoutPostFixer(model) {
224
+ export function injectTableLayoutPostFixer(model) {
225
225
  model.document.registerPostFixer(writer => tableLayoutPostFixer(writer, model));
226
226
  }
227
227
  /**
@@ -27,7 +27,7 @@ export declare function upcastTableFigure(): (dispatcher: UpcastDispatcher) => v
27
27
  *
28
28
  * @returns Conversion helper.
29
29
  */
30
- export default function upcastTable(): (dispatcher: UpcastDispatcher) => void;
30
+ export declare function upcastTable(): (dispatcher: UpcastDispatcher) => void;
31
31
  /**
32
32
  * A conversion helper that skips empty <tr> elements from upcasting at the beginning of the table.
33
33
  *
@@ -54,7 +54,7 @@ export function upcastTableFigure() {
54
54
  *
55
55
  * @returns Conversion helper.
56
56
  */
57
- export default function upcastTable() {
57
+ export function upcastTable() {
58
58
  return (dispatcher) => {
59
59
  dispatcher.on('element:table', (evt, data, conversionApi) => {
60
60
  const viewTable = data.viewItem;
package/src/index.d.ts CHANGED
@@ -5,60 +5,60 @@
5
5
  /**
6
6
  * @module table
7
7
  */
8
- export { default as PlainTableOutput } from './plaintableoutput.js';
9
- export { default as Table } from './table.js';
10
- export { default as TableEditing } from './tableediting.js';
11
- export { default as TableUI } from './tableui.js';
12
- export { default as TableToolbar } from './tabletoolbar.js';
13
- export { default as TableCellProperties } from './tablecellproperties.js';
14
- export { default as TableCellPropertiesEditing } from './tablecellproperties/tablecellpropertiesediting.js';
15
- export { default as TableCellPropertiesUI } from './tablecellproperties/tablecellpropertiesui.js';
16
- export { default as TableCellWidthEditing } from './tablecellwidth/tablecellwidthediting.js';
17
- export { default as TableLayout } from './tablelayout.js';
18
- export { default as TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
19
- export { default as TableProperties } from './tableproperties.js';
20
- export { default as TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
21
- export { default as TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
22
- export { default as TableCaption } from './tablecaption.js';
23
- export { default as TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
24
- export { default as TableCaptionUI } from './tablecaption/tablecaptionui.js';
25
- export { default as TableClipboard } from './tableclipboard.js';
26
- export { default as TableMouse } from './tablemouse.js';
27
- export { default as TableKeyboard } from './tablekeyboard.js';
28
- export { default as TableSelection } from './tableselection.js';
29
- export { default as TableUtils } from './tableutils.js';
30
- export { default as TableColumnResize } from './tablecolumnresize.js';
31
- export { default as TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting.js';
8
+ export { PlainTableOutput } from './plaintableoutput.js';
9
+ export { Table } from './table.js';
10
+ export { TableEditing } from './tableediting.js';
11
+ export { TableUI } from './tableui.js';
12
+ export { TableToolbar } from './tabletoolbar.js';
13
+ export { TableCellProperties } from './tablecellproperties.js';
14
+ export { TableCellPropertiesEditing } from './tablecellproperties/tablecellpropertiesediting.js';
15
+ export { TableCellPropertiesUI } from './tablecellproperties/tablecellpropertiesui.js';
16
+ export { TableCellWidthEditing } from './tablecellwidth/tablecellwidthediting.js';
17
+ export { TableLayout } from './tablelayout.js';
18
+ export { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
19
+ export { TableProperties } from './tableproperties.js';
20
+ export { TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
21
+ export { TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
22
+ export { TableCaption } from './tablecaption.js';
23
+ export { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
24
+ export { TableCaptionUI } from './tablecaption/tablecaptionui.js';
25
+ export { TableClipboard } from './tableclipboard.js';
26
+ export { TableMouse } from './tablemouse.js';
27
+ export { TableKeyboard } from './tablekeyboard.js';
28
+ export { TableSelection } from './tableselection.js';
29
+ export { TableUtils } from './tableutils.js';
30
+ export { TableColumnResize } from './tablecolumnresize.js';
31
+ export { TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting.js';
32
+ export { InsertColumnCommand } from './commands/insertcolumncommand.js';
33
+ export { InsertRowCommand } from './commands/insertrowcommand.js';
34
+ export { InsertTableCommand } from './commands/inserttablecommand.js';
35
+ export { InsertTableLayoutCommand } from './commands/inserttablelayoutcommand.js';
36
+ export { TableTypeCommand } from './tablelayout/commands/tabletypecommand.js';
37
+ export { MergeCellCommand } from './commands/mergecellcommand.js';
38
+ export { MergeCellsCommand } from './commands/mergecellscommand.js';
39
+ export { RemoveColumnCommand } from './commands/removecolumncommand.js';
40
+ export { RemoveRowCommand } from './commands/removerowcommand.js';
41
+ export { SelectColumnCommand } from './commands/selectcolumncommand.js';
42
+ export { SelectRowCommand } from './commands/selectrowcommand.js';
43
+ export { SetHeaderColumnCommand } from './commands/setheadercolumncommand.js';
44
+ export { SetHeaderRowCommand } from './commands/setheaderrowcommand.js';
45
+ export { SplitCellCommand } from './commands/splitcellcommand.js';
46
+ export { ToggleTableCaptionCommand } from './tablecaption/toggletablecaptioncommand.js';
47
+ export { TableCellBackgroundColorCommand } from './tablecellproperties/commands/tablecellbackgroundcolorcommand.js';
48
+ export { TableCellBorderColorCommand } from './tablecellproperties/commands/tablecellbordercolorcommand.js';
49
+ export { TableCellBorderStyleCommand } from './tablecellproperties/commands/tablecellborderstylecommand.js';
50
+ export { TableCellBorderWidthCommand } from './tablecellproperties/commands/tablecellborderwidthcommand.js';
51
+ export { TableCellHeightCommand } from './tablecellproperties/commands/tablecellheightcommand.js';
52
+ export { TableCellHorizontalAlignmentCommand } from './tablecellproperties/commands/tablecellhorizontalalignmentcommand.js';
53
+ export { TableCellPaddingCommand } from './tablecellproperties/commands/tablecellpaddingcommand.js';
54
+ export { TableCellVerticalAlignmentCommand } from './tablecellproperties/commands/tablecellverticalalignmentcommand.js';
55
+ export { TableCellWidthCommand } from './tablecellwidth/commands/tablecellwidthcommand.js';
56
+ export { TableAlignmentCommand } from './tableproperties/commands/tablealignmentcommand.js';
57
+ export { TableBackgroundColorCommand } from './tableproperties/commands/tablebackgroundcolorcommand.js';
58
+ export { TableBorderColorCommand } from './tableproperties/commands/tablebordercolorcommand.js';
59
+ export { TableBorderStyleCommand } from './tableproperties/commands/tableborderstylecommand.js';
60
+ export { TableBorderWidthCommand } from './tableproperties/commands/tableborderwidthcommand.js';
61
+ export { TableHeightCommand } from './tableproperties/commands/tableheightcommand.js';
62
+ export { TableWidthCommand } from './tableproperties/commands/tablewidthcommand.js';
32
63
  export type { TableConfig } from './tableconfig.js';
33
- export type { default as InsertColumnCommand } from './commands/insertcolumncommand.js';
34
- export type { default as InsertRowCommand } from './commands/insertrowcommand.js';
35
- export type { default as InsertTableCommand } from './commands/inserttablecommand.js';
36
- export type { default as InsertTableLayoutCommand } from './commands/inserttablelayoutcommand.js';
37
- export type { default as TableTypeCommand } from './tablelayout/commands/tabletypecommand.js';
38
- export type { default as MergeCellCommand } from './commands/mergecellcommand.js';
39
- export type { default as MergeCellsCommand } from './commands/mergecellscommand.js';
40
- export type { default as RemoveColumnCommand } from './commands/removecolumncommand.js';
41
- export type { default as RemoveRowCommand } from './commands/removerowcommand.js';
42
- export type { default as SelectColumnCommand } from './commands/selectcolumncommand.js';
43
- export type { default as SelectRowCommand } from './commands/selectrowcommand.js';
44
- export type { default as SetHeaderColumnCommand } from './commands/setheadercolumncommand.js';
45
- export type { default as SetHeaderRowCommand } from './commands/setheaderrowcommand.js';
46
- export type { default as SplitCellCommand } from './commands/splitcellcommand.js';
47
- export type { default as ToggleTableCaptionCommand } from './tablecaption/toggletablecaptioncommand.js';
48
- export type { default as TableCellBackgroundColorCommand } from './tablecellproperties/commands/tablecellbackgroundcolorcommand.js';
49
- export type { default as TableCellBorderColorCommand } from './tablecellproperties/commands/tablecellbordercolorcommand.js';
50
- export type { default as TableCellBorderStyleCommand } from './tablecellproperties/commands/tablecellborderstylecommand.js';
51
- export type { default as TableCellBorderWidthCommand } from './tablecellproperties/commands/tablecellborderwidthcommand.js';
52
- export type { default as TableCellHeightCommand } from './tablecellproperties/commands/tablecellheightcommand.js';
53
- export type { default as TableCellHorizontalAlignmentCommand } from './tablecellproperties/commands/tablecellhorizontalalignmentcommand.js';
54
- export type { default as TableCellPaddingCommand } from './tablecellproperties/commands/tablecellpaddingcommand.js';
55
- export type { default as TableCellVerticalAlignmentCommand } from './tablecellproperties/commands/tablecellverticalalignmentcommand.js';
56
- export type { default as TableCellWidthCommand } from './tablecellwidth/commands/tablecellwidthcommand.js';
57
- export type { default as TableAlignmentCommand } from './tableproperties/commands/tablealignmentcommand.js';
58
- export type { default as TableBackgroundColorCommand } from './tableproperties/commands/tablebackgroundcolorcommand.js';
59
- export type { default as TableBorderColorCommand } from './tableproperties/commands/tablebordercolorcommand.js';
60
- export type { default as TableBorderStyleCommand } from './tableproperties/commands/tableborderstylecommand.js';
61
- export type { default as TableBorderWidthCommand } from './tableproperties/commands/tableborderwidthcommand.js';
62
- export type { default as TableHeightCommand } from './tableproperties/commands/tableheightcommand.js';
63
- export type { default as TableWidthCommand } from './tableproperties/commands/tablewidthcommand.js';
64
64
  import './augmentation.js';