@atlaskit/editor-plugin-text-formatting 1.4.7 → 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,29 @@
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
+
15
+ ## 1.5.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
20
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
21
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 1.4.7
4
28
 
5
29
  ### Patch 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.4.7",
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",
@@ -32,13 +32,13 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^36.1.0",
36
- "@atlaskit/editor-common": "^80.0.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.1.0",
35
+ "@atlaskit/adf-schema": "^36.3.0",
36
+ "@atlaskit/editor-common": "^80.2.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "4.0.1",
39
- "@atlaskit/editor-shared-styles": "^2.10.0",
39
+ "@atlaskit/editor-shared-styles": "^2.11.0",
40
40
  "@atlaskit/editor-tables": "^2.7.0",
41
- "@atlaskit/icon": "^22.1.0",
41
+ "@atlaskit/icon": "^22.2.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^3.1.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",