@atlaskit/editor-plugin-table 5.6.3 → 5.6.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,11 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 5.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#61812](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61812) [`1d1776f9f6bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1d1776f9f6bf) - Fix issue where inserting column via drag menu introduces a scroll
8
+
3
9
  ## 5.6.3
4
10
 
5
11
  ### Patch Changes
@@ -118,7 +118,7 @@ var getDragMenuConfig = exports.getDragMenuConfig = function getDragMenuConfig(d
118
118
  if (direction === 'row') {
119
119
  (0, _commands.insertRow)(index + offset, true)(state, dispatch);
120
120
  } else {
121
- (0, _commands.insertColumn)(getEditorContainerWidth)(index + offset)(state, dispatch);
121
+ (0, _commands.insertColumn)(getEditorContainerWidth)(index + offset)(state, dispatch, editorView);
122
122
  }
123
123
  return true;
124
124
  },
@@ -100,7 +100,7 @@ export const getDragMenuConfig = (direction, getEditorContainerWidth, canDrag, h
100
100
  if (direction === 'row') {
101
101
  insertRow(index + offset, true)(state, dispatch);
102
102
  } else {
103
- insertColumn(getEditorContainerWidth)(index + offset)(state, dispatch);
103
+ insertColumn(getEditorContainerWidth)(index + offset)(state, dispatch, editorView);
104
104
  }
105
105
  return true;
106
106
  },
@@ -111,7 +111,7 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
111
111
  if (direction === 'row') {
112
112
  insertRow(index + offset, true)(state, dispatch);
113
113
  } else {
114
- insertColumn(getEditorContainerWidth)(index + offset)(state, dispatch);
114
+ insertColumn(getEditorContainerWidth)(index + offset)(state, dispatch, editorView);
115
115
  }
116
116
  return true;
117
117
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "5.6.3",
3
+ "version": "5.6.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -173,6 +173,7 @@ export const getDragMenuConfig = (
173
173
  insertColumn(getEditorContainerWidth)(index! + offset)(
174
174
  state,
175
175
  dispatch,
176
+ editorView,
176
177
  );
177
178
  }
178
179
  return true;