@atlaskit/editor-plugin-block-menu 22.0.1 → 23.0.1
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-block-menu
|
|
2
2
|
|
|
3
|
+
## 23.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d341ec6f79916`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d341ec6f79916) -
|
|
8
|
+
Restrict block menu target visibility handling to editors with an external popup mount point under
|
|
9
|
+
platform_editor_popup_target_visibility.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 23.0.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 22.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -184,7 +184,7 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
184
184
|
mountTo = _ref5.mountTo,
|
|
185
185
|
boundariesElement = _ref5.boundariesElement,
|
|
186
186
|
scrollableElement = _ref5.scrollableElement;
|
|
187
|
-
var isPopupTargetVisibilityEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_popup_target_visibility');
|
|
187
|
+
var isPopupTargetVisibilityEnabled = Boolean(mountTo) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_popup_target_visibility');
|
|
188
188
|
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['blockControls', 'userIntent'], function (states) {
|
|
189
189
|
var _states$blockControls, _states$blockControls2, _states$blockControls3, _states$blockControls4, _states$userIntentSta, _states$blockControls5;
|
|
190
190
|
return {
|
|
@@ -169,7 +169,7 @@ const BlockMenu = ({
|
|
|
169
169
|
scrollableElement
|
|
170
170
|
}) => {
|
|
171
171
|
var _openMenuHandleRef$cu, _editorView$dom, _ref2, _api$analytics2;
|
|
172
|
-
const isPopupTargetVisibilityEnabled = isExperimentEnabled('platform_editor_popup_target_visibility');
|
|
172
|
+
const isPopupTargetVisibilityEnabled = Boolean(mountTo) && isExperimentEnabled('platform_editor_popup_target_visibility');
|
|
173
173
|
const {
|
|
174
174
|
menuTriggerBy,
|
|
175
175
|
menuTriggerByNode,
|
|
@@ -175,7 +175,7 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
175
175
|
mountTo = _ref5.mountTo,
|
|
176
176
|
boundariesElement = _ref5.boundariesElement,
|
|
177
177
|
scrollableElement = _ref5.scrollableElement;
|
|
178
|
-
var isPopupTargetVisibilityEnabled = isExperimentEnabled('platform_editor_popup_target_visibility');
|
|
178
|
+
var isPopupTargetVisibilityEnabled = Boolean(mountTo) && isExperimentEnabled('platform_editor_popup_target_visibility');
|
|
179
179
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['blockControls', 'userIntent'], function (states) {
|
|
180
180
|
var _states$blockControls, _states$blockControls2, _states$blockControls3, _states$blockControls4, _states$userIntentSta, _states$blockControls5;
|
|
181
181
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.1",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
29
29
|
"@atlaskit/css": "^1.1.0",
|
|
30
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
31
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
32
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
33
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
34
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
30
|
+
"@atlaskit/editor-plugin-analytics": "^24.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-block-controls": "^25.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-decorations": "^24.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-selection": "^24.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-user-intent": "^22.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
37
37
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
43
|
"@atlaskit/primitives": "^22.5.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^221.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^20.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"bind-event-listener": "^3.0.0",
|
|
49
49
|
"memoize-one": "^6.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@atlaskit/editor-common": "^
|
|
52
|
+
"@atlaskit/editor-common": "^128.1.0",
|
|
53
53
|
"react": "^18.2.0 || ^19.2.0",
|
|
54
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
55
55
|
},
|