@textbus/collaborate 4.0.0-alpha.50 → 4.0.0-alpha.52
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/index.esm.js +5 -2
- package/bundles/index.js +5 -2
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -611,7 +611,10 @@ let Collaborate = class Collaborate {
|
|
611
611
|
}
|
612
612
|
break;
|
613
613
|
case 'delete':
|
614
|
-
|
614
|
+
if (action.count <= 0) {
|
615
|
+
break;
|
616
|
+
}
|
617
|
+
sharedArray.delete(index, action.count);
|
615
618
|
break;
|
616
619
|
case 'setIndex':
|
617
620
|
sharedArray.delete(action.index, 1);
|
@@ -673,7 +676,7 @@ let Collaborate = class Collaborate {
|
|
673
676
|
for (const action of actions) {
|
674
677
|
switch (action.type) {
|
675
678
|
case 'propSet':
|
676
|
-
sharedObject.set(action.key, this.createSharedModelByLocalModel(action.
|
679
|
+
sharedObject.set(action.key, this.createSharedModelByLocalModel(action.ref));
|
677
680
|
break;
|
678
681
|
case 'propDelete':
|
679
682
|
sharedObject.delete(action.key);
|
package/bundles/index.js
CHANGED
@@ -613,7 +613,10 @@ exports.Collaborate = class Collaborate {
|
|
613
613
|
}
|
614
614
|
break;
|
615
615
|
case 'delete':
|
616
|
-
|
616
|
+
if (action.count <= 0) {
|
617
|
+
break;
|
618
|
+
}
|
619
|
+
sharedArray.delete(index, action.count);
|
617
620
|
break;
|
618
621
|
case 'setIndex':
|
619
622
|
sharedArray.delete(action.index, 1);
|
@@ -675,7 +678,7 @@ exports.Collaborate = class Collaborate {
|
|
675
678
|
for (const action of actions) {
|
676
679
|
switch (action.type) {
|
677
680
|
case 'propSet':
|
678
|
-
sharedObject.set(action.key, this.createSharedModelByLocalModel(action.
|
681
|
+
sharedObject.set(action.key, this.createSharedModelByLocalModel(action.ref));
|
679
682
|
break;
|
680
683
|
case 'propDelete':
|
681
684
|
sharedObject.delete(action.key);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.52",
|
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,8 +25,8 @@
|
|
25
25
|
"typescript editor"
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
|
-
"@tanbo/stream": "^1.2.
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
28
|
+
"@tanbo/stream": "^1.2.4",
|
29
|
+
"@textbus/core": "^4.0.0-alpha.52",
|
30
30
|
"@viewfly/core": "^1.0.0-alpha.4",
|
31
31
|
"reflect-metadata": "^0.1.13",
|
32
32
|
"y-websocket": "^1.4.3",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"bugs": {
|
51
51
|
"url": "https://github.com/textbus/textbus.git/issues"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "c32fdbd9a1a03585b408297efc3c5414b3be5559"
|
54
54
|
}
|