@ckeditor/ckeditor5-table 38.2.0-alpha.1 → 39.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 (159) hide show
  1. package/README.md +0 -1
  2. package/build/table.js +1 -1
  3. package/build/translations/sq.js +1 -1
  4. package/lang/translations/sq.po +28 -28
  5. package/package.json +3 -4
  6. package/src/augmentation.d.ts +1 -1
  7. package/src/commands/insertcolumncommand.d.ts +1 -1
  8. package/src/commands/insertcolumncommand.js +1 -1
  9. package/src/commands/insertrowcommand.d.ts +1 -1
  10. package/src/commands/insertrowcommand.js +1 -1
  11. package/src/commands/inserttablecommand.d.ts +1 -1
  12. package/src/commands/inserttablecommand.js +1 -1
  13. package/src/commands/mergecellcommand.d.ts +3 -3
  14. package/src/commands/mergecellcommand.js +4 -4
  15. package/src/commands/mergecellscommand.d.ts +1 -1
  16. package/src/commands/mergecellscommand.js +4 -4
  17. package/src/commands/removecolumncommand.d.ts +1 -1
  18. package/src/commands/removecolumncommand.js +2 -2
  19. package/src/commands/removerowcommand.d.ts +1 -1
  20. package/src/commands/removerowcommand.js +1 -1
  21. package/src/commands/selectcolumncommand.d.ts +1 -1
  22. package/src/commands/selectcolumncommand.js +2 -2
  23. package/src/commands/selectrowcommand.d.ts +1 -1
  24. package/src/commands/selectrowcommand.js +1 -1
  25. package/src/commands/setheadercolumncommand.d.ts +1 -1
  26. package/src/commands/setheadercolumncommand.js +3 -3
  27. package/src/commands/setheaderrowcommand.d.ts +1 -1
  28. package/src/commands/setheaderrowcommand.js +3 -3
  29. package/src/commands/splitcellcommand.d.ts +1 -1
  30. package/src/commands/splitcellcommand.js +1 -1
  31. package/src/converters/downcast.d.ts +3 -3
  32. package/src/converters/downcast.js +2 -2
  33. package/src/converters/table-caption-post-fixer.d.ts +1 -1
  34. package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
  35. package/src/converters/table-cell-refresh-handler.d.ts +1 -1
  36. package/src/converters/table-cell-refresh-handler.js +1 -1
  37. package/src/converters/table-headings-refresh-handler.d.ts +1 -1
  38. package/src/converters/table-headings-refresh-handler.js +1 -1
  39. package/src/converters/table-layout-post-fixer.d.ts +1 -1
  40. package/src/converters/table-layout-post-fixer.js +2 -2
  41. package/src/converters/tableproperties.d.ts +1 -1
  42. package/src/converters/upcasttable.d.ts +1 -1
  43. package/src/converters/upcasttable.js +2 -2
  44. package/src/index.d.ts +53 -53
  45. package/src/index.js +23 -23
  46. package/src/plaintableoutput.d.ts +2 -2
  47. package/src/plaintableoutput.js +2 -2
  48. package/src/table.d.ts +8 -8
  49. package/src/table.js +8 -8
  50. package/src/tablecaption/tablecaptionediting.d.ts +2 -2
  51. package/src/tablecaption/tablecaptionediting.js +7 -7
  52. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  53. package/src/tablecaption/tablecaptionui.js +3 -3
  54. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  55. package/src/tablecaption/toggletablecaptioncommand.js +2 -2
  56. package/src/tablecaption/utils.d.ts +1 -1
  57. package/src/tablecaption.d.ts +3 -3
  58. package/src/tablecaption.js +3 -3
  59. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  60. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
  61. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +3 -3
  62. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  63. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +3 -3
  64. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  65. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +3 -3
  66. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  67. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  68. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  69. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  70. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
  71. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +3 -3
  72. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  73. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +2 -2
  74. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  75. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  76. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
  77. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  78. package/src/tablecellproperties/tablecellpropertiesediting.js +15 -15
  79. package/src/tablecellproperties/tablecellpropertiesui.d.ts +3 -3
  80. package/src/tablecellproperties/tablecellpropertiesui.js +7 -7
  81. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +4 -4
  82. package/src/tablecellproperties/ui/tablecellpropertiesview.js +5 -5
  83. package/src/tablecellproperties.d.ts +3 -3
  84. package/src/tablecellproperties.js +3 -3
  85. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  86. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  87. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  88. package/src/tablecellwidth/tablecellwidthediting.js +5 -5
  89. package/src/tableclipboard.d.ts +5 -5
  90. package/src/tableclipboard.js +5 -5
  91. package/src/tablecolumnresize/converters.d.ts +2 -2
  92. package/src/tablecolumnresize/converters.js +1 -1
  93. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +4 -4
  94. package/src/tablecolumnresize/tablecolumnresizeediting.js +10 -10
  95. package/src/tablecolumnresize/tablewidthscommand.d.ts +2 -2
  96. package/src/tablecolumnresize/tablewidthscommand.js +2 -2
  97. package/src/tablecolumnresize/utils.d.ts +3 -3
  98. package/src/tablecolumnresize/utils.js +2 -2
  99. package/src/tablecolumnresize.d.ts +3 -3
  100. package/src/tablecolumnresize.js +3 -3
  101. package/src/tableconfig.d.ts +2 -2
  102. package/src/tableediting.d.ts +3 -3
  103. package/src/tableediting.js +20 -20
  104. package/src/tablekeyboard.d.ts +5 -5
  105. package/src/tablekeyboard.js +5 -5
  106. package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
  107. package/src/tablemouse/mouseeventsobserver.js +1 -1
  108. package/src/tablemouse.d.ts +3 -3
  109. package/src/tablemouse.js +4 -4
  110. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  111. package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
  112. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  113. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
  114. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +3 -3
  115. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  116. package/src/tableproperties/commands/tableborderstylecommand.d.ts +3 -3
  117. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  118. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +3 -3
  119. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  120. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  121. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  122. package/src/tableproperties/commands/tablepropertycommand.d.ts +2 -2
  123. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  124. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  125. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  126. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  127. package/src/tableproperties/tablepropertiesediting.js +12 -12
  128. package/src/tableproperties/tablepropertiesui.d.ts +3 -3
  129. package/src/tableproperties/tablepropertiesui.js +7 -7
  130. package/src/tableproperties/ui/tablepropertiesview.d.ts +4 -4
  131. package/src/tableproperties/ui/tablepropertiesview.js +5 -5
  132. package/src/tableproperties.d.ts +3 -3
  133. package/src/tableproperties.js +3 -3
  134. package/src/tableselection.d.ts +3 -3
  135. package/src/tableselection.js +5 -5
  136. package/src/tabletoolbar.d.ts +2 -2
  137. package/src/tabletoolbar.js +3 -3
  138. package/src/tableui.d.ts +1 -1
  139. package/src/tableui.js +4 -4
  140. package/src/tableutils.d.ts +3 -3
  141. package/src/tableutils.js +5 -5
  142. package/src/tablewalker.d.ts +1 -1
  143. package/src/ui/colorinputview.d.ts +2 -2
  144. package/src/ui/colorinputview.js +2 -2
  145. package/src/ui/formrowview.d.ts +2 -2
  146. package/src/ui/formrowview.js +1 -1
  147. package/src/ui/inserttableview.d.ts +2 -2
  148. package/src/ui/inserttableview.js +2 -2
  149. package/src/utils/common.d.ts +2 -2
  150. package/src/utils/common.js +1 -1
  151. package/src/utils/structure.d.ts +3 -3
  152. package/src/utils/structure.js +2 -2
  153. package/src/utils/table-properties.d.ts +1 -1
  154. package/src/utils/ui/contextualballoon.d.ts +2 -2
  155. package/src/utils/ui/contextualballoon.js +3 -3
  156. package/src/utils/ui/table-properties.d.ts +5 -5
  157. package/src/utils/ui/table-properties.js +4 -4
  158. package/src/utils/ui/widget.d.ts +1 -1
  159. package/src/utils/ui/widget.js +1 -1
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { createEmptyTableCell } from '../utils/common.js';
6
- import { first } from 'ckeditor5/src/utils.js';
5
+ import { createEmptyTableCell } from '../utils/common';
6
+ import { first } from 'ckeditor5/src/utils';
7
7
  /**
8
8
  * Returns a function that converts the table view representation:
9
9
  *
package/src/index.d.ts CHANGED
@@ -5,56 +5,56 @@
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 TableProperties } from './tableproperties.js';
18
- export { default as TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
19
- export { default as TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
20
- export { default as TableCaption } from './tablecaption.js';
21
- export { default as TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
22
- export { default as TableCaptionUI } from './tablecaption/tablecaptionui.js';
23
- export { default as TableClipboard } from './tableclipboard.js';
24
- export { default as TableMouse } from './tablemouse.js';
25
- export { default as TableKeyboard } from './tablekeyboard.js';
26
- export { default as TableSelection } from './tableselection.js';
27
- export { default as TableUtils } from './tableutils.js';
28
- export { default as TableColumnResize } from './tablecolumnresize.js';
29
- export { default as TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting.js';
30
- export type { TableConfig } from './tableconfig.js';
31
- export type { default as InsertColumnCommand } from './commands/insertcolumncommand.js';
32
- export type { default as InsertRowCommand } from './commands/insertrowcommand.js';
33
- export type { default as InsertTableCommand } from './commands/inserttablecommand.js';
34
- export type { default as MergeCellCommand } from './commands/mergecellcommand.js';
35
- export type { default as MergeCellsCommand } from './commands/mergecellscommand.js';
36
- export type { default as RemoveColumnCommand } from './commands/removecolumncommand.js';
37
- export type { default as RemoveRowCommand } from './commands/removerowcommand.js';
38
- export type { default as SelectColumnCommand } from './commands/selectcolumncommand.js';
39
- export type { default as SelectRowCommand } from './commands/selectrowcommand.js';
40
- export type { default as SetHeaderColumnCommand } from './commands/setheadercolumncommand.js';
41
- export type { default as SetHeaderRowCommand } from './commands/setheaderrowcommand.js';
42
- export type { default as SplitCellCommand } from './commands/splitcellcommand.js';
43
- export type { default as ToggleTableCaptionCommand } from './tablecaption/toggletablecaptioncommand.js';
44
- export type { default as TableCellBackgroundColorCommand } from './tablecellproperties/commands/tablecellbackgroundcolorcommand.js';
45
- export type { default as TableCellBorderColorCommand } from './tablecellproperties/commands/tablecellbordercolorcommand.js';
46
- export type { default as TableCellBorderStyleCommand } from './tablecellproperties/commands/tablecellborderstylecommand.js';
47
- export type { default as TableCellBorderWidthCommand } from './tablecellproperties/commands/tablecellborderwidthcommand.js';
48
- export type { default as TableCellHeightCommand } from './tablecellproperties/commands/tablecellheightcommand.js';
49
- export type { default as TableCellHorizontalAlignmentCommand } from './tablecellproperties/commands/tablecellhorizontalalignmentcommand.js';
50
- export type { default as TableCellPaddingCommand } from './tablecellproperties/commands/tablecellpaddingcommand.js';
51
- export type { default as TableCellVerticalAlignmentCommand } from './tablecellproperties/commands/tablecellverticalalignmentcommand.js';
52
- export type { default as TableCellWidthCommand } from './tablecellwidth/commands/tablecellwidthcommand.js';
53
- export type { default as TableAlignmentCommand } from './tableproperties/commands/tablealignmentcommand.js';
54
- export type { default as TableBackgroundColorCommand } from './tableproperties/commands/tablebackgroundcolorcommand.js';
55
- export type { default as TableBorderColorCommand } from './tableproperties/commands/tablebordercolorcommand.js';
56
- export type { default as TableBorderStyleCommand } from './tableproperties/commands/tableborderstylecommand.js';
57
- export type { default as TableBorderWidthCommand } from './tableproperties/commands/tableborderwidthcommand.js';
58
- export type { default as TableHeightCommand } from './tableproperties/commands/tableheightcommand.js';
59
- export type { default as TableWidthCommand } from './tableproperties/commands/tablewidthcommand.js';
60
- import './augmentation.js';
8
+ export { default as PlainTableOutput } from './plaintableoutput';
9
+ export { default as Table } from './table';
10
+ export { default as TableEditing } from './tableediting';
11
+ export { default as TableUI } from './tableui';
12
+ export { default as TableToolbar } from './tabletoolbar';
13
+ export { default as TableCellProperties } from './tablecellproperties';
14
+ export { default as TableCellPropertiesEditing } from './tablecellproperties/tablecellpropertiesediting';
15
+ export { default as TableCellPropertiesUI } from './tablecellproperties/tablecellpropertiesui';
16
+ export { default as TableCellWidthEditing } from './tablecellwidth/tablecellwidthediting';
17
+ export { default as TableProperties } from './tableproperties';
18
+ export { default as TablePropertiesEditing } from './tableproperties/tablepropertiesediting';
19
+ export { default as TablePropertiesUI } from './tableproperties/tablepropertiesui';
20
+ export { default as TableCaption } from './tablecaption';
21
+ export { default as TableCaptionEditing } from './tablecaption/tablecaptionediting';
22
+ export { default as TableCaptionUI } from './tablecaption/tablecaptionui';
23
+ export { default as TableClipboard } from './tableclipboard';
24
+ export { default as TableMouse } from './tablemouse';
25
+ export { default as TableKeyboard } from './tablekeyboard';
26
+ export { default as TableSelection } from './tableselection';
27
+ export { default as TableUtils } from './tableutils';
28
+ export { default as TableColumnResize } from './tablecolumnresize';
29
+ export { default as TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting';
30
+ export type { TableConfig } from './tableconfig';
31
+ export type { default as InsertColumnCommand } from './commands/insertcolumncommand';
32
+ export type { default as InsertRowCommand } from './commands/insertrowcommand';
33
+ export type { default as InsertTableCommand } from './commands/inserttablecommand';
34
+ export type { default as MergeCellCommand } from './commands/mergecellcommand';
35
+ export type { default as MergeCellsCommand } from './commands/mergecellscommand';
36
+ export type { default as RemoveColumnCommand } from './commands/removecolumncommand';
37
+ export type { default as RemoveRowCommand } from './commands/removerowcommand';
38
+ export type { default as SelectColumnCommand } from './commands/selectcolumncommand';
39
+ export type { default as SelectRowCommand } from './commands/selectrowcommand';
40
+ export type { default as SetHeaderColumnCommand } from './commands/setheadercolumncommand';
41
+ export type { default as SetHeaderRowCommand } from './commands/setheaderrowcommand';
42
+ export type { default as SplitCellCommand } from './commands/splitcellcommand';
43
+ export type { default as ToggleTableCaptionCommand } from './tablecaption/toggletablecaptioncommand';
44
+ export type { default as TableCellBackgroundColorCommand } from './tablecellproperties/commands/tablecellbackgroundcolorcommand';
45
+ export type { default as TableCellBorderColorCommand } from './tablecellproperties/commands/tablecellbordercolorcommand';
46
+ export type { default as TableCellBorderStyleCommand } from './tablecellproperties/commands/tablecellborderstylecommand';
47
+ export type { default as TableCellBorderWidthCommand } from './tablecellproperties/commands/tablecellborderwidthcommand';
48
+ export type { default as TableCellHeightCommand } from './tablecellproperties/commands/tablecellheightcommand';
49
+ export type { default as TableCellHorizontalAlignmentCommand } from './tablecellproperties/commands/tablecellhorizontalalignmentcommand';
50
+ export type { default as TableCellPaddingCommand } from './tablecellproperties/commands/tablecellpaddingcommand';
51
+ export type { default as TableCellVerticalAlignmentCommand } from './tablecellproperties/commands/tablecellverticalalignmentcommand';
52
+ export type { default as TableCellWidthCommand } from './tablecellwidth/commands/tablecellwidthcommand';
53
+ export type { default as TableAlignmentCommand } from './tableproperties/commands/tablealignmentcommand';
54
+ export type { default as TableBackgroundColorCommand } from './tableproperties/commands/tablebackgroundcolorcommand';
55
+ export type { default as TableBorderColorCommand } from './tableproperties/commands/tablebordercolorcommand';
56
+ export type { default as TableBorderStyleCommand } from './tableproperties/commands/tableborderstylecommand';
57
+ export type { default as TableBorderWidthCommand } from './tableproperties/commands/tableborderwidthcommand';
58
+ export type { default as TableHeightCommand } from './tableproperties/commands/tableheightcommand';
59
+ export type { default as TableWidthCommand } from './tableproperties/commands/tablewidthcommand';
60
+ import './augmentation';
package/src/index.js CHANGED
@@ -5,26 +5,26 @@
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 TableProperties } from './tableproperties.js';
18
- export { default as TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
19
- export { default as TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
20
- export { default as TableCaption } from './tablecaption.js';
21
- export { default as TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
22
- export { default as TableCaptionUI } from './tablecaption/tablecaptionui.js';
23
- export { default as TableClipboard } from './tableclipboard.js';
24
- export { default as TableMouse } from './tablemouse.js';
25
- export { default as TableKeyboard } from './tablekeyboard.js';
26
- export { default as TableSelection } from './tableselection.js';
27
- export { default as TableUtils } from './tableutils.js';
28
- export { default as TableColumnResize } from './tablecolumnresize.js';
29
- export { default as TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting.js';
30
- import './augmentation.js';
8
+ export { default as PlainTableOutput } from './plaintableoutput';
9
+ export { default as Table } from './table';
10
+ export { default as TableEditing } from './tableediting';
11
+ export { default as TableUI } from './tableui';
12
+ export { default as TableToolbar } from './tabletoolbar';
13
+ export { default as TableCellProperties } from './tablecellproperties';
14
+ export { default as TableCellPropertiesEditing } from './tablecellproperties/tablecellpropertiesediting';
15
+ export { default as TableCellPropertiesUI } from './tablecellproperties/tablecellpropertiesui';
16
+ export { default as TableCellWidthEditing } from './tablecellwidth/tablecellwidthediting';
17
+ export { default as TableProperties } from './tableproperties';
18
+ export { default as TablePropertiesEditing } from './tableproperties/tablepropertiesediting';
19
+ export { default as TablePropertiesUI } from './tableproperties/tablepropertiesui';
20
+ export { default as TableCaption } from './tablecaption';
21
+ export { default as TableCaptionEditing } from './tablecaption/tablecaptionediting';
22
+ export { default as TableCaptionUI } from './tablecaption/tablecaptionui';
23
+ export { default as TableClipboard } from './tableclipboard';
24
+ export { default as TableMouse } from './tablemouse';
25
+ export { default as TableKeyboard } from './tablekeyboard';
26
+ export { default as TableSelection } from './tableselection';
27
+ export { default as TableUtils } from './tableutils';
28
+ export { default as TableColumnResize } from './tablecolumnresize';
29
+ export { default as TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting';
30
+ import './augmentation';
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/plaintableoutput
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import Table from './table.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import Table from './table';
10
10
  /**
11
11
  * The plain table output feature.
12
12
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/plaintableoutput
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import Table from './table.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import Table from './table';
10
10
  /**
11
11
  * The plain table output feature.
12
12
  */
package/src/table.d.ts CHANGED
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module table/table
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Widget } from 'ckeditor5/src/widget.js';
10
- import TableEditing from './tableediting.js';
11
- import TableUI from './tableui.js';
12
- import TableSelection from './tableselection.js';
13
- import TableClipboard from './tableclipboard.js';
14
- import TableKeyboard from './tablekeyboard.js';
15
- import TableMouse from './tablemouse.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Widget } from 'ckeditor5/src/widget';
10
+ import TableEditing from './tableediting';
11
+ import TableUI from './tableui';
12
+ import TableSelection from './tableselection';
13
+ import TableClipboard from './tableclipboard';
14
+ import TableKeyboard from './tablekeyboard';
15
+ import TableMouse from './tablemouse';
16
16
  import '../theme/table.css';
17
17
  /**
18
18
  * The table plugin.
package/src/table.js CHANGED
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module table/table
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Widget } from 'ckeditor5/src/widget.js';
10
- import TableEditing from './tableediting.js';
11
- import TableUI from './tableui.js';
12
- import TableSelection from './tableselection.js';
13
- import TableClipboard from './tableclipboard.js';
14
- import TableKeyboard from './tablekeyboard.js';
15
- import TableMouse from './tablemouse.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Widget } from 'ckeditor5/src/widget';
10
+ import TableEditing from './tableediting';
11
+ import TableUI from './tableui';
12
+ import TableSelection from './tableselection';
13
+ import TableClipboard from './tableclipboard';
14
+ import TableKeyboard from './tablekeyboard';
15
+ import TableMouse from './tablemouse';
16
16
  import '../theme/table.css';
17
17
  /**
18
18
  * The table plugin.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecaption/tablecaptionediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
- import { Element } from 'ckeditor5/src/engine.js';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import { Element } from 'ckeditor5/src/engine';
10
10
  /**
11
11
  * The table caption editing plugin.
12
12
  */
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module table/tablecaption/tablecaptionediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Element, enablePlaceholder } from 'ckeditor5/src/engine.js';
10
- import { toWidgetEditable } from 'ckeditor5/src/widget.js';
11
- import injectTableCaptionPostFixer from '../converters/table-caption-post-fixer.js';
12
- import ToggleTableCaptionCommand from './toggletablecaptioncommand.js';
13
- import { isTable, matchTableCaptionViewElement } from './utils.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Element, enablePlaceholder } from 'ckeditor5/src/engine';
10
+ import { toWidgetEditable } from 'ckeditor5/src/widget';
11
+ import injectTableCaptionPostFixer from '../converters/table-caption-post-fixer';
12
+ import ToggleTableCaptionCommand from './toggletablecaptioncommand';
13
+ import { isTable, matchTableCaptionViewElement } from './utils';
14
14
  /**
15
15
  * The table caption editing plugin.
16
16
  */
@@ -73,10 +73,10 @@ export default class TableCaptionEditing extends Plugin {
73
73
  }
74
74
  const figcaptionElement = writer.createEditableElement('figcaption');
75
75
  writer.setCustomProperty('tableCaption', true, figcaptionElement);
76
+ figcaptionElement.placeholder = t('Enter table caption');
76
77
  enablePlaceholder({
77
78
  view,
78
79
  element: figcaptionElement,
79
- text: t('Enter table caption'),
80
80
  keepOnFocus: true
81
81
  });
82
82
  return toWidgetEditable(figcaptionElement, writer);
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablecaption/tablecaptionui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
11
11
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecaption/tablecaptionui
7
7
  */
8
- import { Plugin, icons } from 'ckeditor5/src/core.js';
9
- import { ButtonView } from 'ckeditor5/src/ui.js';
10
- import { getCaptionFromModelSelection } from './utils.js';
8
+ import { Plugin, icons } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import { getCaptionFromModelSelection } from './utils';
11
11
  /**
12
12
  * The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
13
13
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablecaption/toggletablecaptioncommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The toggle table caption command.
11
11
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecaption/toggletablecaptioncommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { getCaptionFromTableModelElement, getSelectionAffectedTable } from './utils.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { getCaptionFromTableModelElement, getSelectionAffectedTable } from './utils';
10
10
  /**
11
11
  * The toggle table caption command.
12
12
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablecaption/utils
7
7
  */
8
- import type { DocumentFragment, DocumentSelection, Element, ViewElement } from 'ckeditor5/src/engine.js';
8
+ import type { DocumentFragment, DocumentSelection, Element, ViewElement } from 'ckeditor5/src/engine';
9
9
  /**
10
10
  * Checks if the provided model element is a `table`.
11
11
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecaption
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
10
- import TableCaptionUI from './tablecaption/tablecaptionui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableCaptionEditing from './tablecaption/tablecaptionediting';
10
+ import TableCaptionUI from './tablecaption/tablecaptionui';
11
11
  import '../theme/tablecaption.css';
12
12
  /**
13
13
  * The table caption plugin.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecaption
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
10
- import TableCaptionUI from './tablecaption/tablecaptionui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableCaptionEditing from './tablecaption/tablecaptionediting';
10
+ import TableCaptionUI from './tablecaption/tablecaptionui';
11
11
  import '../theme/tablecaption.css';
12
12
  /**
13
13
  * The table caption plugin.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellbackgroundcolorcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import TableCellPropertyCommand from './tablecellpropertycommand';
10
10
  /**
11
11
  * The table cell background color command.
12
12
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
6
  /**
7
7
  * The table cell background color command.
8
8
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellbordercolorcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
9
- import type { Editor } from 'ckeditor5/src/core.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Element } from 'ckeditor5/src/engine';
9
+ import type { Editor } from 'ckeditor5/src/core';
10
+ import TableCellPropertyCommand from './tablecellpropertycommand';
11
11
  /**
12
12
  * The table cell border color command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
6
- import { getSingleValue } from '../../utils/table-properties.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
+ import { getSingleValue } from '../../utils/table-properties';
7
7
  /**
8
8
  * The table cell border color command.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellborderstylecommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import type { Element } from 'ckeditor5/src/engine';
10
+ import TableCellPropertyCommand from './tablecellpropertycommand';
11
11
  /**
12
12
  * The table cell border style command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
6
- import { getSingleValue } from '../../utils/table-properties.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
+ import { getSingleValue } from '../../utils/table-properties';
7
7
  /**
8
8
  * The table cell border style command.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellborderwidthcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import type { Element } from 'ckeditor5/src/engine';
10
+ import TableCellPropertyCommand from './tablecellpropertycommand';
11
11
  /**
12
12
  * The table cell border width command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
6
- import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
+ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties';
7
7
  /**
8
8
  * The table cell border width command.
9
9
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellheightcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import TableCellPropertyCommand from './tablecellpropertycommand';
10
10
  /**
11
11
  * The table cell height command.
12
12
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
6
- import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
+ import { addDefaultUnitToNumericValue } from '../../utils/table-properties';
7
7
  /**
8
8
  * The table cell height command.
9
9
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellhorizontalalignmentcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import TableCellPropertyCommand from './tablecellpropertycommand';
10
10
  /**
11
11
  * The table cell horizontal alignment command.
12
12
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
6
  /**
7
7
  * The table cell horizontal alignment command.
8
8
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellpaddingcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
10
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import type { Element } from 'ckeditor5/src/engine';
10
+ import TableCellPropertyCommand from './tablecellpropertycommand';
11
11
  /**
12
12
  * The table cell padding command.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
6
- import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
+ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties';
7
7
  /**
8
8
  * The table cell padding command.
9
9
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellpropertycommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Element, Batch } from 'ckeditor5/src/engine.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import type { Element, Batch } from 'ckeditor5/src/engine';
10
10
  /**
11
11
  * The table cell attribute command.
12
12
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellpropertycommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The table cell attribute command.
11
11
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/commands/tablecellverticalalignmentcommand
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core.js';
9
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import TableCellPropertyCommand from './tablecellpropertycommand';
10
10
  /**
11
11
  * The table cell vertical alignment command.
12
12
  *
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import TableCellPropertyCommand from './tablecellpropertycommand.js';
5
+ import TableCellPropertyCommand from './tablecellpropertycommand';
6
6
  /**
7
7
  * The table cell vertical alignment command.
8
8
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module table/tablecellproperties/tablecellpropertiesediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableEditing from './../tableediting.js';
10
- import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TableEditing from './../tableediting';
10
+ import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting';
11
11
  /**
12
12
  * The table cell properties editing feature.
13
13
  *