@atlaskit/editor-plugin-text-formatting 6.0.0 → 6.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-text-formatting
2
2
 
3
+ ## 6.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
+ ## 6.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 6.0.0
4
18
 
5
19
  ### 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) {
@@ -134,7 +135,15 @@ var MoreFormattingMenu = exports.MoreFormattingMenu = function MoreFormattingMen
134
135
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
135
136
  formatMessage = _useIntl2.formatMessage;
136
137
  var content = formatMessage(_messages.toolbarMessages.moreFormatting);
137
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
138
+ return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
139
+ content: formatMessage(_messages.toolbarMessages.textFormat)
140
+ }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
141
+ iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
142
+ label: "",
143
+ testId: "more-formatting"
144
+ }),
145
+ label: content
146
+ }, children)) : /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
138
147
  iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
139
148
  label: "",
140
149
  testId: "more-formatting"
@@ -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 = ({
@@ -136,7 +137,15 @@ export const MoreFormattingMenu = ({
136
137
  formatMessage
137
138
  } = useIntl();
138
139
  const content = formatMessage(toolbarMessages.moreFormatting);
139
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
140
+ return expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(ToolbarTooltip, {
141
+ content: formatMessage(toolbarMessages.textFormat)
142
+ }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
143
+ iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
144
+ label: "",
145
+ testId: "more-formatting"
146
+ }),
147
+ label: content
148
+ }, children)) : /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
140
149
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
141
150
  label: "",
142
151
  testId: "more-formatting"
@@ -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) {
@@ -127,7 +128,15 @@ export var MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
127
128
  var _useIntl2 = useIntl(),
128
129
  formatMessage = _useIntl2.formatMessage;
129
130
  var content = formatMessage(toolbarMessages.moreFormatting);
130
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
131
+ return expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(ToolbarTooltip, {
132
+ content: formatMessage(toolbarMessages.textFormat)
133
+ }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
134
+ iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
135
+ label: "",
136
+ testId: "more-formatting"
137
+ }),
138
+ label: content
139
+ }, children)) : /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
131
140
  iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
132
141
  label: "",
133
142
  testId: "more-formatting"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Text-formatting 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/adf-schema": "^51.2.0",
33
- "@atlaskit/editor-plugin-analytics": "^6.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^6.1.0",
34
34
  "@atlaskit/editor-plugin-base": "^7.0.0",
35
35
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
36
36
  "@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
@@ -38,24 +38,24 @@
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
- "@atlaskit/editor-toolbar": "^0.9.0",
41
+ "@atlaskit/editor-toolbar": "^0.10.0",
42
42
  "@atlaskit/editor-toolbar-model": "^0.2.0",
43
43
  "@atlaskit/icon": "^28.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
46
- "@atlaskit/tmp-editor-statsig": "^12.31.0",
47
- "@atlaskit/tokens": "^6.3.0",
46
+ "@atlaskit/tmp-editor-statsig": "^12.33.0",
47
+ "@atlaskit/tokens": "^6.4.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "react-intl-next": "npm:react-intl@^5.18.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^110.0.0",
53
+ "@atlaskit/editor-common": "^110.4.0",
54
54
  "react": "^18.2.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@atlaskit/editor-plugin-composition": "^5.0.0",
58
- "@atlaskit/editor-plugin-decorations": "^6.0.0",
58
+ "@atlaskit/editor-plugin-decorations": "^6.1.0",
59
59
  "@atlaskit/editor-plugin-feature-flags": "^5.0.0",
60
60
  "@testing-library/react": "^13.4.0"
61
61
  },