Comparing version 13.5.11 to 13.5.12
{ | ||
"name": "yjs", | ||
"version": "13.5.11", | ||
"version": "13.5.12", | ||
"description": "Shared Editing Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/yjs.cjs", |
@@ -167,8 +167,9 @@ | ||
const ownClientId = doc.clientID | ||
let nextFormat = currPos.left | ||
const right = currPos.right | ||
negatedAttributes.forEach((val, key) => { | ||
nextFormat = new Item(createID(ownClientId, getState(doc.store, ownClientId)), nextFormat, nextFormat && nextFormat.lastId, right, right && right.id, parent, null, new ContentFormat(key, val)) | ||
const left = currPos.left | ||
const right = currPos.right | ||
const nextFormat = new Item(createID(ownClientId, getState(doc.store, ownClientId)), left, left && left.lastId, right, right && right.id, parent, null, new ContentFormat(key, val)) | ||
nextFormat.integrate(transaction, 0) | ||
currPos.right = nextFormat | ||
currPos.forward() | ||
}) | ||
@@ -175,0 +176,0 @@ } |
@@ -85,3 +85,3 @@ | ||
// @ts-ignore | ||
el.insert(0, el.toArray().map(item => item instanceof AbstractType ? item.clone() : item)) | ||
el.insert(0, this.toArray().map(item => item instanceof AbstractType ? item.clone() : item)) | ||
return el | ||
@@ -88,0 +88,0 @@ } |
@@ -170,3 +170,3 @@ /** | ||
// @ts-ignore | ||
el.insert(0, el.toArray().map(item => item instanceof AbstractType ? item.clone() : item)) | ||
el.insert(0, this.toArray().map(item => item instanceof AbstractType ? item.clone() : item)) | ||
return el | ||
@@ -173,0 +173,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
2019436
31195