@atlaskit/adf-utils 19.0.30 → 19.0.31

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,11 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 19.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#95605](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95605) [`ab6a0e7bac9c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ab6a0e7bac9c) - [ED-23098] Add support for background color mark to ADF utils and editor common validators
8
+
3
9
  ## 19.0.30
4
10
 
5
11
  ### Patch Changes
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
  // exist on a given node, regardless of their attributes. We do
15
15
  // not include annotations here, because we do allow duplicate
16
16
  // annotations as long as they have unique id attributes (valid scenario)
17
- var markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike']);
17
+ var markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike', 'backgroundColor']);
18
18
  var maybeHasDisallowedDuplicateMarks = function maybeHasDisallowedDuplicateMarks(node) {
19
19
  var _node$marks;
20
20
  var markTypes = (_node$marks = node.marks) === null || _node$marks === void 0 || (_node$marks = _node$marks.map(function (mark) {
@@ -3,7 +3,7 @@ import { traverse } from '../traverse/traverse';
3
3
  // exist on a given node, regardless of their attributes. We do
4
4
  // not include annotations here, because we do allow duplicate
5
5
  // annotations as long as they have unique id attributes (valid scenario)
6
- const markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike']);
6
+ const markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike', 'backgroundColor']);
7
7
  const maybeHasDisallowedDuplicateMarks = node => {
8
8
  var _node$marks, _node$marks$map;
9
9
  const markTypes = (_node$marks = node.marks) === null || _node$marks === void 0 ? void 0 : (_node$marks$map = _node$marks.map(mark => mark.type)) === null || _node$marks$map === void 0 ? void 0 : _node$marks$map.filter(markType =>
@@ -7,7 +7,7 @@ import { traverse } from '../traverse/traverse';
7
7
  // exist on a given node, regardless of their attributes. We do
8
8
  // not include annotations here, because we do allow duplicate
9
9
  // annotations as long as they have unique id attributes (valid scenario)
10
- var markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike']);
10
+ var markDuplicatesDisallowed = new Set(['strong', 'underline', 'textColor', 'link', 'em', 'subsup', 'strike', 'backgroundColor']);
11
11
  var maybeHasDisallowedDuplicateMarks = function maybeHasDisallowedDuplicateMarks(node) {
12
12
  var _node$marks;
13
13
  var markTypes = (_node$marks = node.marks) === null || _node$marks === void 0 || (_node$marks = _node$marks.map(function (mark) {
@@ -1,4 +1,4 @@
1
- import { ADFEntity, ADFEntityMark } from '../types';
1
+ import { type ADFEntity, type ADFEntityMark } from '../types';
2
2
  interface TransformDedupeMarksResult {
3
3
  transformedAdf: ADFEntity;
4
4
  isTransformed: boolean;
@@ -1,4 +1,4 @@
1
- import { ADFEntity, ADFEntityMark } from '../types';
1
+ import { type ADFEntity, type ADFEntityMark } from '../types';
2
2
  interface TransformDedupeMarksResult {
3
3
  transformedAdf: ADFEntity;
4
4
  isTransformed: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "19.0.30",
3
+ "version": "19.0.31",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"