@atlaskit/editor-plugin-toolbar 9.0.10 → 9.0.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 +8 -0
- package/dist/cjs/pm-plugins/experiences/selection-toolbar-open-experience.js +2 -3
- package/dist/es2019/pm-plugins/experiences/selection-toolbar-open-experience.js +2 -3
- package/dist/esm/pm-plugins/experiences/selection-toolbar-open-experience.js +2 -3
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 9.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`44469412345de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44469412345de) -
|
|
8
|
+
Clean up feature gate `platform_editor_toolbar_open_experience_fix_2`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 9.0.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
10
10
|
var _experiences = require("@atlaskit/editor-common/experiences");
|
|
11
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var pluginKey = new _state.PluginKey('selectionToolbarOpenExperience');
|
|
15
14
|
var START_METHOD = {
|
|
16
15
|
MOUSE_UP: 'mouseUp',
|
|
@@ -88,7 +87,7 @@ var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExp
|
|
|
88
87
|
return true;
|
|
89
88
|
}
|
|
90
89
|
var target = getTarget();
|
|
91
|
-
if (!target
|
|
90
|
+
if (!target) {
|
|
92
91
|
// when target is not found, skip the experience start
|
|
93
92
|
return true;
|
|
94
93
|
}
|
|
@@ -106,7 +105,7 @@ var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExp
|
|
|
106
105
|
reason: ABORT_REASON.SELECTION_CLEARED
|
|
107
106
|
});
|
|
108
107
|
}
|
|
109
|
-
var shouldStartExperience =
|
|
108
|
+
var shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
|
|
110
109
|
if (shouldStartExperience) {
|
|
111
110
|
experience.start({
|
|
112
111
|
method: START_METHOD.KEY_DOWN
|
|
@@ -2,7 +2,6 @@ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
|
2
2
|
import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
const pluginKey = new PluginKey('selectionToolbarOpenExperience');
|
|
7
6
|
const START_METHOD = {
|
|
8
7
|
MOUSE_UP: 'mouseUp',
|
|
@@ -81,7 +80,7 @@ export const getSelectionToolbarOpenExperiencePlugin = ({
|
|
|
81
80
|
return true;
|
|
82
81
|
}
|
|
83
82
|
const target = getTarget();
|
|
84
|
-
if (!target
|
|
83
|
+
if (!target) {
|
|
85
84
|
// when target is not found, skip the experience start
|
|
86
85
|
return true;
|
|
87
86
|
}
|
|
@@ -97,7 +96,7 @@ export const getSelectionToolbarOpenExperiencePlugin = ({
|
|
|
97
96
|
reason: ABORT_REASON.SELECTION_CLEARED
|
|
98
97
|
});
|
|
99
98
|
}
|
|
100
|
-
const shouldStartExperience =
|
|
99
|
+
const shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
|
|
101
100
|
if (shouldStartExperience) {
|
|
102
101
|
experience.start({
|
|
103
102
|
method: START_METHOD.KEY_DOWN
|
|
@@ -3,7 +3,6 @@ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
|
3
3
|
import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
var pluginKey = new PluginKey('selectionToolbarOpenExperience');
|
|
8
7
|
var START_METHOD = {
|
|
9
8
|
MOUSE_UP: 'mouseUp',
|
|
@@ -81,7 +80,7 @@ export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolba
|
|
|
81
80
|
return true;
|
|
82
81
|
}
|
|
83
82
|
var target = getTarget();
|
|
84
|
-
if (!target
|
|
83
|
+
if (!target) {
|
|
85
84
|
// when target is not found, skip the experience start
|
|
86
85
|
return true;
|
|
87
86
|
}
|
|
@@ -99,7 +98,7 @@ export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolba
|
|
|
99
98
|
reason: ABORT_REASON.SELECTION_CLEARED
|
|
100
99
|
});
|
|
101
100
|
}
|
|
102
|
-
var shouldStartExperience =
|
|
101
|
+
var shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
|
|
103
102
|
if (shouldStartExperience) {
|
|
104
103
|
experience.start({
|
|
105
104
|
method: START_METHOD.KEY_DOWN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.11",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"bind-event-listener": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^116.
|
|
40
|
+
"@atlaskit/editor-common": "^116.14.0",
|
|
41
41
|
"react": "^18.2.0",
|
|
42
42
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
43
43
|
},
|
|
@@ -47,9 +47,6 @@
|
|
|
47
47
|
},
|
|
48
48
|
"platform_editor_toolbar_mode_override": {
|
|
49
49
|
"type": "boolean"
|
|
50
|
-
},
|
|
51
|
-
"platform_editor_toolbar_open_experience_fix_2": {
|
|
52
|
-
"type": "boolean"
|
|
53
50
|
}
|
|
54
51
|
},
|
|
55
52
|
"techstack": {
|