@atlaskit/editor-plugin-text-formatting 8.0.3 → 8.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,23 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 8.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
+
15
+ ## 8.0.4
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 8.0.3
4
22
 
5
23
  ### Patch Changes
@@ -12,7 +12,6 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _toolbar = require("@atlaskit/editor-common/toolbar");
14
14
  var _editorToolbar = require("@atlaskit/editor-toolbar");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _clearFormatting = require("../../../editor-commands/clear-formatting");
17
16
  var _utils = require("./utils");
18
17
  var FormatMenuItem = exports.FormatMenuItem = function FormatMenuItem(_ref) {
@@ -137,27 +136,16 @@ var MoreFormattingMenu = exports.MoreFormattingMenu = function MoreFormattingMen
137
136
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
138
137
  formatMessage = _useIntl2.formatMessage;
139
138
  var content = formatMessage(_messages.toolbarMessages.moreFormatting);
140
- if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
141
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
142
- iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
143
- label: "",
144
- testId: "more-formatting"
145
- }),
146
- label: content,
147
- tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
148
- content: formatMessage(_messages.toolbarMessages.textFormat)
149
- })
150
- }, children);
151
- }
152
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
153
- content: formatMessage(_messages.toolbarMessages.textFormat)
154
- }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
139
+ return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
155
140
  iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
156
141
  label: "",
157
142
  testId: "more-formatting"
158
143
  }),
159
- label: content
160
- }, children));
144
+ label: content,
145
+ tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
146
+ content: formatMessage(_messages.toolbarMessages.textFormat)
147
+ })
148
+ }, children);
161
149
  };
162
150
  var MenuSection = exports.MenuSection = function MenuSection(_ref5) {
163
151
  var children = _ref5.children,
@@ -5,7 +5,6 @@ import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@
5
5
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
6
6
  import { getInputMethodFromParentKeys, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
7
7
  import { ToolbarButton, ToolbarDropdownItem, ClearFormattingIcon, ToolbarKeyboardShortcutHint, ToolbarDropdownMenu, MoreItemsIcon, ToolbarTooltip, ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
10
9
  import { useComponentInfo } from './utils';
11
10
  export const FormatMenuItem = ({
@@ -139,27 +138,16 @@ export const MoreFormattingMenu = ({
139
138
  formatMessage
140
139
  } = useIntl();
141
140
  const content = formatMessage(toolbarMessages.moreFormatting);
142
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
143
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
144
- iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
145
- label: "",
146
- testId: "more-formatting"
147
- }),
148
- label: content,
149
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
150
- content: formatMessage(toolbarMessages.textFormat)
151
- })
152
- }, children);
153
- }
154
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
155
- content: formatMessage(toolbarMessages.textFormat)
156
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
141
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
157
142
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
158
143
  label: "",
159
144
  testId: "more-formatting"
160
145
  }),
161
- label: content
162
- }, children));
146
+ label: content,
147
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
148
+ content: formatMessage(toolbarMessages.textFormat)
149
+ })
150
+ }, children);
163
151
  };
164
152
  export const MenuSection = ({
165
153
  children,
@@ -5,7 +5,6 @@ import { ToolTipContent, clearFormatting, getAriaKeyshortcuts, tooltip } from '@
5
5
  import { toolbarMessages } from '@atlaskit/editor-common/messages';
6
6
  import { getInputMethodFromParentKeys, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
7
7
  import { ToolbarButton, ToolbarDropdownItem, ClearFormattingIcon, ToolbarKeyboardShortcutHint, ToolbarDropdownMenu, MoreItemsIcon, ToolbarTooltip, ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
10
9
  import { useComponentInfo } from './utils';
11
10
  export var FormatMenuItem = function FormatMenuItem(_ref) {
@@ -130,27 +129,16 @@ export var MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
130
129
  var _useIntl2 = useIntl(),
131
130
  formatMessage = _useIntl2.formatMessage;
132
131
  var content = formatMessage(toolbarMessages.moreFormatting);
133
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
134
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
135
- iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
136
- label: "",
137
- testId: "more-formatting"
138
- }),
139
- label: content,
140
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
141
- content: formatMessage(toolbarMessages.textFormat)
142
- })
143
- }, children);
144
- }
145
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
146
- content: formatMessage(toolbarMessages.textFormat)
147
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
132
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
148
133
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
149
134
  label: "",
150
135
  testId: "more-formatting"
151
136
  }),
152
- label: content
153
- }, children));
137
+ label: content,
138
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
139
+ content: formatMessage(toolbarMessages.textFormat)
140
+ })
141
+ }, children);
154
142
  };
155
143
  export var MenuSection = function MenuSection(_ref5) {
156
144
  var children = _ref5.children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "8.0.3",
3
+ "version": "8.1.0",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,28 +32,28 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^52.2.0",
35
+ "@atlaskit/adf-schema": "^52.3.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^8.0.0",
37
37
  "@atlaskit/editor-plugin-base": "^9.0.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
39
39
  "@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
40
- "@atlaskit/editor-plugin-toolbar": "^5.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^5.1.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
- "@atlaskit/editor-toolbar": "^0.19.0",
44
+ "@atlaskit/editor-toolbar": "^0.20.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^32.0.0",
46
+ "@atlaskit/icon": "^32.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
49
- "@atlaskit/tmp-editor-statsig": "^38.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^40.0.0",
50
50
  "@atlaskit/tokens": "^11.1.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^112.2.0",
56
+ "@atlaskit/editor-common": "^112.4.0",
57
57
  "react": "^18.2.0"
58
58
  },
59
59
  "devDependencies": {