@atlaskit/editor-plugin-toolbar-lists-indentation 7.0.0 → 7.0.2
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 7.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20c74a7647d3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20c74a7647d3e) -
|
|
8
|
+
[ux] ED-29274 Add missing tooltip for toolbar buttons
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.0.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -39,11 +39,21 @@ var ListsIndentationMenu = exports.ListsIndentationMenu = function ListsIndentat
|
|
|
39
39
|
orderedListDisabled = _useSharedPluginState.orderedListDisabled,
|
|
40
40
|
taskListActive = _useSharedPluginState.taskListActive;
|
|
41
41
|
var allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !(isTaskListItemEnabled && taskListActive);
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_editorToolbar.
|
|
42
|
+
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
43
|
+
content: formatMessage(_lists.messages.lists)
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
43
45
|
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
|
|
44
46
|
label: formatMessage(_lists.messages.lists)
|
|
45
47
|
}),
|
|
46
48
|
isDisabled: allItemsDisabled,
|
|
47
|
-
testId: "editor-toolbar__lists-and-indentation-menu"
|
|
49
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
50
|
+
label: formatMessage(_lists.messages.lists)
|
|
51
|
+
}, children)) : /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
52
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
|
|
53
|
+
label: formatMessage(_lists.messages.lists)
|
|
54
|
+
}),
|
|
55
|
+
isDisabled: allItemsDisabled,
|
|
56
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
57
|
+
label: formatMessage(_lists.messages.lists)
|
|
48
58
|
}, children);
|
|
49
59
|
};
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
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
|
-
import { MoreItemsIcon, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { MoreItemsIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { useIndentationState } from '../utils/hooks';
|
|
9
9
|
export const ListsIndentationMenu = ({
|
|
@@ -36,11 +36,21 @@ export const ListsIndentationMenu = ({
|
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
38
|
const allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !(isTaskListItemEnabled && taskListActive);
|
|
39
|
-
return /*#__PURE__*/React.createElement(
|
|
39
|
+
return expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
40
|
+
content: formatMessage(messages.lists)
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
40
42
|
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
41
43
|
label: formatMessage(messages.lists)
|
|
42
44
|
}),
|
|
43
45
|
isDisabled: allItemsDisabled,
|
|
44
|
-
testId: "editor-toolbar__lists-and-indentation-menu"
|
|
46
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
47
|
+
label: formatMessage(messages.lists)
|
|
48
|
+
}, children)) : /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
49
|
+
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
50
|
+
label: formatMessage(messages.lists)
|
|
51
|
+
}),
|
|
52
|
+
isDisabled: allItemsDisabled,
|
|
53
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
54
|
+
label: formatMessage(messages.lists)
|
|
45
55
|
}, children);
|
|
46
56
|
};
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
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
|
-
import { MoreItemsIcon, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { MoreItemsIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { useIndentationState } from '../utils/hooks';
|
|
9
9
|
export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
@@ -32,11 +32,21 @@ export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
|
|
|
32
32
|
orderedListDisabled = _useSharedPluginState.orderedListDisabled,
|
|
33
33
|
taskListActive = _useSharedPluginState.taskListActive;
|
|
34
34
|
var allItemsDisabled = bulletListDisabled && orderedListDisabled && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.indentDisabled) && (indentationState === null || indentationState === void 0 ? void 0 : indentationState.outdentDisabled) && !(isTaskListItemEnabled && taskListActive);
|
|
35
|
-
return /*#__PURE__*/React.createElement(
|
|
35
|
+
return expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
36
|
+
content: formatMessage(messages.lists)
|
|
37
|
+
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
36
38
|
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
37
39
|
label: formatMessage(messages.lists)
|
|
38
40
|
}),
|
|
39
41
|
isDisabled: allItemsDisabled,
|
|
40
|
-
testId: "editor-toolbar__lists-and-indentation-menu"
|
|
42
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
43
|
+
label: formatMessage(messages.lists)
|
|
44
|
+
}, children)) : /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
45
|
+
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
46
|
+
label: formatMessage(messages.lists)
|
|
47
|
+
}),
|
|
48
|
+
isDisabled: allItemsDisabled,
|
|
49
|
+
testId: "editor-toolbar__lists-and-indentation-menu",
|
|
50
|
+
label: formatMessage(messages.lists)
|
|
41
51
|
}, children);
|
|
42
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/css": "^0.14.0",
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-block-type": "^9.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-indentation": "^6.0.0",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-toolbar": "^3.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
44
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
44
|
+
"@atlaskit/editor-toolbar": "^0.10.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
46
46
|
"@atlaskit/icon": "^28.3.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
49
|
-
"@atlaskit/tokens": "^6.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^12.33.0",
|
|
49
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^110.
|
|
53
|
+
"@atlaskit/editor-common": "^110.4.0",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
"react-intl-next": "npm:react-intl@^5.18.1"
|