@textbus/collaborate 4.3.13 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/index.esm.js +8 -1
- package/bundles/index.js +8 -1
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -865,7 +865,14 @@ let Collaborate = class Collaborate {
|
|
865
865
|
for (const action of actions) {
|
866
866
|
switch (action.type) {
|
867
867
|
case 'propSet':
|
868
|
-
|
868
|
+
{
|
869
|
+
const subModel = this.createSharedModelByLocalModel(action.ref);
|
870
|
+
sharedObject.set(action.key, subModel);
|
871
|
+
if (sharedObject.size === 0) {
|
872
|
+
// 奇怪的 bug,设置了子模型,但子模型会标记为 deleted,导致设置后无效
|
873
|
+
console.error(collaborateErrorFn(`prop set error, key is ${action.key}`));
|
874
|
+
}
|
875
|
+
}
|
869
876
|
break;
|
870
877
|
case 'propDelete':
|
871
878
|
sharedObject.delete(action.key);
|
package/bundles/index.js
CHANGED
@@ -867,7 +867,14 @@ exports.Collaborate = class Collaborate {
|
|
867
867
|
for (const action of actions) {
|
868
868
|
switch (action.type) {
|
869
869
|
case 'propSet':
|
870
|
-
|
870
|
+
{
|
871
|
+
const subModel = this.createSharedModelByLocalModel(action.ref);
|
872
|
+
sharedObject.set(action.key, subModel);
|
873
|
+
if (sharedObject.size === 0) {
|
874
|
+
// 奇怪的 bug,设置了子模型,但子模型会标记为 deleted,导致设置后无效
|
875
|
+
console.error(collaborateErrorFn(`prop set error, key is ${action.key}`));
|
876
|
+
}
|
877
|
+
}
|
871
878
|
break;
|
872
879
|
case 'propDelete':
|
873
880
|
sharedObject.delete(action.key);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.4.0",
|
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,8 +27,8 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@hocuspocus/provider": "^2.15.2",
|
29
29
|
"@tanbo/stream": "^1.2.7",
|
30
|
-
"@textbus/core": "^
|
31
|
-
"@viewfly/core": "^1.
|
30
|
+
"@textbus/core": "^5.0.0-alpha.0",
|
31
|
+
"@viewfly/core": "^1.2.0",
|
32
32
|
"y-websocket": "^2.1.0",
|
33
33
|
"yjs": "^13.6.23"
|
34
34
|
},
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"bugs": {
|
51
51
|
"url": "https://github.com/textbus/textbus.git/issues"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "adf1cd3554a209b58219bcc2dbae8ac7b396bbb5"
|
54
54
|
}
|