@atlaskit/editor-tables 2.3.16 → 2.3.17
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-tables
|
|
2
2
|
|
|
3
|
+
## 2.3.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59009) [`f7e9d874ff37`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7e9d874ff37) - Fix table expand selection when `platform.editor.table-shift-click-selection-backward` FF is enabled
|
|
8
|
+
|
|
3
9
|
## 2.3.16
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"outDir": "../dist",
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -48,7 +48,7 @@ var select = function select(type) {
|
|
|
48
48
|
right: right,
|
|
49
49
|
bottom: index + 1
|
|
50
50
|
});
|
|
51
|
-
var isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos;
|
|
51
|
+
var isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
52
52
|
if (isBackwardSelection && isPrevRowSelection) {
|
|
53
53
|
var _head = table.start + cellsInFirstRow[0];
|
|
54
54
|
var _anchor = prevSelection.$anchorCell.pos;
|
|
@@ -73,7 +73,7 @@ var select = function select(type) {
|
|
|
73
73
|
right: index + 1,
|
|
74
74
|
bottom: bottom
|
|
75
75
|
});
|
|
76
|
-
var _isBackwardSelection = _targetRowCells[0] < prevSelection.$head.pos;
|
|
76
|
+
var _isBackwardSelection = _targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
77
77
|
if (_isBackwardSelection && isPrevRowSelection) {
|
|
78
78
|
var _head2 = table.start + cellsInFirstRow[0];
|
|
79
79
|
var _anchor2 = prevSelection.$anchorCell.pos;
|
|
@@ -40,7 +40,7 @@ const select = type => (index, expand) => tr => {
|
|
|
40
40
|
right,
|
|
41
41
|
bottom: index + 1
|
|
42
42
|
});
|
|
43
|
-
const isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos;
|
|
43
|
+
const isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
44
44
|
if (isBackwardSelection && isPrevRowSelection) {
|
|
45
45
|
const head = table.start + cellsInFirstRow[0];
|
|
46
46
|
const anchor = prevSelection.$anchorCell.pos;
|
|
@@ -65,7 +65,7 @@ const select = type => (index, expand) => tr => {
|
|
|
65
65
|
right: index + 1,
|
|
66
66
|
bottom
|
|
67
67
|
});
|
|
68
|
-
const isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos;
|
|
68
|
+
const isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
69
69
|
if (isBackwardSelection && isPrevRowSelection) {
|
|
70
70
|
const head = table.start + cellsInFirstRow[0];
|
|
71
71
|
const anchor = prevSelection.$anchorCell.pos;
|
|
@@ -42,7 +42,7 @@ var select = function select(type) {
|
|
|
42
42
|
right: right,
|
|
43
43
|
bottom: index + 1
|
|
44
44
|
});
|
|
45
|
-
var isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos;
|
|
45
|
+
var isBackwardSelection = targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
46
46
|
if (isBackwardSelection && isPrevRowSelection) {
|
|
47
47
|
var _head = table.start + cellsInFirstRow[0];
|
|
48
48
|
var _anchor = prevSelection.$anchorCell.pos;
|
|
@@ -67,7 +67,7 @@ var select = function select(type) {
|
|
|
67
67
|
right: index + 1,
|
|
68
68
|
bottom: bottom
|
|
69
69
|
});
|
|
70
|
-
var _isBackwardSelection = _targetRowCells[0] < prevSelection.$head.pos;
|
|
70
|
+
var _isBackwardSelection = _targetRowCells[0] < prevSelection.$head.pos - table.start;
|
|
71
71
|
if (_isBackwardSelection && isPrevRowSelection) {
|
|
72
72
|
var _head2 = table.start + cellsInFirstRow[0];
|
|
73
73
|
var _anchor2 = prevSelection.$anchorCell.pos;
|
package/package.json
CHANGED