@textbus/collaborate 5.4.8 → 5.4.10

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/dist/index.esm.js CHANGED
@@ -870,26 +870,33 @@ var Collaborate = /*#__PURE__*/ function() {
870
870
  Object.keys(attrs).forEach(function(key) {
871
871
  var attribute = _this.registry.getAttribute(key);
872
872
  if (attribute) {
873
- localSlot.setAttribute(attribute, attrs[key]);
873
+ localSlot.skipCheckHost(function() {
874
+ localSlot.setAttribute(attribute, attrs[key]);
875
+ });
874
876
  }
875
877
  });
876
878
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
877
879
  try {
878
- for(var _iterator = delta[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
880
+ var _this1, _loop = function() {
879
881
  var action = _step.value;
880
882
  if (action.insert) {
881
883
  if (typeof action.insert === 'string') {
882
- var formats = remoteInsertFormatsToLocal(this.registry, action.attributes);
883
- localSlot.insert(action.insert, formats);
884
+ var formats = remoteInsertFormatsToLocal(_this1.registry, action.attributes);
885
+ localSlot.skipCheckHost(function() {
886
+ localSlot.insert(action.insert, formats);
887
+ });
884
888
  } else {
885
889
  var sharedComponent = action.insert;
886
- var component = this.createLocalComponentBySharedComponent(sharedComponent);
887
- localSlot.insert(component, remoteInsertFormatsToLocal(this.registry, action.attributes));
890
+ var component = _this1.createLocalComponentBySharedComponent(sharedComponent);
891
+ localSlot.skipCheckHost(function() {
892
+ localSlot.insert(component, remoteInsertFormatsToLocal(_this.registry, action.attributes));
893
+ });
888
894
  }
889
895
  } else {
890
896
  throw collaborateErrorFn('unexpected delta action.');
891
897
  }
892
- }
898
+ };
899
+ for(var _iterator = delta[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_this1 = this, _loop();
893
900
  } catch (err) {
894
901
  _didIteratorError = true;
895
902
  _iteratorError = err;