@atlaskit/editor-plugin-selection 6.1.7 → 6.1.8
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 +7 -0
- package/dist/cjs/pm-plugins/selection-main.js +1 -1
- package/dist/cjs/pm-plugins/utils.js +1 -1
- package/dist/es2019/pm-plugins/selection-main.js +1 -1
- package/dist/es2019/pm-plugins/utils.js +1 -1
- package/dist/esm/pm-plugins/selection-main.js +1 -1
- package/dist/esm/pm-plugins/utils.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 6.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e389ee54c1f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e389ee54c1f1) -
|
|
8
|
+
Update gates to roll out minor updates faster
|
|
9
|
+
|
|
3
10
|
## 6.1.7
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -33,7 +33,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, dispatch, d
|
|
|
33
33
|
var tr = newEditorState.tr;
|
|
34
34
|
var manualSelection;
|
|
35
35
|
var hideCursorChanged = false;
|
|
36
|
-
var needsHideCursor = (0, _platformFeatureFlags.fg)('
|
|
36
|
+
var needsHideCursor = (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2');
|
|
37
37
|
var needsManualSelection = (0, _experiments.editorExperiment)('platform_editor_element_drag_and_drop_multiselect', true);
|
|
38
38
|
if (needsHideCursor || needsManualSelection) {
|
|
39
39
|
for (var i = transactions.length - 1; i >= 0; i--) {
|
|
@@ -19,7 +19,7 @@ var _hideCursorDecoration = require("./cursor/ui/hide-cursor-decoration");
|
|
|
19
19
|
var getDecorations = exports.getDecorations = function getDecorations(tr, manualSelection, hideCursor) {
|
|
20
20
|
var selection = tr.selection;
|
|
21
21
|
var decorations = [];
|
|
22
|
-
if (hideCursor && (0, _platformFeatureFlags.fg)('
|
|
22
|
+
if (hideCursor && (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2')) {
|
|
23
23
|
decorations.push((0, _hideCursorDecoration.createHideCursorDecoration)());
|
|
24
24
|
}
|
|
25
25
|
if (selection instanceof _state.NodeSelection) {
|
|
@@ -26,7 +26,7 @@ export const createPlugin = (api, dispatch, dispatchAnalyticsEvent, options = {}
|
|
|
26
26
|
} = newEditorState;
|
|
27
27
|
let manualSelection;
|
|
28
28
|
let hideCursorChanged = false;
|
|
29
|
-
const needsHideCursor = fg('
|
|
29
|
+
const needsHideCursor = fg('platform_editor_ai_generic_prep_for_aifc_2');
|
|
30
30
|
const needsManualSelection = editorExperiment('platform_editor_element_drag_and_drop_multiselect', true);
|
|
31
31
|
if (needsHideCursor || needsManualSelection) {
|
|
32
32
|
for (let i = transactions.length - 1; i >= 0; i--) {
|
|
@@ -10,7 +10,7 @@ import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
|
|
|
10
10
|
export const getDecorations = (tr, manualSelection, hideCursor) => {
|
|
11
11
|
let selection = tr.selection;
|
|
12
12
|
const decorations = [];
|
|
13
|
-
if (hideCursor && fg('
|
|
13
|
+
if (hideCursor && fg('platform_editor_ai_generic_prep_for_aifc_2')) {
|
|
14
14
|
decorations.push(createHideCursorDecoration());
|
|
15
15
|
}
|
|
16
16
|
if (selection instanceof NodeSelection) {
|
|
@@ -27,7 +27,7 @@ export var createPlugin = function createPlugin(api, dispatch, dispatchAnalytics
|
|
|
27
27
|
var tr = newEditorState.tr;
|
|
28
28
|
var manualSelection;
|
|
29
29
|
var hideCursorChanged = false;
|
|
30
|
-
var needsHideCursor = fg('
|
|
30
|
+
var needsHideCursor = fg('platform_editor_ai_generic_prep_for_aifc_2');
|
|
31
31
|
var needsManualSelection = editorExperiment('platform_editor_element_drag_and_drop_multiselect', true);
|
|
32
32
|
if (needsHideCursor || needsManualSelection) {
|
|
33
33
|
for (var i = transactions.length - 1; i >= 0; i--) {
|
|
@@ -11,7 +11,7 @@ import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
|
|
|
11
11
|
export var getDecorations = function getDecorations(tr, manualSelection, hideCursor) {
|
|
12
12
|
var selection = tr.selection;
|
|
13
13
|
var decorations = [];
|
|
14
|
-
if (hideCursor && fg('
|
|
14
|
+
if (hideCursor && fg('platform_editor_ai_generic_prep_for_aifc_2')) {
|
|
15
15
|
decorations.push(createHideCursorDecoration());
|
|
16
16
|
}
|
|
17
17
|
if (selection instanceof NodeSelection) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.8",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
26
26
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^14.6.0",
|
|
29
29
|
"@atlaskit/tokens": "^8.4.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^110.
|
|
33
|
+
"@atlaskit/editor-common": "^110.38.0",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"techstack": {
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"platform_editor_nested_tables_gap_cursor": {
|
|
82
82
|
"type": "boolean"
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"platform_editor_ai_generic_prep_for_aifc_2": {
|
|
85
85
|
"type": "boolean"
|
|
86
86
|
},
|
|
87
|
-
"
|
|
87
|
+
"platform_editor_fix_list_item_nav_bug_in_layout": {
|
|
88
88
|
"type": "boolean"
|
|
89
89
|
}
|
|
90
90
|
}
|