@ckeditor/ckeditor5-table 47.7.1 → 47.7.2-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "47.7.1",
3
+ "version": "47.7.2-alpha.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": "47.7.1",
17
- "@ckeditor/ckeditor5-clipboard": "47.7.1",
18
- "@ckeditor/ckeditor5-core": "47.7.1",
19
- "@ckeditor/ckeditor5-engine": "47.7.1",
20
- "@ckeditor/ckeditor5-icons": "47.7.1",
21
- "@ckeditor/ckeditor5-ui": "47.7.1",
22
- "@ckeditor/ckeditor5-utils": "47.7.1",
23
- "@ckeditor/ckeditor5-widget": "47.7.1",
16
+ "ckeditor5": "47.7.2-alpha.0",
17
+ "@ckeditor/ckeditor5-clipboard": "47.7.2-alpha.0",
18
+ "@ckeditor/ckeditor5-core": "47.7.2-alpha.0",
19
+ "@ckeditor/ckeditor5-engine": "47.7.2-alpha.0",
20
+ "@ckeditor/ckeditor5-icons": "47.7.2-alpha.0",
21
+ "@ckeditor/ckeditor5-ui": "47.7.2-alpha.0",
22
+ "@ckeditor/ckeditor5-utils": "47.7.2-alpha.0",
23
+ "@ckeditor/ckeditor5-widget": "47.7.2-alpha.0",
24
24
  "es-toolkit": "1.39.5"
25
25
  },
26
26
  "author": "CKSource (http://cksource.com/)",
@@ -98,7 +98,7 @@ export function upcastBorderStyles(editor, viewElementName, modelAttributes, def
98
98
  const { conversion } = editor;
99
99
  conversion.for('upcast').add(dispatcher => dispatcher.on('element:' + viewElementName, (evt, data, conversionApi) => {
100
100
  // If the element was not converted by element-to-element converter,
101
- // we should not try to convert the style. See #8393.
101
+ // we should not try to convert the style. See https://github.com/ckeditor/ckeditor5/issues/8393.
102
102
  if (!data.modelRange) {
103
103
  return;
104
104
  }
@@ -195,7 +195,7 @@ function scanTable(viewTable) {
195
195
  firstTheadElement = tableChild;
196
196
  }
197
197
  // There might be some extra empty text nodes between the `<tr>`s.
198
- // Make sure further code operates on `tr`s only. (#145)
198
+ // Make sure further code operates on `tr`s only. (https://github.com/ckeditor/ckeditor5/issues/145)
199
199
  const trs = Array.from(tableChild.getChildren()).filter((el) => el.is('element', 'tr'));
200
200
  // Keep tracking of the previous row columns count to improve detection of heading rows.
201
201
  let maxPrevColumns = null;
@@ -116,7 +116,7 @@ export class TableColumnResizeEditing extends Plugin {
116
116
  // Currently the states of column resize and table resize (which is actually the last column resize) features
117
117
  // are bound together. They can be separated in the future by adding distinct listeners and applying
118
118
  // different CSS classes (e.g. `ck-column-resize_disabled` and `ck-table-resize_disabled`) to the editor root.
119
- // See #12148 for the details.
119
+ // See https://github.com/ckeditor/ckeditor5/issues/12148 for the details.
120
120
  this.bind('_isResizingAllowed').to(editor, 'isReadOnly', columnResizePlugin, 'isEnabled', tableWidthsCommand, 'isEnabled', (isEditorReadOnly, isPluginEnabled, isTableWidthsCommandCommandEnabled) => !isEditorReadOnly && isPluginEnabled && isTableWidthsCommandCommandEnabled);
121
121
  }
122
122
  /**
@@ -28,7 +28,8 @@ export function getChangedResizedTables(model) {
28
28
  null;
29
29
  break;
30
30
  case 'remove':
31
- // If the whole table is removed, there's no need to update its column widths (#12201).
31
+ // If the whole table is removed, there's no need to update its column widths.
32
+ // See https://github.com/ckeditor/ckeditor5/issues/12201.
32
33
  referencePosition = ['tableRow', 'tableCell'].includes(change.name) ?
33
34
  change.position :
34
35
  null;
@@ -79,7 +80,7 @@ export function getColumnMinWidthAsPercentage(modelTable, editor) {
79
80
  * @returns The width of the table in pixels.
80
81
  */
81
82
  export function getTableWidthInPixels(modelTable, editor) {
82
- // It is possible for a table to not have a <tbody> element - see #11878.
83
+ // It is possible for a table to not have a <tbody> element - see https://github.com/ckeditor/ckeditor5/issues/11878.
83
84
  const referenceElement = getChildrenViewElement(modelTable, 'tbody', editor) || getChildrenViewElement(modelTable, 'thead', editor);
84
85
  const domReferenceElement = editor.editing.view.domConverter.mapViewToDom(referenceElement);
85
86
  return getElementWidthInPixels(domReferenceElement);
@@ -108,7 +109,7 @@ function getChildrenViewElement(modelTable, elementName, editor) {
108
109
  export function getElementWidthInPixels(domElement) {
109
110
  const styles = global.window.getComputedStyle(domElement);
110
111
  // In the 'border-box' box sizing algorithm, the element's width
111
- // already includes the padding and border width (#12335).
112
+ // already includes the padding and border width (https://github.com/ckeditor/ckeditor5/issues/12335).
112
113
  if (styles.boxSizing === 'border-box') {
113
114
  return parseFloat(styles.width) -
114
115
  parseFloat(styles.paddingLeft) -
@@ -263,7 +264,7 @@ function calculateMissingColumnWidths(columnWidths) {
263
264
  export function getDomCellOuterWidth(domCell) {
264
265
  const styles = global.window.getComputedStyle(domCell);
265
266
  // In the 'border-box' box sizing algorithm, the element's width
266
- // already includes the padding and border width (#12335).
267
+ // already includes the padding and border width (https://github.com/ckeditor/ckeditor5/issues/12335).
267
268
  if (styles.boxSizing === 'border-box') {
268
269
  return parseInt(styles.width);
269
270
  }
package/src/tableutils.js CHANGED
@@ -1240,7 +1240,7 @@ function moveCellsToRow(table, targetRowIndex, cellsToMove, writer) {
1240
1240
  previousCell = cellToMove;
1241
1241
  }
1242
1242
  else if (isAnchor) {
1243
- // If cell is spanned then `cell` holds reference to overlapping cell. See ckeditor/ckeditor5#6502.
1243
+ // If cell is spanned then `cell` holds reference to overlapping cell. See https://github.com/ckeditor/ckeditor5/issues/6502.
1244
1244
  previousCell = cell;
1245
1245
  }
1246
1246
  }
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  & .ck.ck-input-color__button {
26
- /* Resolving issue with misaligned buttons on Safari (see #10589) */
26
+ /* Resolving issue with misaligned buttons on Safari (see https://github.com/ckeditor/ckeditor5/issues/10589) */
27
27
  display: flex;
28
28
 
29
29
  & .ck.ck-input-color__button__preview {