@textbus/collaborate 3.0.0-alpha.36 → 3.0.0-alpha.38
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 +8 -8
- package/bundles/index.js +8 -8
- package/package.json +3 -3
package/bundles/index.esm.js
CHANGED
|
@@ -73,6 +73,14 @@ class ContentMap {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
let Collaborate = class Collaborate {
|
|
76
|
+
get canBack() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canUndo()) || false;
|
|
79
|
+
}
|
|
80
|
+
get canForward() {
|
|
81
|
+
var _a;
|
|
82
|
+
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canRedo()) || false;
|
|
83
|
+
}
|
|
76
84
|
constructor(stackSize, rootComponentRef, controller, scheduler, registry, selection, starter) {
|
|
77
85
|
this.stackSize = stackSize;
|
|
78
86
|
this.rootComponentRef = rootComponentRef;
|
|
@@ -106,14 +114,6 @@ let Collaborate = class Collaborate {
|
|
|
106
114
|
this.onPush = this.pushEvent.asObservable();
|
|
107
115
|
this.onLocalChangesApplied = this.localChangesAppliedEvent.asObservable();
|
|
108
116
|
}
|
|
109
|
-
get canBack() {
|
|
110
|
-
var _a;
|
|
111
|
-
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canUndo()) || false;
|
|
112
|
-
}
|
|
113
|
-
get canForward() {
|
|
114
|
-
var _a;
|
|
115
|
-
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canRedo()) || false;
|
|
116
|
-
}
|
|
117
117
|
listen() {
|
|
118
118
|
const root = this.yDoc.getMap('RootComponent');
|
|
119
119
|
const rootComponent = this.rootComponentRef.component;
|
package/bundles/index.js
CHANGED
|
@@ -75,6 +75,14 @@ class ContentMap {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
exports.Collaborate = class Collaborate {
|
|
78
|
+
get canBack() {
|
|
79
|
+
var _a;
|
|
80
|
+
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canUndo()) || false;
|
|
81
|
+
}
|
|
82
|
+
get canForward() {
|
|
83
|
+
var _a;
|
|
84
|
+
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canRedo()) || false;
|
|
85
|
+
}
|
|
78
86
|
constructor(stackSize, rootComponentRef, controller, scheduler, registry, selection, starter) {
|
|
79
87
|
this.stackSize = stackSize;
|
|
80
88
|
this.rootComponentRef = rootComponentRef;
|
|
@@ -108,14 +116,6 @@ exports.Collaborate = class Collaborate {
|
|
|
108
116
|
this.onPush = this.pushEvent.asObservable();
|
|
109
117
|
this.onLocalChangesApplied = this.localChangesAppliedEvent.asObservable();
|
|
110
118
|
}
|
|
111
|
-
get canBack() {
|
|
112
|
-
var _a;
|
|
113
|
-
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canUndo()) || false;
|
|
114
|
-
}
|
|
115
|
-
get canForward() {
|
|
116
|
-
var _a;
|
|
117
|
-
return ((_a = this.manager) === null || _a === void 0 ? void 0 : _a.canRedo()) || false;
|
|
118
|
-
}
|
|
119
119
|
listen() {
|
|
120
120
|
const root = this.yDoc.getMap('RootComponent');
|
|
121
121
|
const rootComponent = this.rootComponentRef.component;
|
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.38",
|
|
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.4",
|
|
29
29
|
"@tanbo/stream": "^1.1.8",
|
|
30
|
-
"@textbus/core": "^3.0.0-alpha.
|
|
30
|
+
"@textbus/core": "^3.0.0-alpha.38",
|
|
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": "5a467be66bf6ed9feca7e3c591bfbc73600e69f9"
|
|
54
54
|
}
|