@atlaskit/editor-plugin-block-menu 7.0.7 → 7.0.8
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-block-menu
|
|
2
2
|
|
|
3
|
+
## 7.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c66b769c701fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c66b769c701fa) -
|
|
8
|
+
[EDITOR-5935] Fix up requriements and design changes
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.0.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.FormatMenuSection = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
10
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
10
11
|
var _checkIsFormatMenuHidden = require("./utils/checkIsFormatMenuHidden");
|
|
11
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
13
|
var FormatMenuSection = exports.FormatMenuSection = function FormatMenuSection(_ref) {
|
|
@@ -18,5 +19,7 @@ var FormatMenuSection = exports.FormatMenuSection = function FormatMenuSection(_
|
|
|
18
19
|
if (isFormatMenuHidden()) {
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection,
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
|
|
23
|
+
hasSeparator: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
24
|
+
}, children);
|
|
22
25
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
4
|
import { checkIsFormatMenuHidden } from './utils/checkIsFormatMenuHidden';
|
|
4
5
|
export const FormatMenuSection = ({
|
|
5
6
|
children,
|
|
@@ -11,5 +12,7 @@ export const FormatMenuSection = ({
|
|
|
11
12
|
if (isFormatMenuHidden()) {
|
|
12
13
|
return null;
|
|
13
14
|
}
|
|
14
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection,
|
|
15
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
16
|
+
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
17
|
+
}, children);
|
|
15
18
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
3
4
|
import { checkIsFormatMenuHidden } from './utils/checkIsFormatMenuHidden';
|
|
4
5
|
export var FormatMenuSection = function FormatMenuSection(_ref) {
|
|
5
6
|
var children = _ref.children,
|
|
@@ -10,5 +11,7 @@ export var FormatMenuSection = function FormatMenuSection(_ref) {
|
|
|
10
11
|
if (isFormatMenuHidden()) {
|
|
11
12
|
return null;
|
|
12
13
|
}
|
|
13
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection,
|
|
14
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
15
|
+
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
16
|
+
}, children);
|
|
14
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.8",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^18.0.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^40.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^40.1.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.1.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"bind-event-listener": "^3.0.0"
|