@atlaskit/editor-plugin-block-menu 9.1.1 → 9.1.2
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
|
+
## 9.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b17a2bfdbc92`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b17a2bfdbc92) -
|
|
8
|
+
Cleanup feature gates `platform_editor_block_menu_v2_patch_1` and
|
|
9
|
+
`platform_editor_block_menu_v2_patch_2`. The patch_1 behaviour (inline toolbar uses
|
|
10
|
+
`InlineToolbarMenuItemComponent` and block menu is only closed when
|
|
11
|
+
`extensionLocation === 'block-menu'`) and patch_2 behaviour (max-width styles on block menu,
|
|
12
|
+
tooltip/title-wrap on nested dropdown menus, truncation tooltip on dropdown items) are now
|
|
13
|
+
permanent.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 9.1.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
22
22
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
23
23
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
27
26
|
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
28
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -104,7 +103,7 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
|
|
|
104
103
|
testId: _blockMenu.BLOCK_MENU_TEST_ID,
|
|
105
104
|
role: (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
106
105
|
ref: ref,
|
|
107
|
-
xcss: (0, _css.cx)(styles.base,
|
|
106
|
+
xcss: (0, _css.cx)(styles.base, styles.maxWidthStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
108
107
|
}, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
|
|
109
108
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
110
109
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -13,7 +13,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
13
13
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
|
|
14
14
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
15
15
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
17
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
19
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -97,7 +96,7 @@ const BlockMenuContent = ({
|
|
|
97
96
|
testId: BLOCK_MENU_TEST_ID,
|
|
98
97
|
role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
99
98
|
ref: ref,
|
|
100
|
-
xcss: cx(styles.base,
|
|
99
|
+
xcss: cx(styles.base, styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
101
100
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
102
101
|
type: ArrowKeyNavigationType.MENU
|
|
103
102
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -14,7 +14,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
14
14
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
|
|
15
15
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
16
16
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
19
18
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
20
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -95,7 +94,7 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
|
|
|
95
94
|
testId: BLOCK_MENU_TEST_ID,
|
|
96
95
|
role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
|
|
97
96
|
ref: ref,
|
|
98
|
-
xcss: cx(styles.base,
|
|
97
|
+
xcss: cx(styles.base, styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
|
|
99
98
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
100
99
|
type: ArrowKeyNavigationType.MENU
|
|
101
100
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
41
|
+
"@atlaskit/editor-toolbar": "^1.2.0",
|
|
42
42
|
"@atlaskit/flag": "^17.11.0",
|
|
43
43
|
"@atlaskit/icon": "^34.5.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^19.0.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^80.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^13.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"bind-event-listener": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^114.
|
|
53
|
+
"@atlaskit/editor-common": "^114.30.0",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
56
56
|
},
|
|
@@ -94,9 +94,6 @@
|
|
|
94
94
|
"platform_editor_adf_with_localid": {
|
|
95
95
|
"type": "boolean"
|
|
96
96
|
},
|
|
97
|
-
"platform_editor_block_menu_v2_patch_2": {
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
},
|
|
100
97
|
"platform_editor_block_menu_jira_patch_1": {
|
|
101
98
|
"type": "boolean"
|
|
102
99
|
},
|