@atlaskit/editor-plugin-insert-block 2.4.28 → 2.4.29

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,13 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 2.4.29
4
+
5
+ ### Patch Changes
6
+
7
+ - [#99549](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99549)
8
+ [`df909788e15e8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df909788e15e8) -
9
+ [ux] Cleanup feature flag for consistent insert menu behaviour.
10
+
3
11
  ## 2.4.28
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.BlockInsertElementBrowser = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _ui = require("@atlaskit/editor-common/ui");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _InsertMenu = _interopRequireWildcard(require("../ElementBrowser/InsertMenu"));
13
12
  var _dropdownButton = require("./dropdown-button");
14
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -20,7 +19,7 @@ var FIT_HEIGHT_BUFFER = 100;
20
19
  var BlockInsertElementBrowser = exports.BlockInsertElementBrowser = function BlockInsertElementBrowser(props) {
21
20
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.open && /*#__PURE__*/_react.default.createElement(_ui.Popup, {
22
21
  target: props.plusButtonRef,
23
- fitHeight: (0, _platformFeatureFlags.fg)('platform_editor_consistent_insert_menu') ? _InsertMenu.DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER : 500,
22
+ fitHeight: _InsertMenu.DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER,
24
23
  fitWidth: 350,
25
24
  offset: [0, 3],
26
25
  mountTo: props.popupsMountPoint,
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Popup } from '@atlaskit/editor-common/ui';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import InsertMenu, { DEFAULT_HEIGHT } from '../ElementBrowser/InsertMenu';
5
4
  import { DropDownButton } from './dropdown-button';
6
5
  // This determines how the popup should fit. We prefer the insert menu
@@ -10,7 +9,7 @@ const FIT_HEIGHT_BUFFER = 100;
10
9
  export const BlockInsertElementBrowser = props => {
11
10
  return /*#__PURE__*/React.createElement(React.Fragment, null, props.open && /*#__PURE__*/React.createElement(Popup, {
12
11
  target: props.plusButtonRef,
13
- fitHeight: fg('platform_editor_consistent_insert_menu') ? DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER : 500,
12
+ fitHeight: DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER,
14
13
  fitWidth: 350,
15
14
  offset: [0, 3],
16
15
  mountTo: props.popupsMountPoint,
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Popup } from '@atlaskit/editor-common/ui';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import InsertMenu, { DEFAULT_HEIGHT } from '../ElementBrowser/InsertMenu';
5
4
  import { DropDownButton } from './dropdown-button';
6
5
  // This determines how the popup should fit. We prefer the insert menu
@@ -10,7 +9,7 @@ var FIT_HEIGHT_BUFFER = 100;
10
9
  export var BlockInsertElementBrowser = function BlockInsertElementBrowser(props) {
11
10
  return /*#__PURE__*/React.createElement(React.Fragment, null, props.open && /*#__PURE__*/React.createElement(Popup, {
12
11
  target: props.plusButtonRef,
13
- fitHeight: fg('platform_editor_consistent_insert_menu') ? DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER : 500,
12
+ fitHeight: DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER,
14
13
  fitWidth: 350,
15
14
  offset: [0, 3],
16
15
  mountTo: props.popupsMountPoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "2.4.28",
3
+ "version": "2.4.29",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -130,9 +130,6 @@
130
130
  "platform_editor_toolbar_responsive_fixes": {
131
131
  "type": "boolean"
132
132
  },
133
- "platform_editor_consistent_insert_menu": {
134
- "type": "boolean"
135
- },
136
133
  "platform_editor_preload_insert_menu": {
137
134
  "type": "boolean"
138
135
  },