@textbus/collaborate 3.0.0-alpha.25 → 3.0.0-alpha.27
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 +4 -12
- package/bundles/index.js +4 -12
- package/package.json +3 -3
package/bundles/index.esm.js
CHANGED
|
@@ -351,9 +351,7 @@ let Collaborate = class Collaborate {
|
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
353
|
content.observe(syncRemote);
|
|
354
|
-
const sub = slot.onContentChange.
|
|
355
|
-
return !this.scheduler.ignoreChanges;
|
|
356
|
-
})).subscribe(actions => {
|
|
354
|
+
const sub = slot.onContentChange.subscribe(actions => {
|
|
357
355
|
this.runLocalUpdate(() => {
|
|
358
356
|
var _a;
|
|
359
357
|
let offset = 0;
|
|
@@ -443,9 +441,7 @@ let Collaborate = class Collaborate {
|
|
|
443
441
|
});
|
|
444
442
|
};
|
|
445
443
|
remoteSlot.observe(syncRemote);
|
|
446
|
-
const sub = slot.onStateChange.
|
|
447
|
-
return !this.scheduler.ignoreChanges;
|
|
448
|
-
})).subscribe(change => {
|
|
444
|
+
const sub = slot.onStateChange.subscribe(change => {
|
|
449
445
|
this.runLocalUpdate(() => {
|
|
450
446
|
remoteSlot.set('state', change.newState);
|
|
451
447
|
}, change.record);
|
|
@@ -483,9 +479,7 @@ let Collaborate = class Collaborate {
|
|
|
483
479
|
});
|
|
484
480
|
};
|
|
485
481
|
remoteSlots.observe(syncRemote);
|
|
486
|
-
const sub = slots.onChange.
|
|
487
|
-
return !this.scheduler.ignoreChanges;
|
|
488
|
-
})).subscribe(operations => {
|
|
482
|
+
const sub = slots.onChange.subscribe(operations => {
|
|
489
483
|
this.runLocalUpdate(() => {
|
|
490
484
|
const applyActions = operations.apply;
|
|
491
485
|
let index;
|
|
@@ -533,9 +527,7 @@ let Collaborate = class Collaborate {
|
|
|
533
527
|
});
|
|
534
528
|
};
|
|
535
529
|
remoteComponent.observe(syncRemote);
|
|
536
|
-
const sub = component.onStateChange.
|
|
537
|
-
return !this.scheduler.ignoreChanges;
|
|
538
|
-
})).subscribe(change => {
|
|
530
|
+
const sub = component.onStateChange.subscribe(change => {
|
|
539
531
|
this.runLocalUpdate(() => {
|
|
540
532
|
remoteComponent.set('state', change.newState);
|
|
541
533
|
}, change.record);
|
package/bundles/index.js
CHANGED
|
@@ -353,9 +353,7 @@ exports.Collaborate = class Collaborate {
|
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
355
|
content.observe(syncRemote);
|
|
356
|
-
const sub = slot.onContentChange.
|
|
357
|
-
return !this.scheduler.ignoreChanges;
|
|
358
|
-
})).subscribe(actions => {
|
|
356
|
+
const sub = slot.onContentChange.subscribe(actions => {
|
|
359
357
|
this.runLocalUpdate(() => {
|
|
360
358
|
var _a;
|
|
361
359
|
let offset = 0;
|
|
@@ -445,9 +443,7 @@ exports.Collaborate = class Collaborate {
|
|
|
445
443
|
});
|
|
446
444
|
};
|
|
447
445
|
remoteSlot.observe(syncRemote);
|
|
448
|
-
const sub = slot.onStateChange.
|
|
449
|
-
return !this.scheduler.ignoreChanges;
|
|
450
|
-
})).subscribe(change => {
|
|
446
|
+
const sub = slot.onStateChange.subscribe(change => {
|
|
451
447
|
this.runLocalUpdate(() => {
|
|
452
448
|
remoteSlot.set('state', change.newState);
|
|
453
449
|
}, change.record);
|
|
@@ -485,9 +481,7 @@ exports.Collaborate = class Collaborate {
|
|
|
485
481
|
});
|
|
486
482
|
};
|
|
487
483
|
remoteSlots.observe(syncRemote);
|
|
488
|
-
const sub = slots.onChange.
|
|
489
|
-
return !this.scheduler.ignoreChanges;
|
|
490
|
-
})).subscribe(operations => {
|
|
484
|
+
const sub = slots.onChange.subscribe(operations => {
|
|
491
485
|
this.runLocalUpdate(() => {
|
|
492
486
|
const applyActions = operations.apply;
|
|
493
487
|
let index;
|
|
@@ -535,9 +529,7 @@ exports.Collaborate = class Collaborate {
|
|
|
535
529
|
});
|
|
536
530
|
};
|
|
537
531
|
remoteComponent.observe(syncRemote);
|
|
538
|
-
const sub = component.onStateChange.
|
|
539
|
-
return !this.scheduler.ignoreChanges;
|
|
540
|
-
})).subscribe(change => {
|
|
532
|
+
const sub = component.onStateChange.subscribe(change => {
|
|
541
533
|
this.runLocalUpdate(() => {
|
|
542
534
|
remoteComponent.set('state', change.newState);
|
|
543
535
|
}, change.record);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textbus/collaborate",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.27",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@tanbo/di": "^1.1.3",
|
|
29
29
|
"@tanbo/stream": "^1.1.8",
|
|
30
|
-
"@textbus/core": "^3.0.0-alpha.
|
|
30
|
+
"@textbus/core": "^3.0.0-alpha.27",
|
|
31
31
|
"reflect-metadata": "^0.1.13",
|
|
32
32
|
"y-protocols": "^1.0.5",
|
|
33
33
|
"yjs": "^13.5.39"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/textbus/textbus.git/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e04074dc20483ad5313766ed859b38f5a6de7fa3"
|
|
54
54
|
}
|