@textbus/collaborate 4.0.0-alpha.31 → 4.0.0-alpha.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -264,7 +264,9 @@ let Collaborate = class Collaborate {
264
264
  });
265
265
  }
266
266
  else {
267
- rootComponent.state.clean();
267
+ Object.keys(rootComponent.state).forEach(key => {
268
+ Reflect.deleteProperty(rootComponent.state, key);
269
+ });
268
270
  this.syncSharedMapToLocalMap(state, rootComponent.state, rootComponent);
269
271
  }
270
272
  }
@@ -679,7 +681,7 @@ let Collaborate = class Collaborate {
679
681
  }
680
682
  });
681
683
  });
682
- localObject.destroyCallbacks.push(function () {
684
+ localObject.__changeMarker__.destroyCallbacks.push(function () {
683
685
  sharedObject.unobserve(syncRemote);
684
686
  sub.unsubscribe();
685
687
  });
package/bundles/index.js CHANGED
@@ -266,7 +266,9 @@ exports.Collaborate = class Collaborate {
266
266
  });
267
267
  }
268
268
  else {
269
- rootComponent.state.clean();
269
+ Object.keys(rootComponent.state).forEach(key => {
270
+ Reflect.deleteProperty(rootComponent.state, key);
271
+ });
270
272
  this.syncSharedMapToLocalMap(state, rootComponent.state, rootComponent);
271
273
  }
272
274
  }
@@ -681,7 +683,7 @@ exports.Collaborate = class Collaborate {
681
683
  }
682
684
  });
683
685
  });
684
- localObject.destroyCallbacks.push(function () {
686
+ localObject.__changeMarker__.destroyCallbacks.push(function () {
685
687
  sharedObject.unobserve(syncRemote);
686
688
  sub.unsubscribe();
687
689
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/collaborate",
3
- "version": "4.0.0-alpha.31",
3
+ "version": "4.0.0-alpha.33",
4
4
  "description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.3",
29
- "@textbus/core": "^4.0.0-alpha.31",
30
- "@viewfly/core": "^0.6.1",
29
+ "@textbus/core": "^4.0.0-alpha.33",
30
+ "@viewfly/core": "^0.6.3",
31
31
  "reflect-metadata": "^0.1.13",
32
32
  "y-websocket": "^1.4.3",
33
33
  "yjs": "^13.6.14"
@@ -50,5 +50,5 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/textbus/textbus.git/issues"
52
52
  },
53
- "gitHead": "54c13967d549e9c3795eb821d84ce3e811139630"
53
+ "gitHead": "5eb73f9a388d331946a8579aa6eaa23cc44bffe0"
54
54
  }