@atlaskit/editor-plugin-selection-extension 11.0.5 → 11.1.0

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,17 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 11.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5a8d797e50210`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a8d797e50210) -
8
+ [FFCLEANUP-91669] clean up platform_editor_hide_toolbar_tooltips_fix experiment to hide dropdown
9
+ menu item tooltips on hover of the dropdown menu button
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.0.5
4
16
 
5
17
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.ToolbarMenu = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _toolbar = require("@atlaskit/editor-common/toolbar");
10
10
  var _editorToolbar = require("@atlaskit/editor-toolbar");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var usePluginState = function usePluginState(_api) {
13
12
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
14
13
  editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
@@ -27,25 +26,14 @@ var ToolbarMenu = exports.ToolbarMenu = function ToolbarMenu(_ref) {
27
26
  return null;
28
27
  }
29
28
  var Icon = config.icon;
30
- if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
31
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
32
- iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
33
- label: ""
34
- }),
35
- isDisabled: config.isDisabled,
36
- onClick: config.onClick,
37
- tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
38
- content: config.tooltip
39
- })
40
- }, children);
41
- }
42
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
43
- content: config.tooltip
44
- }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
29
+ return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
45
30
  iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
46
31
  label: ""
47
32
  }),
48
33
  isDisabled: config.isDisabled,
49
- onClick: config.onClick
50
- }, children));
34
+ onClick: config.onClick,
35
+ tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
36
+ content: config.tooltip
37
+ })
38
+ }, children);
51
39
  };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
3
  import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  const usePluginState = _api => {
6
5
  const {
7
6
  editorToolbarDockingPreference
@@ -23,25 +22,14 @@ export const ToolbarMenu = ({
23
22
  return null;
24
23
  }
25
24
  const Icon = config.icon;
26
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
27
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
28
- iconBefore: /*#__PURE__*/React.createElement(Icon, {
29
- label: ""
30
- }),
31
- isDisabled: config.isDisabled,
32
- onClick: config.onClick,
33
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
34
- content: config.tooltip
35
- })
36
- }, children);
37
- }
38
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
39
- content: config.tooltip
40
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
25
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
41
26
  iconBefore: /*#__PURE__*/React.createElement(Icon, {
42
27
  label: ""
43
28
  }),
44
29
  isDisabled: config.isDisabled,
45
- onClick: config.onClick
46
- }, children));
30
+ onClick: config.onClick,
31
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
32
+ content: config.tooltip
33
+ })
34
+ }, children);
47
35
  };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
3
  import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  var usePluginState = function usePluginState(_api) {
6
5
  var _useEditorToolbar = useEditorToolbar(),
7
6
  editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
@@ -20,25 +19,14 @@ export var ToolbarMenu = function ToolbarMenu(_ref) {
20
19
  return null;
21
20
  }
22
21
  var Icon = config.icon;
23
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
24
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
25
- iconBefore: /*#__PURE__*/React.createElement(Icon, {
26
- label: ""
27
- }),
28
- isDisabled: config.isDisabled,
29
- onClick: config.onClick,
30
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
31
- content: config.tooltip
32
- })
33
- }, children);
34
- }
35
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
36
- content: config.tooltip
37
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
22
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
38
23
  iconBefore: /*#__PURE__*/React.createElement(Icon, {
39
24
  label: ""
40
25
  }),
41
26
  isDisabled: config.isDisabled,
42
- onClick: config.onClick
43
- }, children));
27
+ onClick: config.onClick,
28
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
29
+ content: config.tooltip
30
+ })
31
+ }, children);
44
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "11.0.5",
3
+ "version": "11.1.0",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,17 +42,17 @@
42
42
  "@atlaskit/editor-plugin-editor-viewmode-effects": "^8.0.0",
43
43
  "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
44
44
  "@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
45
- "@atlaskit/editor-plugin-toolbar": "^5.0.0",
45
+ "@atlaskit/editor-plugin-toolbar": "^5.1.0",
46
46
  "@atlaskit/editor-plugin-user-preferences": "^6.0.0",
47
47
  "@atlaskit/editor-prosemirror": "^7.3.0",
48
48
  "@atlaskit/editor-shared-styles": "^3.10.0",
49
49
  "@atlaskit/editor-tables": "^2.9.0",
50
- "@atlaskit/editor-toolbar": "^0.19.0",
50
+ "@atlaskit/editor-toolbar": "^0.20.0",
51
51
  "@atlaskit/icon": "^32.1.0",
52
52
  "@atlaskit/lozenge": "^13.5.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/primitives": "^18.0.0",
55
- "@atlaskit/tmp-editor-statsig": "^39.0.0",
55
+ "@atlaskit/tmp-editor-statsig": "^40.0.0",
56
56
  "@atlaskit/tokens": "^11.1.0",
57
57
  "@babel/runtime": "^7.0.0",
58
58
  "lodash": "^4.17.21",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^3.1.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^112.3.0",
63
+ "@atlaskit/editor-common": "^112.4.0",
64
64
  "react": "^18.2.0"
65
65
  },
66
66
  "devDependencies": {