@atlaskit/editor-plugin-text-formatting 1.5.0 → 1.6.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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#100553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100553)
|
|
8
|
+
[`e0c2a4b9c8ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0c2a4b9c8ae) -
|
|
9
|
+
[ED-23157] Clear background color (= highlights) when clearing the formatting on a selection
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
|
11
11
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
12
12
|
var _cellSelection2 = require("../utils/cell-selection");
|
|
13
13
|
var FORMATTING_NODE_TYPES = exports.FORMATTING_NODE_TYPES = ['heading', 'blockquote'];
|
|
14
|
-
var FORMATTING_MARK_TYPES = exports.FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup'];
|
|
14
|
+
var FORMATTING_MARK_TYPES = exports.FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup', 'backgroundColor'];
|
|
15
15
|
var formatTypes = {
|
|
16
16
|
em: _analytics.ACTION_SUBJECT_ID.FORMAT_ITALIC,
|
|
17
17
|
code: _analytics.ACTION_SUBJECT_ID.FORMAT_CODE,
|
|
@@ -19,7 +19,8 @@ var formatTypes = {
|
|
|
19
19
|
strong: _analytics.ACTION_SUBJECT_ID.FORMAT_STRONG,
|
|
20
20
|
underline: _analytics.ACTION_SUBJECT_ID.FORMAT_UNDERLINE,
|
|
21
21
|
textColor: _analytics.ACTION_SUBJECT_ID.FORMAT_COLOR,
|
|
22
|
-
subsup: 'subsup'
|
|
22
|
+
subsup: 'subsup',
|
|
23
|
+
backgroundColor: _analytics.ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR
|
|
23
24
|
};
|
|
24
25
|
function clearFormattingWithAnalytics(inputMethod, editorAnalyticsAPI) {
|
|
25
26
|
return clearFormatting(inputMethod, editorAnalyticsAPI);
|
|
@@ -3,7 +3,7 @@ import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { cellSelectionNodesBetween } from '../utils/cell-selection';
|
|
5
5
|
export const FORMATTING_NODE_TYPES = ['heading', 'blockquote'];
|
|
6
|
-
export const FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup'];
|
|
6
|
+
export const FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup', 'backgroundColor'];
|
|
7
7
|
const formatTypes = {
|
|
8
8
|
em: ACTION_SUBJECT_ID.FORMAT_ITALIC,
|
|
9
9
|
code: ACTION_SUBJECT_ID.FORMAT_CODE,
|
|
@@ -11,7 +11,8 @@ const formatTypes = {
|
|
|
11
11
|
strong: ACTION_SUBJECT_ID.FORMAT_STRONG,
|
|
12
12
|
underline: ACTION_SUBJECT_ID.FORMAT_UNDERLINE,
|
|
13
13
|
textColor: ACTION_SUBJECT_ID.FORMAT_COLOR,
|
|
14
|
-
subsup: 'subsup'
|
|
14
|
+
subsup: 'subsup',
|
|
15
|
+
backgroundColor: ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR
|
|
15
16
|
};
|
|
16
17
|
export function clearFormattingWithAnalytics(inputMethod, editorAnalyticsAPI) {
|
|
17
18
|
return clearFormatting(inputMethod, editorAnalyticsAPI);
|
|
@@ -3,7 +3,7 @@ import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { cellSelectionNodesBetween } from '../utils/cell-selection';
|
|
5
5
|
export var FORMATTING_NODE_TYPES = ['heading', 'blockquote'];
|
|
6
|
-
export var FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup'];
|
|
6
|
+
export var FORMATTING_MARK_TYPES = ['em', 'code', 'strike', 'strong', 'underline', 'textColor', 'subsup', 'backgroundColor'];
|
|
7
7
|
var formatTypes = {
|
|
8
8
|
em: ACTION_SUBJECT_ID.FORMAT_ITALIC,
|
|
9
9
|
code: ACTION_SUBJECT_ID.FORMAT_CODE,
|
|
@@ -11,7 +11,8 @@ var formatTypes = {
|
|
|
11
11
|
strong: ACTION_SUBJECT_ID.FORMAT_STRONG,
|
|
12
12
|
underline: ACTION_SUBJECT_ID.FORMAT_UNDERLINE,
|
|
13
13
|
textColor: ACTION_SUBJECT_ID.FORMAT_COLOR,
|
|
14
|
-
subsup: 'subsup'
|
|
14
|
+
subsup: 'subsup',
|
|
15
|
+
backgroundColor: ACTION_SUBJECT_ID.FORMAT_BACKGROUND_COLOR
|
|
15
16
|
};
|
|
16
17
|
export function clearFormattingWithAnalytics(inputMethod, editorAnalyticsAPI) {
|
|
17
18
|
return clearFormatting(inputMethod, editorAnalyticsAPI);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^36.3.0",
|
|
36
|
-
"@atlaskit/editor-common": "^80.
|
|
36
|
+
"@atlaskit/editor-common": "^80.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^2.11.0",
|