y-prosemirror
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "y-prosemirror", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -55,4 +55,3 @@ "main": "./dist/y-prosemirror.cjs", | ||
"dependencies": { | ||
"lib0": "^0.2.42", | ||
"typescript": "^4.8.4" | ||
"lib0": "^0.2.42" | ||
}, | ||
@@ -80,2 +79,3 @@ "peerDependencies": { | ||
"standard": "^17.0.0", | ||
"typescript": "^4.8.4", | ||
"y-protocols": "^1.0.5", | ||
@@ -82,0 +82,0 @@ "y-webrtc": "^10.2.0", |
@@ -518,8 +518,8 @@ /** | ||
transaction.deleteSet, | ||
(struct) => | ||
struct.constructor === Y.Item && | ||
this.mapping.delete( | ||
/** @type {Y.ContentType} */ (/** @type {Y.Item} */ (struct) | ||
.content).type | ||
) | ||
(struct) => { | ||
if (struct.constructor === Y.Item) { | ||
const type = /** @type {Y.ContentType} */ (/** @type {Y.Item} */ (struct).content).type | ||
type && this.mapping.delete(type) | ||
} | ||
} | ||
) | ||
@@ -1100,2 +1100,3 @@ transaction.changed.forEach(delType) | ||
} else { | ||
mapping.delete(yDomFragment.get(left)) | ||
yDomFragment.delete(left, 1) | ||
@@ -1113,2 +1114,3 @@ yDomFragment.insert(left, [ | ||
) { | ||
mapping.delete(yChildren[0]) | ||
// Edge case handling https://github.com/yjs/y-prosemirror/issues/108 | ||
@@ -1118,2 +1120,3 @@ // Only delete the content of the Y.Text to retain remote changes on the same Y.Text object | ||
} else if (yDelLen > 0) { | ||
yDomFragment.slice(left, left + yDelLen).forEach(type => mapping.delete(type)) | ||
yDomFragment.delete(left, yDelLen) | ||
@@ -1120,0 +1123,0 @@ } |
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
249439
6
3881
17
- Removedtypescript@^4.8.4
- Removedtypescript@4.9.5(transitive)