@atlaskit/editor-plugin-table 8.4.3 → 8.4.5

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,20 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 8.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.4.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#173211](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/173211)
14
+ [`d4cb284c5f049`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4cb284c5f049) -
15
+ Fix distribute cols steps to resolve collab issue
16
+ - Updated dependencies
17
+
3
18
  ## 8.4.3
4
19
 
5
20
  ### 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.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,12 +38,12 @@
38
38
  "@atlaskit/editor-plugin-content-insertion": "^1.11.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-guideline": "^1.2.0",
41
- "@atlaskit/editor-plugin-selection": "^1.5.0",
41
+ "@atlaskit/editor-plugin-selection": "^1.6.0",
42
42
  "@atlaskit/editor-plugin-width": "^1.3.0",
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",
@@ -51,10 +51,10 @@
51
51
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
52
52
  "@atlaskit/primitives": "^13.3.0",
53
53
  "@atlaskit/theme": "^14.0.0",
54
- "@atlaskit/tmp-editor-statsig": "^2.23.0",
54
+ "@atlaskit/tmp-editor-statsig": "^2.25.0",
55
55
  "@atlaskit/toggle": "^13.4.0",
56
56
  "@atlaskit/tokens": "^2.4.0",
57
- "@atlaskit/tooltip": "^18.9.0",
57
+ "@atlaskit/tooltip": "^19.0.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "@emotion/react": "^11.7.1",
60
60
  "classnames": "^2.2.5",
@@ -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
  }