@atlaskit/editor-plugin-table 8.4.3 → 8.4.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 8.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#173211](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/173211)
8
+ [`d4cb284c5f049`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4cb284c5f049) -
9
+ Fix distribute cols steps to resolve collab issue
10
+ - Updated dependencies
11
+
3
12
  ## 8.4.3
4
13
 
5
14
  ### Patch Changes
@@ -77,7 +77,7 @@ var updateColumnWidths = exports.updateColumnWidths = function updateColumnWidth
77
77
  var cell = table.nodeAt(pos);
78
78
  if (!seen[pos] && cell) {
79
79
  if (updatedCellsAttrs[pos]) {
80
- steps.push(new _transform.AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth));
80
+ steps.push(new _transform.AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth === undefined && (0, _platformFeatureFlags.fg)('platform_editor_ed_25642') ? null : updatedCellsAttrs[pos].colwidth));
81
81
  }
82
82
  seen[pos] = true;
83
83
  }
@@ -70,7 +70,7 @@ export const updateColumnWidths = (resizeState, table, start, api) => tr => {
70
70
  const cell = table.nodeAt(pos);
71
71
  if (!seen[pos] && cell) {
72
72
  if (updatedCellsAttrs[pos]) {
73
- steps.push(new AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth));
73
+ steps.push(new AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth === undefined && fg('platform_editor_ed_25642') ? null : updatedCellsAttrs[pos].colwidth));
74
74
  }
75
75
  seen[pos] = true;
76
76
  }
@@ -71,7 +71,7 @@ export var updateColumnWidths = function updateColumnWidths(resizeState, table,
71
71
  var cell = table.nodeAt(pos);
72
72
  if (!seen[pos] && cell) {
73
73
  if (updatedCellsAttrs[pos]) {
74
- steps.push(new AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth));
74
+ steps.push(new AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth === undefined && fg('platform_editor_ed_25642') ? null : updatedCellsAttrs[pos].colwidth));
75
75
  }
76
76
  seen[pos] = true;
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "8.4.3",
3
+ "version": "8.4.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/editor-prosemirror": "6.2.1",
44
44
  "@atlaskit/editor-shared-styles": "^3.2.0",
45
45
  "@atlaskit/editor-tables": "^2.8.0",
46
- "@atlaskit/icon": "^23.0.0",
46
+ "@atlaskit/icon": "^23.1.0",
47
47
  "@atlaskit/menu": "^2.13.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
@@ -134,6 +134,9 @@
134
134
  },
135
135
  "platform_editor_table_drag_menu_mount_point_fix": {
136
136
  "type": "boolean"
137
+ },
138
+ "platform_editor_ed_25642": {
139
+ "type": "boolean"
137
140
  }
138
141
  }
139
142
  }
@@ -90,7 +90,15 @@ export const updateColumnWidths =
90
90
  const cell = table.nodeAt(pos);
91
91
  if (!seen[pos] && cell) {
92
92
  if (updatedCellsAttrs[pos]) {
93
- steps.push(new AttrStep(pos + start, 'colwidth', updatedCellsAttrs[pos].colwidth));
93
+ steps.push(
94
+ new AttrStep(
95
+ pos + start,
96
+ 'colwidth',
97
+ updatedCellsAttrs[pos].colwidth === undefined && fg('platform_editor_ed_25642')
98
+ ? null
99
+ : updatedCellsAttrs[pos].colwidth,
100
+ ),
101
+ );
94
102
  }
95
103
  seen[pos] = true;
96
104
  }