@atlaskit/editor-plugin-text-formatting 4.0.2 → 4.0.4
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 +16 -0
- package/dist/cjs/textFormattingPlugin.js +1 -2
- package/dist/cjs/ui/Toolbar/components/Component.js +1 -0
- package/dist/es2019/textFormattingPlugin.js +1 -2
- package/dist/es2019/ui/Toolbar/components/Component.js +1 -0
- package/dist/esm/textFormattingPlugin.js +1 -2
- package/dist/esm/ui/Toolbar/components/Component.js +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 4.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
|
|
8
|
+
Update menu item icon size to small, tweak paddings and font styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 4.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
|
|
16
|
+
replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.0.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _toggleMark = require("./editor-commands/toggle-mark");
|
|
15
14
|
var _clearFormatting = require("./pm-plugins/clear-formatting");
|
|
@@ -33,7 +32,7 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
33
32
|
var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
34
33
|
var options = _ref.config,
|
|
35
34
|
api = _ref.api;
|
|
36
|
-
var isToolbarAIFCEnabled = (0,
|
|
35
|
+
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true);
|
|
37
36
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
38
37
|
var editorView = _ref2.editorView,
|
|
39
38
|
popupsMountPoint = _ref2.popupsMountPoint,
|
|
@@ -43,6 +43,7 @@ var FormatMenuItem = exports.FormatMenuItem = function FormatMenuItem(_ref) {
|
|
|
43
43
|
}
|
|
44
44
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
45
45
|
elemBefore: /*#__PURE__*/_react.default.createElement(Icon, {
|
|
46
|
+
size: "small",
|
|
46
47
|
label: ""
|
|
47
48
|
}),
|
|
48
49
|
elemAfter: shortcutContent && /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarKeyboardShortcutHint, {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
|
|
7
6
|
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
@@ -25,7 +24,7 @@ export const textFormattingPlugin = ({
|
|
|
25
24
|
api
|
|
26
25
|
}) => {
|
|
27
26
|
var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
28
|
-
const isToolbarAIFCEnabled =
|
|
27
|
+
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
|
|
29
28
|
const primaryToolbarComponent = ({
|
|
30
29
|
editorView,
|
|
31
30
|
popupsMountPoint,
|
|
@@ -38,6 +38,7 @@ export const FormatMenuItem = ({
|
|
|
38
38
|
}
|
|
39
39
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
40
40
|
elemBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
size: "small",
|
|
41
42
|
label: ""
|
|
42
43
|
}),
|
|
43
44
|
elemAfter: shortcutContent && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
|
|
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
|
|
10
9
|
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
@@ -27,7 +26,7 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
|
27
26
|
var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
28
27
|
var options = _ref.config,
|
|
29
28
|
api = _ref.api;
|
|
30
|
-
var isToolbarAIFCEnabled =
|
|
29
|
+
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
|
|
31
30
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
32
31
|
var editorView = _ref2.editorView,
|
|
33
32
|
popupsMountPoint = _ref2.popupsMountPoint,
|
|
@@ -36,6 +36,7 @@ export var FormatMenuItem = function FormatMenuItem(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
38
38
|
elemBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
39
|
+
size: "small",
|
|
39
40
|
label: ""
|
|
40
41
|
}),
|
|
41
42
|
elemAfter: shortcutContent && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
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": "^28.1.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.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^12.5.0",
|
|
47
47
|
"@atlaskit/tokens": "^6.2.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": "^108.
|
|
53
|
+
"@atlaskit/editor-common": "^108.5.0",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|