@seafile/sdoc-editor 0.5.41-beta.6 → 0.5.41-beta.8
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.
|
@@ -51,6 +51,7 @@ export const getMergedChanges = (topLevelChanges, diffValue) => {
|
|
|
51
51
|
topLevelChangesValue.push(obj);
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
+
console.log('topLevelChangesValue', topLevelChangesValue);
|
|
54
55
|
topLevelChangesValue.forEach(item => {
|
|
55
56
|
var _changes;
|
|
56
57
|
const preChange = (_changes = changes[changes.length - 1]) === null || _changes === void 0 ? void 0 : _changes.value;
|
|
@@ -113,6 +114,7 @@ const getTextDiff = (element, oldElement, diff) => {
|
|
|
113
114
|
const oldText = oldElement.text;
|
|
114
115
|
const textDiff = new DiffText(oldText || '', newText || '');
|
|
115
116
|
const textDiffs = textDiff.getDiffs();
|
|
117
|
+
console.log('textDiffs', textDiffs);
|
|
116
118
|
let newChildren = [];
|
|
117
119
|
textDiffs.forEach((item, index) => {
|
|
118
120
|
const id = "".concat(element.id || slugid.nice(), "-").concat(index);
|