@textbus/collaborate 5.0.0-alpha.9 → 5.1.0

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.
@@ -596,7 +596,6 @@ let Collaborate = class Collaborate {
596
596
  if (isDestroyed) {
597
597
  return;
598
598
  }
599
- slot.loader.markAsLoaded();
600
599
  const subContent = subDocument.getText('content');
601
600
  const state = subDocument.getMap('state');
602
601
  this.syncSharedMapToLocalMap(state, slot.state);
@@ -605,6 +604,7 @@ let Collaborate = class Collaborate {
605
604
  yDoc: subDocument,
606
605
  yType: subContent
607
606
  });
607
+ slot.loader.markAsLoaded();
608
608
  });
609
609
  slot.__changeMarker__.addDetachCallback(() => {
610
610
  isDestroyed = true;
@@ -734,13 +734,13 @@ let Collaborate = class Collaborate {
734
734
  if (isDestroyed) {
735
735
  return;
736
736
  }
737
- instance.loader.markAsLoaded();
738
737
  const state = subDocument.getMap('state');
739
738
  this.syncComponent(subDocument, state, instance);
740
739
  this.addSubModelEvent.next({
741
740
  yType: state,
742
741
  yDoc: subDocument
743
742
  });
743
+ instance.loader.markAsLoaded();
744
744
  });
745
745
  state.__changeMarker__.addDetachCallback(() => {
746
746
  isDestroyed = true;
package/bundles/index.js CHANGED
@@ -598,7 +598,6 @@ exports.Collaborate = class Collaborate {
598
598
  if (isDestroyed) {
599
599
  return;
600
600
  }
601
- slot.loader.markAsLoaded();
602
601
  const subContent = subDocument.getText('content');
603
602
  const state = subDocument.getMap('state');
604
603
  this.syncSharedMapToLocalMap(state, slot.state);
@@ -607,6 +606,7 @@ exports.Collaborate = class Collaborate {
607
606
  yDoc: subDocument,
608
607
  yType: subContent
609
608
  });
609
+ slot.loader.markAsLoaded();
610
610
  });
611
611
  slot.__changeMarker__.addDetachCallback(() => {
612
612
  isDestroyed = true;
@@ -736,13 +736,13 @@ exports.Collaborate = class Collaborate {
736
736
  if (isDestroyed) {
737
737
  return;
738
738
  }
739
- instance.loader.markAsLoaded();
740
739
  const state = subDocument.getMap('state');
741
740
  this.syncComponent(subDocument, state, instance);
742
741
  this.addSubModelEvent.next({
743
742
  yType: state,
744
743
  yDoc: subDocument
745
744
  });
745
+ instance.loader.markAsLoaded();
746
746
  });
747
747
  state.__changeMarker__.addDetachCallback(() => {
748
748
  isDestroyed = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/collaborate",
3
- "version": "5.0.0-alpha.9",
3
+ "version": "5.1.0",
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",
@@ -25,12 +25,12 @@
25
25
  "typescript editor"
26
26
  ],
27
27
  "dependencies": {
28
- "@hocuspocus/provider": "^2.15.2",
28
+ "@hocuspocus/provider": "^2.15.2 || ^3.0.0",
29
29
  "@tanbo/stream": "^1.2.7",
30
- "@textbus/core": "^5.0.0-alpha.9",
31
- "@viewfly/core": "^2.0.0-alpha.3",
32
- "y-websocket": "^2.1.0",
33
- "yjs": "^13.6.23"
30
+ "@textbus/core": "^5.1.0",
31
+ "@viewfly/core": "^2.0.0-alpha.6",
32
+ "y-websocket": "^3.0.0",
33
+ "yjs": "^13.6.29"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@rollup/plugin-commonjs": "^28.0.2",
@@ -50,5 +50,5 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/textbus/textbus.git/issues"
52
52
  },
53
- "gitHead": "d1c7657012a684f072e2a6afa26d05f9ac058021"
53
+ "gitHead": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
54
54
  }