@y/y 14.0.0-rc.14 → 14.0.0-rc.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ytype.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y/y",
3
- "version": "14.0.0-rc.14",
3
+ "version": "14.0.0-rc.15",
4
4
  "description": "Shared Editing Library",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/src/ytype.js CHANGED
@@ -1078,7 +1078,7 @@ export class YType {
1078
1078
  applyDelta (d, am = noAttributionsManager) {
1079
1079
  if (this.doc == null) {
1080
1080
  (this._prelim || (this._prelim = /** @type {any} */ (delta.create()))).apply(d)
1081
- } else {
1081
+ } else if (this._item?.deleted !== true) {
1082
1082
  // @todo this was moved here from ytext. Make this more generic
1083
1083
  transact(this.doc, transaction => {
1084
1084
  const currPos = new ItemTextListPosition(null, this._start, 0, new Map(), am)