@atlaskit/editor-plugin-toolbar-lists-indentation 8.0.7 → 8.0.9
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 8.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.0.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`38dee2c85c456`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38dee2c85c456) -
|
|
14
|
+
[ux] [EDITOR-4486] render tooltips for ToolbarDropdownMenu using new TooltipComponent prop behind
|
|
15
|
+
platform_editor_hide_toolbar_tooltips_fix
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 8.0.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
11
11
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
12
12
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
13
13
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
14
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
15
|
var _hooks2 = require("../utils/hooks");
|
|
15
16
|
var ListsIndentationMenu = exports.ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
16
17
|
var children = _ref.children,
|
|
@@ -37,6 +38,19 @@ var ListsIndentationMenu = exports.ListsIndentationMenu = function ListsIndentat
|
|
|
37
38
|
orderedListDisabled = _useSharedPluginState.orderedListDisabled,
|
|
38
39
|
taskListActive = _useSharedPluginState.taskListActive;
|
|
39
40
|
var allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !taskListActive;
|
|
41
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
43
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
|
|
44
|
+
label: formatMessage(_lists.messages.lists)
|
|
45
|
+
}),
|
|
46
|
+
isDisabled: allItemsDisabled,
|
|
47
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
48
|
+
label: formatMessage(_lists.messages.lists),
|
|
49
|
+
tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
50
|
+
content: formatMessage(_lists.messages.lists)
|
|
51
|
+
})
|
|
52
|
+
}, children);
|
|
53
|
+
}
|
|
40
54
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
41
55
|
content: formatMessage(_lists.messages.lists)
|
|
42
56
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
@@ -4,6 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { messages } from '@atlaskit/editor-common/lists';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { MoreItemsIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
8
|
import { useIndentationState } from '../utils/hooks';
|
|
8
9
|
export const ListsIndentationMenu = ({
|
|
9
10
|
children,
|
|
@@ -34,6 +35,19 @@ export const ListsIndentationMenu = ({
|
|
|
34
35
|
};
|
|
35
36
|
});
|
|
36
37
|
const allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !taskListActive;
|
|
38
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
40
|
+
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
41
|
+
label: formatMessage(messages.lists)
|
|
42
|
+
}),
|
|
43
|
+
isDisabled: allItemsDisabled,
|
|
44
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
45
|
+
label: formatMessage(messages.lists),
|
|
46
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
47
|
+
content: formatMessage(messages.lists)
|
|
48
|
+
})
|
|
49
|
+
}, children);
|
|
50
|
+
}
|
|
37
51
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
38
52
|
content: formatMessage(messages.lists)
|
|
39
53
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
@@ -4,6 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { messages } from '@atlaskit/editor-common/lists';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { MoreItemsIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
8
|
import { useIndentationState } from '../utils/hooks';
|
|
8
9
|
export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
9
10
|
var children = _ref.children,
|
|
@@ -30,6 +31,19 @@ export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
|
30
31
|
orderedListDisabled = _useSharedPluginState.orderedListDisabled,
|
|
31
32
|
taskListActive = _useSharedPluginState.taskListActive;
|
|
32
33
|
var allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !taskListActive;
|
|
34
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
35
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
36
|
+
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
37
|
+
label: formatMessage(messages.lists)
|
|
38
|
+
}),
|
|
39
|
+
isDisabled: allItemsDisabled,
|
|
40
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
41
|
+
label: formatMessage(messages.lists),
|
|
42
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
43
|
+
content: formatMessage(messages.lists)
|
|
44
|
+
})
|
|
45
|
+
}, children);
|
|
46
|
+
}
|
|
33
47
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
34
48
|
content: formatMessage(messages.lists)
|
|
35
49
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^10.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
42
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
42
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
43
43
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
44
44
|
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
45
45
|
"@atlaskit/icon": "^30.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^18.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0"
|
|
50
50
|
},
|