@atlaskit/editor-plugin-table 5.7.7 → 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,19 @@
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
+
9
+ ## 5.7.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [#65572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65572) [`a13e13b8eb7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a13e13b8eb7d) - [ux] Increases drag menu width by 10px to ensure "Move column right" option fits on one line.
14
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031) [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) - ED-21609 Update adf-schema to 35.3.0
15
+ - Updated dependencies
16
+
3
17
  ## 5.7.7
4
18
 
5
19
  ### 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
  },
@@ -70,6 +70,6 @@ var STICKY_HEADER_TOGGLE_TOLERANCE_MS = exports.STICKY_HEADER_TOGGLE_TOLERANCE_M
70
70
  // table margins and padding. For example a guideline at 1800px and the view at 1860px wide, means the guidelines is visible
71
71
  // BUT it cannot be snapped to during resize due to padding being applied to the resizer wrapper. This accommodates that difference.
72
72
  var TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = exports.TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
73
- var dragMenuDropdownWidth = exports.dragMenuDropdownWidth = 240;
73
+ var dragMenuDropdownWidth = exports.dragMenuDropdownWidth = 250;
74
74
  var dragTableInsertColumnButtonSize = exports.dragTableInsertColumnButtonSize = 16;
75
75
  var dropTargetExtendedWidth = exports.dropTargetExtendedWidth = 150;
@@ -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
  },
@@ -65,6 +65,6 @@ export const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
65
65
  // table margins and padding. For example a guideline at 1800px and the view at 1860px wide, means the guidelines is visible
66
66
  // BUT it cannot be snapped to during resize due to padding being applied to the resizer wrapper. This accommodates that difference.
67
67
  export const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
68
- export const dragMenuDropdownWidth = 240;
68
+ export const dragMenuDropdownWidth = 250;
69
69
  export const dragTableInsertColumnButtonSize = 16;
70
70
  export const dropTargetExtendedWidth = 150;
@@ -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
  },
@@ -65,6 +65,6 @@ export var STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
65
65
  // table margins and padding. For example a guideline at 1800px and the view at 1860px wide, means the guidelines is visible
66
66
  // BUT it cannot be snapped to during resize due to padding being applied to the resizer wrapper. This accommodates that difference.
67
67
  export var TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
68
- export var dragMenuDropdownWidth = 240;
68
+ export var dragMenuDropdownWidth = 250;
69
69
  export var dragTableInsertColumnButtonSize = 16;
70
70
  export var dropTargetExtendedWidth = 150;
@@ -52,6 +52,6 @@ export declare const TABLE_HIGHLIGHT_GAP = 10;
52
52
  export declare const TABLE_HIGHLIGHT_TOLERANCE = 2;
53
53
  export declare const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
54
54
  export declare const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
55
- export declare const dragMenuDropdownWidth = 240;
55
+ export declare const dragMenuDropdownWidth = 250;
56
56
  export declare const dragTableInsertColumnButtonSize = 16;
57
57
  export declare const dropTargetExtendedWidth = 150;
@@ -52,6 +52,6 @@ export declare const TABLE_HIGHLIGHT_GAP = 10;
52
52
  export declare const TABLE_HIGHLIGHT_TOLERANCE = 2;
53
53
  export declare const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
54
54
  export declare const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
55
- export declare const dragMenuDropdownWidth = 240;
55
+ export declare const dragMenuDropdownWidth = 250;
56
56
  export declare const dragTableInsertColumnButtonSize = 16;
57
57
  export declare const dropTargetExtendedWidth = 150;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "5.7.7",
3
+ "version": "5.7.9",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,9 +28,9 @@
28
28
  "runReact18": false
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^35.2.0",
32
- "@atlaskit/custom-steps": "^0.0.10",
33
- "@atlaskit/editor-common": "^76.33.0",
31
+ "@atlaskit/adf-schema": "^35.3.0",
32
+ "@atlaskit/custom-steps": "^0.0.11",
33
+ "@atlaskit/editor-common": "^76.35.0",
34
34
  "@atlaskit/editor-palette": "1.5.2",
35
35
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
36
36
  "@atlaskit/editor-plugin-content-insertion": "^0.1.0",
@@ -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 }) {
package/src/ui/consts.ts CHANGED
@@ -137,6 +137,6 @@ export const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
137
137
  // BUT it cannot be snapped to during resize due to padding being applied to the resizer wrapper. This accommodates that difference.
138
138
  export const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
139
139
 
140
- export const dragMenuDropdownWidth = 240;
140
+ export const dragMenuDropdownWidth = 250;
141
141
  export const dragTableInsertColumnButtonSize = 16;
142
142
  export const dropTargetExtendedWidth = 150;