@seafile/sdoc-editor 1.0.212-alph-0.1.5 → 1.0.212-alph-0.1.7
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.
|
@@ -94,25 +94,17 @@ class OutlineItem extends _react.default.PureComponent {
|
|
|
94
94
|
onMouseOver: this.onMouseOver,
|
|
95
95
|
onMouseOut: this.onMouseOut
|
|
96
96
|
}, !isSdocRevision && children.map(child => child.text || child.title).join(''), isSdocRevision && children.map(child => {
|
|
97
|
-
let style = {};
|
|
98
|
-
if (child.add) {
|
|
99
|
-
style = {
|
|
100
|
-
..._constants2.ADDED_STYLE
|
|
101
|
-
};
|
|
102
|
-
} else if (child.delete) {
|
|
103
|
-
style = {
|
|
104
|
-
..._constants2.DELETED_STYLE
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
if (style.computed_background_color) {
|
|
108
|
-
style['backgroundColor'] = style.computed_background_color;
|
|
109
|
-
delete style.computed_background_color;
|
|
110
|
-
}
|
|
111
97
|
const text = child.text || child.title;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
98
|
+
const style = {
|
|
99
|
+
...(child.add && _constants2.ADDED_STYLE),
|
|
100
|
+
...(child.delete && _constants2.DELETED_STYLE),
|
|
101
|
+
backgroundColor: child.computed_background_color || undefined
|
|
102
|
+
};
|
|
103
|
+
const content = /*#__PURE__*/_react.default.createElement("span", {
|
|
104
|
+
style: style,
|
|
105
|
+
key: child.id
|
|
115
106
|
}, text);
|
|
107
|
+
return child.delete ? /*#__PURE__*/_react.default.createElement("del", null, content) : content;
|
|
116
108
|
}));
|
|
117
109
|
}
|
|
118
110
|
}
|
|
@@ -39,7 +39,7 @@ const getTopLevelChanges = changes => {
|
|
|
39
39
|
} else {
|
|
40
40
|
var _dom4, _dom4$dataset;
|
|
41
41
|
dom = parentNode;
|
|
42
|
-
if ((_dom4 = dom) !== null && _dom4 !== void 0 && (_dom4$dataset = _dom4.dataset) !== null && _dom4$dataset !== void 0 && _dom4$dataset.id && !dom.classList.
|
|
42
|
+
if ((_dom4 = dom) !== null && _dom4 !== void 0 && (_dom4$dataset = _dom4.dataset) !== null && _dom4$dataset !== void 0 && _dom4$dataset.id && !dom.classList.contains('table-cell')) break;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
topLevelChanges.push(dom.dataset.id);
|