@atlaskit/editor-plugin-text-formatting 7.2.4 → 7.2.6
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
|
+
## 7.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`653c0c803b286`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/653c0c803b286) -
|
|
14
|
+
EDITOR-4620 Clean up platform_editor_toolbar_aifc_patch_6
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.2.4
|
|
4
18
|
|
|
5
19
|
### 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,7 +136,7 @@ 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
|
-
return
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
141
140
|
content: formatMessage(_messages.toolbarMessages.textFormat)
|
|
142
141
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
143
142
|
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
|
|
@@ -145,13 +144,7 @@ var MoreFormattingMenu = exports.MoreFormattingMenu = function MoreFormattingMen
|
|
|
145
144
|
testId: "more-formatting"
|
|
146
145
|
}),
|
|
147
146
|
label: content
|
|
148
|
-
}, children))
|
|
149
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.MoreItemsIcon, {
|
|
150
|
-
label: "",
|
|
151
|
-
testId: "more-formatting"
|
|
152
|
-
}),
|
|
153
|
-
label: content
|
|
154
|
-
}, children);
|
|
147
|
+
}, children));
|
|
155
148
|
};
|
|
156
149
|
var MenuSection = exports.MenuSection = function MenuSection(_ref5) {
|
|
157
150
|
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,7 +138,7 @@ export const MoreFormattingMenu = ({
|
|
|
139
138
|
formatMessage
|
|
140
139
|
} = useIntl();
|
|
141
140
|
const content = formatMessage(toolbarMessages.moreFormatting);
|
|
142
|
-
return
|
|
141
|
+
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
143
142
|
content: formatMessage(toolbarMessages.textFormat)
|
|
144
143
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
145
144
|
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
@@ -147,13 +146,7 @@ export const MoreFormattingMenu = ({
|
|
|
147
146
|
testId: "more-formatting"
|
|
148
147
|
}),
|
|
149
148
|
label: content
|
|
150
|
-
}, children))
|
|
151
|
-
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
152
|
-
label: "",
|
|
153
|
-
testId: "more-formatting"
|
|
154
|
-
}),
|
|
155
|
-
label: content
|
|
156
|
-
}, children);
|
|
149
|
+
}, children));
|
|
157
150
|
};
|
|
158
151
|
export const MenuSection = ({
|
|
159
152
|
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,7 +129,7 @@ export var MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
|
|
|
130
129
|
var _useIntl2 = useIntl(),
|
|
131
130
|
formatMessage = _useIntl2.formatMessage;
|
|
132
131
|
var content = formatMessage(toolbarMessages.moreFormatting);
|
|
133
|
-
return
|
|
132
|
+
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
134
133
|
content: formatMessage(toolbarMessages.textFormat)
|
|
135
134
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
136
135
|
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
@@ -138,13 +137,7 @@ export var MoreFormattingMenu = function MoreFormattingMenu(_ref4) {
|
|
|
138
137
|
testId: "more-formatting"
|
|
139
138
|
}),
|
|
140
139
|
label: content
|
|
141
|
-
}, children))
|
|
142
|
-
iconBefore: /*#__PURE__*/React.createElement(MoreItemsIcon, {
|
|
143
|
-
label: "",
|
|
144
|
-
testId: "more-formatting"
|
|
145
|
-
}),
|
|
146
|
-
label: content
|
|
147
|
-
}, children);
|
|
140
|
+
}, children));
|
|
148
141
|
};
|
|
149
142
|
export var MenuSection = function MenuSection(_ref5) {
|
|
150
143
|
var children = _ref5.children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.6",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
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.
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^17.10.0",
|
|
47
|
+
"@atlaskit/tokens": "^11.0.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": "^111.
|
|
53
|
+
"@atlaskit/editor-common": "^111.11.0",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|