@atlaskit/editor-plugin-synced-block 4.3.4 → 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,12 @@
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
+
3
10
  ## 4.3.4
4
11
 
5
12
  ### 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
- var newNode = node.type.create(node.attrs, node.content, filteredMarks);
82
- nodes.push(newNode);
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
- const newNode = node.type.create(node.attrs, node.content, filteredMarks);
76
- nodes.push(newNode);
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
- var newNode = node.type.create(node.attrs, node.content, filteredMarks);
76
- nodes.push(newNode);
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.4",
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",