@textbus/collaborate 5.0.0-alpha.3 → 5.0.0-alpha.4
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.
- package/bundles/index.esm.js +3 -1
- package/bundles/index.js +3 -1
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
@@ -580,7 +580,7 @@ let Collaborate = class Collaborate {
|
|
580
580
|
if (loadedSubDocument) {
|
581
581
|
const subContent = loadedSubDocument.getText('content');
|
582
582
|
const data = loadedSubDocument.getMap('data');
|
583
|
-
this.
|
583
|
+
this.syncSharedMapToLocalMap(data, slot.data);
|
584
584
|
this.syncRootSlot(loadedSubDocument, subContent, slot);
|
585
585
|
this.addSubModelEvent.next({
|
586
586
|
yDoc: loadedSubDocument,
|
@@ -598,6 +598,8 @@ let Collaborate = class Collaborate {
|
|
598
598
|
}
|
599
599
|
slot.loader.markAsLoaded();
|
600
600
|
const subContent = subDocument.getText('content');
|
601
|
+
const data = subDocument.getMap('data');
|
602
|
+
this.syncSharedMapToLocalMap(data, slot.data);
|
601
603
|
this.syncRootSlot(subDocument, subContent, slot);
|
602
604
|
this.addSubModelEvent.next({
|
603
605
|
yDoc: subDocument,
|
package/bundles/index.js
CHANGED
@@ -582,7 +582,7 @@ exports.Collaborate = class Collaborate {
|
|
582
582
|
if (loadedSubDocument) {
|
583
583
|
const subContent = loadedSubDocument.getText('content');
|
584
584
|
const data = loadedSubDocument.getMap('data');
|
585
|
-
this.
|
585
|
+
this.syncSharedMapToLocalMap(data, slot.data);
|
586
586
|
this.syncRootSlot(loadedSubDocument, subContent, slot);
|
587
587
|
this.addSubModelEvent.next({
|
588
588
|
yDoc: loadedSubDocument,
|
@@ -600,6 +600,8 @@ exports.Collaborate = class Collaborate {
|
|
600
600
|
}
|
601
601
|
slot.loader.markAsLoaded();
|
602
602
|
const subContent = subDocument.getText('content');
|
603
|
+
const data = subDocument.getMap('data');
|
604
|
+
this.syncSharedMapToLocalMap(data, slot.data);
|
603
605
|
this.syncRootSlot(subDocument, subContent, slot);
|
604
606
|
this.addSubModelEvent.next({
|
605
607
|
yDoc: subDocument,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "5.0.0-alpha.
|
3
|
+
"version": "5.0.0-alpha.4",
|
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",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"bugs": {
|
51
51
|
"url": "https://github.com/textbus/textbus.git/issues"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "2a056b755365c23f31ca71abac859edd7e065d85"
|
54
54
|
}
|