@atlaskit/editor-plugin-table 5.7.8 → 5.7.9

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.7.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#65636](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65636) [`de5fd6bce7c5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de5fd6bce7c5) - [ux] update offset so multiple lines row drag preview could be looks properly
8
+
3
9
  ## 5.7.8
4
10
 
5
11
  ### Patch Changes
@@ -92,13 +92,13 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
92
92
  }
93
93
  if (direction === 'row') {
94
94
  return {
95
- x: 16,
96
- y: 16
95
+ x: 12,
96
+ y: rect.height / 2
97
97
  };
98
98
  } else {
99
99
  return {
100
- x: rect.width / 2 + 16,
101
- y: 16
100
+ x: rect.width / 2 + 4,
101
+ y: 12
102
102
  };
103
103
  }
104
104
  },
@@ -77,13 +77,13 @@ export const DragHandle = ({
77
77
  }
78
78
  if (direction === 'row') {
79
79
  return {
80
- x: 16,
81
- y: 16
80
+ x: 12,
81
+ y: rect.height / 2
82
82
  };
83
83
  } else {
84
84
  return {
85
- x: rect.width / 2 + 16,
86
- y: 16
85
+ x: rect.width / 2 + 4,
86
+ y: 12
87
87
  };
88
88
  }
89
89
  },
@@ -82,13 +82,13 @@ export var DragHandle = function DragHandle(_ref) {
82
82
  }
83
83
  if (direction === 'row') {
84
84
  return {
85
- x: 16,
86
- y: 16
85
+ x: 12,
86
+ y: rect.height / 2
87
87
  };
88
88
  } else {
89
89
  return {
90
- x: rect.width / 2 + 16,
91
- y: 16
90
+ x: rect.width / 2 + 4,
91
+ y: 12
92
92
  };
93
93
  }
94
94
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "5.7.8",
3
+ "version": "5.7.9",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -69,7 +69,6 @@
69
69
  "@atlaskit/editor-plugin-grid": "^0.3.0",
70
70
  "@atlaskit/editor-plugin-hyperlink": "^0.6.0",
71
71
  "@atlaskit/visual-regression": "*",
72
- "@atlaskit/webdriver-runner": "*",
73
72
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
74
73
  "@atlassian/feature-flags-test-utils": "^0.1.2",
75
74
  "@testing-library/dom": "^8.17.1",
@@ -110,9 +110,9 @@ export const DragHandle = ({
110
110
  container.style.left = `-${rect.width - 0.0001}px`;
111
111
  }
112
112
  if (direction === 'row') {
113
- return { x: 16, y: 16 };
113
+ return { x: 12, y: rect.height / 2 };
114
114
  } else {
115
- return { x: rect.width / 2 + 16, y: 16 };
115
+ return { x: rect.width / 2 + 4, y: 12 };
116
116
  }
117
117
  },
118
118
  render: function render({ container }) {