@manuscripts/track-changes-plugin 1.3.0 → 1.3.1-LEAN-1697

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 CHANGED
@@ -1388,7 +1388,7 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
1388
1388
  return;
1389
1389
  }
1390
1390
  mergeTrackedMarks(mapping.map(c.from), newTr.doc, newTr, schema);
1391
- mergeTrackedMarks(mapping.map(c.to), newTr.doc, newTr, schema);
1391
+ mergeTrackedMarks(mapping.map(c.to) + (newTr.doc.nodeSize < c.slice.size ? newTr.doc.nodeSize : 0), newTr.doc, newTr, schema);
1392
1392
  selectionPos = mapping.map(c.to) + c.slice.size;
1393
1393
  }
1394
1394
  else if (c.type === 'update-node-attrs') {
package/dist/index.js CHANGED
@@ -1380,7 +1380,7 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
1380
1380
  return;
1381
1381
  }
1382
1382
  mergeTrackedMarks(mapping.map(c.from), newTr.doc, newTr, schema);
1383
- mergeTrackedMarks(mapping.map(c.to), newTr.doc, newTr, schema);
1383
+ mergeTrackedMarks(mapping.map(c.to) + (newTr.doc.nodeSize < c.slice.size ? newTr.doc.nodeSize : 0), newTr.doc, newTr, schema);
1384
1384
  selectionPos = mapping.map(c.to) + c.slice.size;
1385
1385
  }
1386
1386
  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.0",
3
+ "version": "1.3.1-LEAN-1697",
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",
@@ -24,9 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "devDependencies": {
27
- "@manuscripts/data": "^0.1.12",
28
- "@manuscripts/json-schema": "^2.0.0",
29
- "@manuscripts/transform": "^1.2.0",
27
+ "@manuscripts/data": "^1.0.2",
28
+ "@manuscripts/json-schema": "^2.0.1",
29
+ "@manuscripts/transform": "^1.2.3",
30
30
  "@rollup/plugin-commonjs": "^22.0.2",
31
31
  "@types/debug": "^4.1.7",
32
32
  "@types/jest": "27.5.1",