@atlaskit/editor-plugin-selection 30.0.12 → 30.0.14
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-selection
|
|
2
2
|
|
|
3
|
+
## 30.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`861d385203ae7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/861d385203ae7) -
|
|
8
|
+
[FFCLEANUP-144039] remove the `platform_editor_lovability_navigation_fixes` experiment to improve
|
|
9
|
+
expand keyboard navigation
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 30.0.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 30.0.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ exports.createOnKeydown = createOnKeydown;
|
|
|
7
7
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
8
8
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
9
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
11
10
|
/*
|
|
12
11
|
* The way expand was built, no browser recognize selection on it.
|
|
13
12
|
* For instance, when a selection going to a "collapsed" expand
|
|
@@ -124,7 +123,7 @@ var isNavigatingVerticallyWhenCursorIsInsideInlineNode = function isNavigatingVe
|
|
|
124
123
|
return false;
|
|
125
124
|
}
|
|
126
125
|
var isNavigatingInlineNodeDownward = event.key === 'ArrowDown' && Boolean((_selection$$cursor$no3 = selection.$cursor.nodeBefore) === null || _selection$$cursor$no3 === void 0 ? void 0 : _selection$$cursor$no3.isInline) && Boolean((_selection$$cursor$no4 = selection.$cursor.nodeAfter) === null || _selection$$cursor$no4 === void 0 ? void 0 : _selection$$cursor$no4.isInline);
|
|
127
|
-
if (isNavigatingInlineNodeDownward && (0, _expand.getNextNodeExpandPos)(view, selection) !== undefined
|
|
126
|
+
if (isNavigatingInlineNodeDownward && (0, _expand.getNextNodeExpandPos)(view, selection) !== undefined) {
|
|
128
127
|
return false;
|
|
129
128
|
}
|
|
130
129
|
return isNavigatingInlineNodeDownward;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { expandedState, getNextNodeExpandPos } from '@atlaskit/editor-common/expand';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
* The way expand was built, no browser recognize selection on it.
|
|
@@ -122,7 +121,7 @@ const isNavigatingVerticallyWhenCursorIsInsideInlineNode = (view, event) => {
|
|
|
122
121
|
return false;
|
|
123
122
|
}
|
|
124
123
|
const isNavigatingInlineNodeDownward = event.key === 'ArrowDown' && Boolean((_selection$$cursor$no3 = selection.$cursor.nodeBefore) === null || _selection$$cursor$no3 === void 0 ? void 0 : _selection$$cursor$no3.isInline) && Boolean((_selection$$cursor$no4 = selection.$cursor.nodeAfter) === null || _selection$$cursor$no4 === void 0 ? void 0 : _selection$$cursor$no4.isInline);
|
|
125
|
-
if (isNavigatingInlineNodeDownward && getNextNodeExpandPos(view, selection) !== undefined
|
|
124
|
+
if (isNavigatingInlineNodeDownward && getNextNodeExpandPos(view, selection) !== undefined) {
|
|
126
125
|
return false;
|
|
127
126
|
}
|
|
128
127
|
return isNavigatingInlineNodeDownward;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { expandedState, getNextNodeExpandPos } from '@atlaskit/editor-common/expand';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
* The way expand was built, no browser recognize selection on it.
|
|
@@ -119,7 +118,7 @@ var isNavigatingVerticallyWhenCursorIsInsideInlineNode = function isNavigatingVe
|
|
|
119
118
|
return false;
|
|
120
119
|
}
|
|
121
120
|
var isNavigatingInlineNodeDownward = event.key === 'ArrowDown' && Boolean((_selection$$cursor$no3 = selection.$cursor.nodeBefore) === null || _selection$$cursor$no3 === void 0 ? void 0 : _selection$$cursor$no3.isInline) && Boolean((_selection$$cursor$no4 = selection.$cursor.nodeAfter) === null || _selection$$cursor$no4 === void 0 ? void 0 : _selection$$cursor$no4.isInline);
|
|
122
|
-
if (isNavigatingInlineNodeDownward && getNextNodeExpandPos(view, selection) !== undefined
|
|
121
|
+
if (isNavigatingInlineNodeDownward && getNextNodeExpandPos(view, selection) !== undefined) {
|
|
123
122
|
return false;
|
|
124
123
|
}
|
|
125
124
|
return isNavigatingInlineNodeDownward;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.14",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
24
24
|
"@atlaskit/editor-plugin-interaction": "^44.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
26
|
-
"@atlaskit/editor-shared-styles": "^5.
|
|
26
|
+
"@atlaskit/editor-shared-styles": "^5.1.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
28
28
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
29
29
|
"@atlaskit/primitives": "^22.6.0",
|
|
30
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
30
|
+
"@atlaskit/tmp-editor-statsig": "^258.0.0",
|
|
31
31
|
"@atlaskit/tokens": "^20.9.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0"
|
|
33
33
|
},
|