@atlaskit/editor-plugin-text-formatting 7.2.6 → 7.2.8

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-text-formatting
2
2
 
3
+ ## 7.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.2.7
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
  ## 7.2.6
4
19
 
5
20
  ### Patch Changes
@@ -12,6 +12,7 @@ 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");
15
16
  var _clearFormatting = require("../../../editor-commands/clear-formatting");
16
17
  var _utils = require("./utils");
17
18
  var FormatMenuItem = exports.FormatMenuItem = function FormatMenuItem(_ref) {
@@ -136,6 +137,18 @@ var MoreFormattingMenu = exports.MoreFormattingMenu = function MoreFormattingMen
136
137
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
137
138
  formatMessage = _useIntl2.formatMessage;
138
139
  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
+ }
139
152
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
140
153
  content: formatMessage(_messages.toolbarMessages.textFormat)
141
154
  }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
@@ -5,6 +5,7 @@ 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';
8
9
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
9
10
  import { useComponentInfo } from './utils';
10
11
  export const FormatMenuItem = ({
@@ -138,6 +139,18 @@ export const MoreFormattingMenu = ({
138
139
  formatMessage
139
140
  } = useIntl();
140
141
  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
+ }
141
154
  return /*#__PURE__*/React.createElement(ToolbarTooltip, {
142
155
  content: formatMessage(toolbarMessages.textFormat)
143
156
  }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
@@ -5,6 +5,7 @@ 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';
8
9
  import { clearFormattingWithAnalyticsNext } from '../../../editor-commands/clear-formatting';
9
10
  import { useComponentInfo } from './utils';
10
11
  export var FormatMenuItem = function FormatMenuItem(_ref) {
@@ -129,6 +130,18 @@ export var MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
129
130
  var _useIntl2 = useIntl(),
130
131
  formatMessage = _useIntl2.formatMessage;
131
132
  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
+ }
132
145
  return /*#__PURE__*/React.createElement(ToolbarTooltip, {
133
146
  content: formatMessage(toolbarMessages.textFormat)
134
147
  }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "7.2.6",
3
+ "version": "7.2.8",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
36
36
  "@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
37
37
  "@atlaskit/editor-plugin-toolbar": "^4.1.0",
38
- "@atlaskit/editor-prosemirror": "^7.2.0",
38
+ "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
41
  "@atlaskit/editor-toolbar": "^0.19.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/icon": "^30.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^17.10.0",
46
+ "@atlaskit/tmp-editor-statsig": "^18.0.0",
47
47
  "@atlaskit/tokens": "^11.0.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",