@atlaskit/editor-plugin-block-menu 16.0.9 → 16.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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 16.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`83ad56fdbb764`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83ad56fdbb764) -
|
|
8
|
+
Clean up feature gate `platform_editor_block_menu_jira_patch_5`
|
|
9
|
+
|
|
10
|
+
## 16.0.10
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 16.0.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -25,7 +25,6 @@ var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
|
25
25
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
26
26
|
var _toolbarMenuContainer = require("@atlaskit/editor-toolbar/toolbar-menu-container");
|
|
27
27
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
28
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
29
28
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
30
29
|
var _redo = require("@atlaskit/prosemirror-history/redo");
|
|
31
30
|
var _undo = require("@atlaskit/prosemirror-history/undo");
|
|
@@ -319,7 +318,7 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
319
318
|
};
|
|
320
319
|
var handleClickOutside = function handleClickOutside(e) {
|
|
321
320
|
// check if the clicked element was another drag handle or nested dropdown menu, if so don't close the menu
|
|
322
|
-
if (e.target instanceof HTMLElement && (e.target.closest(_styles.DRAG_HANDLE_SELECTOR) || e.target.closest(_styles.NESTED_DROPDOWN_MENU)
|
|
321
|
+
if (e.target instanceof HTMLElement && (e.target.closest(_styles.DRAG_HANDLE_SELECTOR) || e.target.closest(_styles.NESTED_DROPDOWN_MENU))) {
|
|
323
322
|
return;
|
|
324
323
|
}
|
|
325
324
|
closeMenu();
|
|
@@ -16,7 +16,6 @@ import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from
|
|
|
16
16
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
17
17
|
import { ToolbarMenuContainer } from '@atlaskit/editor-toolbar/toolbar-menu-container';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
19
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
21
20
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
22
21
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
@@ -302,7 +301,7 @@ const BlockMenu = ({
|
|
|
302
301
|
};
|
|
303
302
|
const handleClickOutside = e => {
|
|
304
303
|
// check if the clicked element was another drag handle or nested dropdown menu, if so don't close the menu
|
|
305
|
-
if (e.target instanceof HTMLElement && (e.target.closest(DRAG_HANDLE_SELECTOR) || e.target.closest(NESTED_DROPDOWN_MENU)
|
|
304
|
+
if (e.target instanceof HTMLElement && (e.target.closest(DRAG_HANDLE_SELECTOR) || e.target.closest(NESTED_DROPDOWN_MENU))) {
|
|
306
305
|
return;
|
|
307
306
|
}
|
|
308
307
|
closeMenu();
|
|
@@ -17,7 +17,6 @@ import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from
|
|
|
17
17
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import { ToolbarMenuContainer } from '@atlaskit/editor-toolbar/toolbar-menu-container';
|
|
19
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
20
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
22
21
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
23
22
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
@@ -310,7 +309,7 @@ var BlockMenu = function BlockMenu(_ref5) {
|
|
|
310
309
|
};
|
|
311
310
|
var handleClickOutside = function handleClickOutside(e) {
|
|
312
311
|
// check if the clicked element was another drag handle or nested dropdown menu, if so don't close the menu
|
|
313
|
-
if (e.target instanceof HTMLElement && (e.target.closest(DRAG_HANDLE_SELECTOR) || e.target.closest(NESTED_DROPDOWN_MENU)
|
|
312
|
+
if (e.target instanceof HTMLElement && (e.target.closest(DRAG_HANDLE_SELECTOR) || e.target.closest(NESTED_DROPDOWN_MENU))) {
|
|
314
313
|
return;
|
|
315
314
|
}
|
|
316
315
|
closeMenu();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.11",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
38
38
|
"@atlaskit/primitives": "^22.5.0",
|
|
39
39
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^187.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^16.12.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"bind-event-listener": "^3.0.0",
|
|
@@ -55,9 +55,6 @@
|
|
|
55
55
|
"cc_blocks_changeboarding": {
|
|
56
56
|
"type": "boolean"
|
|
57
57
|
},
|
|
58
|
-
"platform_editor_block_menu_jira_patch_5": {
|
|
59
|
-
"type": "boolean"
|
|
60
|
-
},
|
|
61
58
|
"platform_editor_blocks_patch_8": {
|
|
62
59
|
"type": "boolean",
|
|
63
60
|
"referenceOnly": true
|