@atlaskit/editor-plugin-synced-block 4.3.3 → 4.3.5
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 4.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a4c7ffb45fe77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4c7ffb45fe77) -
|
|
8
|
+
Revert PR 258977
|
|
9
|
+
|
|
10
|
+
## 4.3.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.3.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -78,8 +78,12 @@ var removeBreakoutMarks = function removeBreakoutMarks(content) {
|
|
|
78
78
|
var filteredMarks = node.marks.filter(function (mark) {
|
|
79
79
|
return mark.type.name !== 'breakout';
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
if (node.isText) {
|
|
82
|
+
nodes.push(node);
|
|
83
|
+
} else {
|
|
84
|
+
var newNode = node.type.create(node.attrs, node.content, filteredMarks);
|
|
85
|
+
nodes.push(newNode);
|
|
86
|
+
}
|
|
83
87
|
});
|
|
84
88
|
return _model.Fragment.from(nodes);
|
|
85
89
|
};
|
|
@@ -72,8 +72,12 @@ const removeBreakoutMarks = content => {
|
|
|
72
72
|
// we only need to recurse at the top level, because breakout has to be on a top level
|
|
73
73
|
content.forEach(node => {
|
|
74
74
|
const filteredMarks = node.marks.filter(mark => mark.type.name !== 'breakout');
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
if (node.isText) {
|
|
76
|
+
nodes.push(node);
|
|
77
|
+
} else {
|
|
78
|
+
const newNode = node.type.create(node.attrs, node.content, filteredMarks);
|
|
79
|
+
nodes.push(newNode);
|
|
80
|
+
}
|
|
77
81
|
});
|
|
78
82
|
return Fragment.from(nodes);
|
|
79
83
|
};
|
|
@@ -72,8 +72,12 @@ var removeBreakoutMarks = function removeBreakoutMarks(content) {
|
|
|
72
72
|
var filteredMarks = node.marks.filter(function (mark) {
|
|
73
73
|
return mark.type.name !== 'breakout';
|
|
74
74
|
});
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
if (node.isText) {
|
|
76
|
+
nodes.push(node);
|
|
77
|
+
} else {
|
|
78
|
+
var newNode = node.type.create(node.attrs, node.content, filteredMarks);
|
|
79
|
+
nodes.push(newNode);
|
|
80
|
+
}
|
|
77
81
|
});
|
|
78
82
|
return Fragment.from(nodes);
|
|
79
83
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/lozenge": "^13.1.0",
|
|
50
50
|
"@atlaskit/modal-dialog": "^14.7.0",
|
|
51
51
|
"@atlaskit/primitives": "^16.4.0",
|
|
52
|
-
"@atlaskit/tokens": "8.
|
|
52
|
+
"@atlaskit/tokens": "8.4.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.10.0",
|
|
54
54
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|