@atlaskit/editor-plugin-toolbar-lists-indentation 9.0.4 → 9.1.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 9.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`5a8d797e50210`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a8d797e50210) -
14
+ [FFCLEANUP-91669] clean up platform_editor_hide_toolbar_tooltips_fix experiment to hide dropdown
15
+ menu item tooltips on hover of the dropdown menu button
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 9.0.4
4
22
 
5
23
  ### Patch Changes
@@ -11,7 +11,6 @@ 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");
15
14
  var _hooks2 = require("../utils/hooks");
16
15
  var ListsIndentationMenu = exports.ListsIndentationMenu = function ListsIndentationMenu(_ref) {
17
16
  var children = _ref.children,
@@ -38,27 +37,15 @@ var ListsIndentationMenu = exports.ListsIndentationMenu = function ListsIndentat
38
37
  orderedListDisabled = _useSharedPluginState.orderedListDisabled,
39
38
  taskListActive = _useSharedPluginState.taskListActive;
40
39
  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
- }
54
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
55
- content: formatMessage(_lists.messages.lists)
56
- }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
40
+ return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
57
41
  iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
58
42
  label: formatMessage(_lists.messages.lists)
59
43
  }),
60
44
  isDisabled: allItemsDisabled,
61
45
  testId: "editor-toolbar__lists-and-indentation-menu",
62
- label: formatMessage(_lists.messages.lists)
63
- }, children));
46
+ label: formatMessage(_lists.messages.lists),
47
+ tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
48
+ content: formatMessage(_lists.messages.lists)
49
+ })
50
+ }, children);
64
51
  };
@@ -4,7 +4,6 @@ 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';
8
7
  import { useIndentationState } from '../utils/hooks';
9
8
  export const ListsIndentationMenu = ({
10
9
  children,
@@ -35,27 +34,15 @@ export const ListsIndentationMenu = ({
35
34
  };
36
35
  });
37
36
  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
- }
51
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
52
- content: formatMessage(messages.lists)
53
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
37
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
54
38
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
55
39
  label: formatMessage(messages.lists)
56
40
  }),
57
41
  isDisabled: allItemsDisabled,
58
42
  testId: "editor-toolbar__lists-and-indentation-menu",
59
- label: formatMessage(messages.lists)
60
- }, children));
43
+ label: formatMessage(messages.lists),
44
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
45
+ content: formatMessage(messages.lists)
46
+ })
47
+ }, children);
61
48
  };
@@ -4,7 +4,6 @@ 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';
8
7
  import { useIndentationState } from '../utils/hooks';
9
8
  export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
10
9
  var children = _ref.children,
@@ -31,27 +30,15 @@ export var ListsIndentationMenu = function ListsIndentationMenu(_ref) {
31
30
  orderedListDisabled = _useSharedPluginState.orderedListDisabled,
32
31
  taskListActive = _useSharedPluginState.taskListActive;
33
32
  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
- }
47
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
48
- content: formatMessage(messages.lists)
49
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
33
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
50
34
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
51
35
  label: formatMessage(messages.lists)
52
36
  }),
53
37
  isDisabled: allItemsDisabled,
54
38
  testId: "editor-toolbar__lists-and-indentation-menu",
55
- label: formatMessage(messages.lists)
56
- }, children));
39
+ label: formatMessage(messages.lists),
40
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
41
+ content: formatMessage(messages.lists)
42
+ })
43
+ }, children);
57
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "9.0.4",
3
+ "version": "9.1.1",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,25 +31,25 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/css": "^0.19.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^8.0.0",
34
- "@atlaskit/editor-plugin-block-type": "^12.0.0",
34
+ "@atlaskit/editor-plugin-block-type": "^12.1.0",
35
35
  "@atlaskit/editor-plugin-feature-flags": "^7.0.0",
36
36
  "@atlaskit/editor-plugin-indentation": "^8.0.0",
37
37
  "@atlaskit/editor-plugin-list": "^10.0.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
39
39
  "@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
40
40
  "@atlaskit/editor-plugin-tasks-and-decisions": "^11.1.0",
41
- "@atlaskit/editor-plugin-toolbar": "^5.0.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^5.1.0",
42
42
  "@atlaskit/editor-prosemirror": "^7.3.0",
43
- "@atlaskit/editor-toolbar": "^0.19.0",
43
+ "@atlaskit/editor-toolbar": "^0.20.0",
44
44
  "@atlaskit/editor-toolbar-model": "^0.4.0",
45
- "@atlaskit/icon": "^32.1.0",
45
+ "@atlaskit/icon": "^33.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^39.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^40.2.0",
48
48
  "@atlaskit/tokens": "^11.1.0",
49
49
  "@babel/runtime": "^7.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@atlaskit/editor-common": "^112.3.0",
52
+ "@atlaskit/editor-common": "^112.4.0",
53
53
  "react": "^18.2.0",
54
54
  "react-dom": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"