@atlaskit/adf-utils 19.0.30 → 19.0.32
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 +956 -596
- package/dist/cjs/transforms/dedupe-marks-transform.js +1 -1
- package/dist/es2019/transforms/dedupe-marks-transform.js +1 -1
- package/dist/esm/transforms/dedupe-marks-transform.js +1 -1
- package/dist/types/transforms/dedupe-marks-transform.d.ts +1 -1
- package/dist/types-ts4.5/transforms/dedupe-marks-transform.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-utils",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.32",
|
|
4
4
|
"description": "Set of utilities to traverse, modify and create ADF documents.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"generate:spec": "rm -rf ./src/validator/specs/ && yarn json-schema-generator --outDir=./src/validator/specs/ --mode=Spec --stage=0 ./src/validator/entry.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/adf-schema": "^35.12.
|
|
44
|
+
"@atlaskit/adf-schema": "^35.12.2",
|
|
45
45
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|