@textbus/collaborate 3.0.0-alpha.45 → 3.0.0-alpha.47

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.45",
3
+ "version": "3.0.0-alpha.47",
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/di": "^1.1.4",
29
- "@tanbo/stream": "^1.1.8",
30
- "@textbus/core": "^3.0.0-alpha.45",
29
+ "@tanbo/stream": "^1.1.9",
30
+ "@textbus/core": "^3.0.0-alpha.47",
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": "d97dc3e2605dce64f15f2c75904f17a100f35ab7"
53
+ "gitHead": "2cbb3985dcfeea87cfd87004bd42d27c4e0392ce"
54
54
  }