Comparing version 13.5.25 to 13.5.26
{ | ||
"name": "yjs", | ||
"version": "13.5.25", | ||
"version": "13.5.26", | ||
"description": "Shared Editing Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/yjs.cjs", |
@@ -189,2 +189,3 @@ import { | ||
const now = time.getUnixTime() | ||
let didAdd = false | ||
if (now - this.lastChange < captureTimeout && stack.length > 0 && !undoing && !redoing) { | ||
@@ -198,2 +199,3 @@ // append change to last stack op | ||
stack.push(new StackItem(transaction.deleteSet, insertions)) | ||
didAdd = true | ||
} | ||
@@ -209,3 +211,5 @@ if (!undoing && !redoing) { | ||
}) | ||
this.emit('stack-item-added', [{ stackItem: stack[stack.length - 1], origin: transaction.origin, type: undoing ? 'redo' : 'undo', changedParentTypes: transaction.changedParentTypes }, this]) | ||
if (didAdd) { | ||
this.emit('stack-item-added', [{ stackItem: stack[stack.length - 1], origin: transaction.origin, type: undoing ? 'redo' : 'undo', changedParentTypes: transaction.changedParentTypes }, this]) | ||
} | ||
}) | ||
@@ -212,0 +216,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2071478
32035