@atlaskit/editor-plugin-selection 2.2.9 → 2.2.11
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
|
+
## 2.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.2.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#168742](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/168742)
|
|
14
|
+
[`43b55fe50be89`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43b55fe50be89) -
|
|
15
|
+
Add experiment to show no cursor on initial edit page
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.2.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
8
8
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
9
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
13
|
var _types = require("../types");
|
|
13
14
|
var _actions = require("./actions");
|
|
@@ -77,7 +78,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, dispatch, d
|
|
|
77
78
|
// Do not show selection decorations for live pages where the user has not
|
|
78
79
|
// interacted with the page. We do not show cursor until interaction and we do not
|
|
79
80
|
// want to show selections either.
|
|
80
|
-
if (options.__livePage && ((0, _platformFeatureFlags.fg)('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && (0, _platformFeatureFlags.fg)('platform_editor_no_cursor_on_live_doc_init')) {
|
|
81
|
+
if ((options.__livePage || (0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && ((0, _platformFeatureFlags.fg)('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && (0, _platformFeatureFlags.fg)('platform_editor_no_cursor_on_live_doc_init')) {
|
|
81
82
|
return _view.DecorationSet.empty;
|
|
82
83
|
}
|
|
83
84
|
return (0, _pluginFactory.getPluginState)(state).decorationSet;
|
|
@@ -2,6 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
7
|
import { selectionPluginKey } from '../types';
|
|
7
8
|
import { SelectionActionTypes } from './actions';
|
|
@@ -70,7 +71,7 @@ export const createPlugin = (api, dispatch, dispatchAnalyticsEvent, options = {}
|
|
|
70
71
|
// Do not show selection decorations for live pages where the user has not
|
|
71
72
|
// interacted with the page. We do not show cursor until interaction and we do not
|
|
72
73
|
// want to show selections either.
|
|
73
|
-
if (options.__livePage && (fg('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && fg('platform_editor_no_cursor_on_live_doc_init')) {
|
|
74
|
+
if ((options.__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && (fg('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && fg('platform_editor_no_cursor_on_live_doc_init')) {
|
|
74
75
|
return DecorationSet.empty;
|
|
75
76
|
}
|
|
76
77
|
return getPluginState(state).decorationSet;
|
|
@@ -2,6 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
7
|
import { selectionPluginKey } from '../types';
|
|
7
8
|
import { SelectionActionTypes } from './actions';
|
|
@@ -71,7 +72,7 @@ export var createPlugin = function createPlugin(api, dispatch, dispatchAnalytics
|
|
|
71
72
|
// Do not show selection decorations for live pages where the user has not
|
|
72
73
|
// interacted with the page. We do not show cursor until interaction and we do not
|
|
73
74
|
// want to show selections either.
|
|
74
|
-
if (options.__livePage && (fg('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && fg('platform_editor_no_cursor_on_live_doc_init')) {
|
|
75
|
+
if ((options.__livePage || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)) && (fg('platform_editor_interaction_api_refactor') ? interactionState === 'hasNotHadInteraction' : !hasHadInteraction) && fg('platform_editor_no_cursor_on_live_doc_init')) {
|
|
75
76
|
return DecorationSet.empty;
|
|
76
77
|
}
|
|
77
78
|
return getPluginState(state).decorationSet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"runReact18": true
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaskit/editor-common": "^106.
|
|
23
|
+
"@atlaskit/editor-common": "^106.6.0",
|
|
24
24
|
"@atlaskit/editor-plugin-interaction": "^2.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
26
26
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^7.0.0",
|
|
30
30
|
"@atlaskit/tokens": "^5.1.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0"
|
|
32
32
|
},
|