@atlaskit/editor-plugin-block-menu 6.0.30 → 6.0.32
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 6.0.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b8e6a65567af`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b8e6a65567af) -
|
|
8
|
+
ENGHEALTH-48871: Add missing menu role to block menu.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.0.31
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.0.30
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -23,6 +23,7 @@ var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
25
25
|
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
26
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
27
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
27
28
|
var _blockMenuProvider = require("./block-menu-provider");
|
|
28
29
|
var _BlockMenuRenderer = require("./block-menu-renderer/BlockMenuRenderer");
|
|
@@ -88,6 +89,7 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
|
|
|
88
89
|
};
|
|
89
90
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
90
91
|
testId: "editor-block-menu",
|
|
92
|
+
role: (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
91
93
|
ref: ref,
|
|
92
94
|
xcss: (0, _css.cx)(styles.base, (0, _experiments.editorExperiment)('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
93
95
|
}, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
|
|
@@ -14,6 +14,7 @@ import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from
|
|
|
14
14
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import { useBlockMenu } from './block-menu-provider';
|
|
19
20
|
import { BlockMenuRenderer } from './block-menu-renderer/BlockMenuRenderer';
|
|
@@ -81,6 +82,7 @@ const BlockMenuContent = ({
|
|
|
81
82
|
};
|
|
82
83
|
return /*#__PURE__*/React.createElement(Box, {
|
|
83
84
|
testId: "editor-block-menu",
|
|
85
|
+
role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
84
86
|
ref: ref,
|
|
85
87
|
xcss: cx(styles.base, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
86
88
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
@@ -15,6 +15,7 @@ import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from
|
|
|
15
15
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
17
17
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
18
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
20
|
import { useBlockMenu } from './block-menu-provider';
|
|
20
21
|
import { BlockMenuRenderer } from './block-menu-renderer/BlockMenuRenderer';
|
|
@@ -79,6 +80,7 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
|
|
|
79
80
|
};
|
|
80
81
|
return /*#__PURE__*/React.createElement(Box, {
|
|
81
82
|
testId: "editor-block-menu",
|
|
83
|
+
role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
82
84
|
ref: ref,
|
|
83
85
|
xcss: cx(styles.base, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
84
86
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.32",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-decorations": "^7.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-user-intent": "^5.0.0",
|
|
39
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
39
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
41
41
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
42
42
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
47
47
|
"@atlaskit/primitives": "^18.0.0",
|
|
48
48
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^19.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^11.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"bind-event-listener": "^3.0.0"
|