@manuscripts/track-changes-plugin 1.3.1-LEAN-1697 → 1.3.1-LEAN-2430
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/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1388,7 +1388,8 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
|
|
|
1388
1388
|
return;
|
|
1389
1389
|
}
|
|
1390
1390
|
mergeTrackedMarks(mapping.map(c.from), newTr.doc, newTr, schema);
|
|
1391
|
-
|
|
1391
|
+
const to = mapping.map(c.to) + c.slice.size;
|
|
1392
|
+
mergeTrackedMarks(mapping.map(c.to) + (to < newTr.doc.nodeSize ? c.slice.size : 0), newTr.doc, newTr, schema);
|
|
1392
1393
|
selectionPos = mapping.map(c.to) + c.slice.size;
|
|
1393
1394
|
}
|
|
1394
1395
|
else if (c.type === 'update-node-attrs') {
|
package/dist/index.js
CHANGED
|
@@ -1380,7 +1380,8 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
|
|
|
1380
1380
|
return;
|
|
1381
1381
|
}
|
|
1382
1382
|
mergeTrackedMarks(mapping.map(c.from), newTr.doc, newTr, schema);
|
|
1383
|
-
|
|
1383
|
+
const to = mapping.map(c.to) + c.slice.size;
|
|
1384
|
+
mergeTrackedMarks(mapping.map(c.to) + (to < newTr.doc.nodeSize ? c.slice.size : 0), newTr.doc, newTr, schema);
|
|
1384
1385
|
selectionPos = mapping.map(c.to) + c.slice.size;
|
|
1385
1386
|
}
|
|
1386
1387
|
else if (c.type === 'update-node-attrs') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/track-changes-plugin",
|
|
3
|
-
"version": "1.3.1-LEAN-
|
|
3
|
+
"version": "1.3.1-LEAN-2430",
|
|
4
4
|
"author": "Atypon Systems LLC",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/Atypon-OpenSource/manuscripts-quarterback/tree/main/quarterback-packages/track-changes-plugin",
|