@atlaskit/editor-plugin-block-menu 9.1.1 → 9.2.0

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,29 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f1eebdf4ed96b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1eebdf4ed96b) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 9.1.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`9b17a2bfdbc92`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b17a2bfdbc92) -
19
+ Cleanup feature gates `platform_editor_block_menu_v2_patch_1` and
20
+ `platform_editor_block_menu_v2_patch_2`. The patch_1 behaviour (inline toolbar uses
21
+ `InlineToolbarMenuItemComponent` and block menu is only closed when
22
+ `extensionLocation === 'block-menu'`) and patch_2 behaviour (max-width styles on block menu,
23
+ tooltip/title-wrap on nested dropdown menus, truncation tooltip on dropdown items) are now
24
+ permanent.
25
+ - Updated dependencies
26
+
3
27
  ## 9.1.1
4
28
 
5
29
  ### Patch Changes
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-menu/blockMenuPlugin",
3
+ "main": "../dist/cjs/entry-points/blockMenuPlugin.js",
4
+ "module": "../dist/esm/entry-points/blockMenuPlugin.js",
5
+ "module:es2019": "../dist/es2019/entry-points/blockMenuPlugin.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/entry-points/blockMenuPlugin.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/entry-points/blockMenuPlugin.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-menu/blockMenuPluginType",
3
+ "main": "../dist/cjs/entry-points/blockMenuPluginType.js",
4
+ "module": "../dist/esm/entry-points/blockMenuPluginType.js",
5
+ "module:es2019": "../dist/es2019/entry-points/blockMenuPluginType.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/entry-points/blockMenuPluginType.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/entry-points/blockMenuPluginType.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "blockMenuPlugin", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _blockMenuPlugin.blockMenuPlugin;
10
+ }
11
+ });
12
+ var _blockMenuPlugin = require("../blockMenuPlugin");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -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, (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && styles.emptyMenuSectionStyles)
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)
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { blockMenuPlugin } from '../blockMenuPlugin';
File without changes
@@ -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, fg('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
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)
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { blockMenuPlugin } from '../blockMenuPlugin';
File without changes
File without changes
@@ -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, fg('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
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)
@@ -0,0 +1 @@
1
+ export { blockMenuPlugin } from '../blockMenuPlugin';
@@ -0,0 +1 @@
1
+ export type { BlockMenuPlugin, RegisterBlockMenuComponent, Parent, BlockMenuPluginOptions, BlockMenuSharedState, } from '../blockMenuPluginType';
@@ -0,0 +1 @@
1
+ export type { TransformNodeMetadata, TransfromNodeTargetType } from '../editor-commands/types';
@@ -0,0 +1 @@
1
+ export { blockMenuPlugin } from '../blockMenuPlugin';
@@ -0,0 +1 @@
1
+ export type { BlockMenuPlugin, RegisterBlockMenuComponent, Parent, BlockMenuPluginOptions, BlockMenuSharedState, } from '../blockMenuPluginType';
@@ -0,0 +1 @@
1
+ export type { TransformNodeMetadata, TransfromNodeTargetType } from '../editor-commands/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,26 +31,26 @@
31
31
  "@atlaskit/browser-apis": "^0.0.1",
32
32
  "@atlaskit/css": "^0.19.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
- "@atlaskit/editor-plugin-block-controls": "^11.2.0",
35
- "@atlaskit/editor-plugin-decorations": "^10.0.0",
36
- "@atlaskit/editor-plugin-selection": "^10.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^8.1.0",
34
+ "@atlaskit/editor-plugin-block-controls": "^11.4.0",
35
+ "@atlaskit/editor-plugin-decorations": "^10.1.0",
36
+ "@atlaskit/editor-plugin-selection": "^10.1.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^8.2.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
- "@atlaskit/editor-shared-styles": "^3.10.0",
40
- "@atlaskit/editor-tables": "^2.9.0",
41
- "@atlaskit/editor-toolbar": "^1.1.0",
39
+ "@atlaskit/editor-shared-styles": "^3.11.0",
40
+ "@atlaskit/editor-tables": "^2.10.0",
41
+ "@atlaskit/editor-toolbar": "^1.4.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": "^79.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^80.3.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.29.0",
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
  },
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-menu/types",
3
+ "main": "../dist/cjs/entry-points/types.js",
4
+ "module": "../dist/esm/entry-points/types.js",
5
+ "module:es2019": "../dist/es2019/entry-points/types.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/entry-points/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/entry-points/types.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }