@manuscripts/track-changes-plugin 1.7.0-LEAN-2850 → 1.7.0-LEAN-2850-1

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
@@ -1448,9 +1448,7 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
1448
1448
  // Dont add update changes if there exists already an insert change for this node
1449
1449
  if ((JSON.stringify(oldAttrs) !== JSON.stringify(c.newAttrs) ||
1450
1450
  c.node.type === c.node.type.schema.nodes.citation) &&
1451
- !oldDataTracked.find((d) => (d.operation === exports.CHANGE_OPERATION.insert ||
1452
- d.operation === exports.CHANGE_OPERATION.set_node_attributes) &&
1453
- d.status === exports.CHANGE_STATUS.pending)) {
1451
+ !oldDataTracked.find((d) => d.operation === exports.CHANGE_OPERATION.insert && d.status === exports.CHANGE_STATUS.pending)) {
1454
1452
  newDataTracked.push(newUpdate);
1455
1453
  }
1456
1454
  newTr.setNodeMarkup(mapping.map(c.pos), undefined, {
package/dist/index.js CHANGED
@@ -1440,9 +1440,7 @@ function processChangeSteps(changes, startPos, newTr, emptyAttrs, schema) {
1440
1440
  // Dont add update changes if there exists already an insert change for this node
1441
1441
  if ((JSON.stringify(oldAttrs) !== JSON.stringify(c.newAttrs) ||
1442
1442
  c.node.type === c.node.type.schema.nodes.citation) &&
1443
- !oldDataTracked.find((d) => (d.operation === CHANGE_OPERATION.insert ||
1444
- d.operation === CHANGE_OPERATION.set_node_attributes) &&
1445
- d.status === CHANGE_STATUS.pending)) {
1443
+ !oldDataTracked.find((d) => d.operation === CHANGE_OPERATION.insert && d.status === CHANGE_STATUS.pending)) {
1446
1444
  newDataTracked.push(newUpdate);
1447
1445
  }
1448
1446
  newTr.setNodeMarkup(mapping.map(c.pos), undefined, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manuscripts/track-changes-plugin",
3
- "version": "1.7.0-LEAN-2850",
3
+ "version": "1.7.0-LEAN-2850-1",
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",