@atlaskit/editor-plugin-insert-block 2.4.27 → 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 +16 -0
- package/dist/cjs/insertBlockPlugin.js +1 -1
- package/dist/cjs/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -2
- package/dist/es2019/insertBlockPlugin.js +1 -1
- package/dist/es2019/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -2
- package/dist/esm/insertBlockPlugin.js +1 -1
- package/dist/esm/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -2
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
11
|
+
## 2.4.28
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#99274](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99274)
|
|
16
|
+
[`b4dd134e0caaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b4dd134e0caaa) -
|
|
17
|
+
ED-25961 Add analytics for clear formatting and adding blockquote from text styles menu
|
|
18
|
+
|
|
3
19
|
## 2.4.27
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -86,7 +86,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
|
|
|
86
86
|
return insertPanel(_analytics.INPUT_METHOD.TOOLBAR);
|
|
87
87
|
}
|
|
88
88
|
if (name === _consts.BLOCK_QUOTE.name && insertBlockQuote) {
|
|
89
|
-
return insertBlockQuote(_analytics.INPUT_METHOD.
|
|
89
|
+
return insertBlockQuote(_analytics.INPUT_METHOD.INSERT_MENU);
|
|
90
90
|
}
|
|
91
91
|
return function () {
|
|
92
92
|
return false;
|
|
@@ -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:
|
|
22
|
+
fitHeight: _InsertMenu.DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER,
|
|
24
23
|
fitWidth: 350,
|
|
25
24
|
offset: [0, 3],
|
|
26
25
|
mountTo: props.popupsMountPoint,
|
|
@@ -75,7 +75,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
|
|
|
75
75
|
return insertPanel(INPUT_METHOD.TOOLBAR);
|
|
76
76
|
}
|
|
77
77
|
if (name === BLOCK_QUOTE.name && insertBlockQuote) {
|
|
78
|
-
return insertBlockQuote(INPUT_METHOD.
|
|
78
|
+
return insertBlockQuote(INPUT_METHOD.INSERT_MENU);
|
|
79
79
|
}
|
|
80
80
|
return () => false;
|
|
81
81
|
};
|
|
@@ -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:
|
|
12
|
+
fitHeight: DEFAULT_HEIGHT + FIT_HEIGHT_BUFFER,
|
|
14
13
|
fitWidth: 350,
|
|
15
14
|
offset: [0, 3],
|
|
16
15
|
mountTo: props.popupsMountPoint,
|
|
@@ -75,7 +75,7 @@ function handleInsertBlockType(insertCodeBlock, insertPanel, insertBlockQuote) {
|
|
|
75
75
|
return insertPanel(INPUT_METHOD.TOOLBAR);
|
|
76
76
|
}
|
|
77
77
|
if (name === BLOCK_QUOTE.name && insertBlockQuote) {
|
|
78
|
-
return insertBlockQuote(INPUT_METHOD.
|
|
78
|
+
return insertBlockQuote(INPUT_METHOD.INSERT_MENU);
|
|
79
79
|
}
|
|
80
80
|
return function () {
|
|
81
81
|
return false;
|
|
@@ -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:
|
|
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.
|
|
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
|
},
|