@textbus/collaborate 4.0.0-alpha.33 → 4.0.0-alpha.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -605,7 +605,7 @@ let Collaborate = class Collaborate {
605
605
  const data = action.ref.map(item => {
606
606
  return this.createSharedModelByLocalModel(item, parent);
607
607
  });
608
- sharedArray.insert(index, [data]);
608
+ sharedArray.insert(index, data);
609
609
  }
610
610
  break;
611
611
  case 'delete':
@@ -613,7 +613,7 @@ let Collaborate = class Collaborate {
613
613
  break;
614
614
  case 'setIndex':
615
615
  sharedArray.delete(action.index, 1);
616
- sharedArray.insert(action.index, this.createSharedModelByLocalModel(action.ref, parent));
616
+ sharedArray.insert(action.index, [this.createSharedModelByLocalModel(action.ref, parent)]);
617
617
  break;
618
618
  }
619
619
  }
package/bundles/index.js CHANGED
@@ -607,7 +607,7 @@ exports.Collaborate = class Collaborate {
607
607
  const data = action.ref.map(item => {
608
608
  return this.createSharedModelByLocalModel(item, parent);
609
609
  });
610
- sharedArray.insert(index, [data]);
610
+ sharedArray.insert(index, data);
611
611
  }
612
612
  break;
613
613
  case 'delete':
@@ -615,7 +615,7 @@ exports.Collaborate = class Collaborate {
615
615
  break;
616
616
  case 'setIndex':
617
617
  sharedArray.delete(action.index, 1);
618
- sharedArray.insert(action.index, this.createSharedModelByLocalModel(action.ref, parent));
618
+ sharedArray.insert(action.index, [this.createSharedModelByLocalModel(action.ref, parent)]);
619
619
  break;
620
620
  }
621
621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/collaborate",
3
- "version": "4.0.0-alpha.33",
3
+ "version": "4.0.0-alpha.34",
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,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.3",
29
- "@textbus/core": "^4.0.0-alpha.33",
29
+ "@textbus/core": "^4.0.0-alpha.34",
30
30
  "@viewfly/core": "^0.6.3",
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": "5eb73f9a388d331946a8579aa6eaa23cc44bffe0"
53
+ "gitHead": "b6f9bfbce3135865fc0c8a3e6b622a7040019634"
54
54
  }