@easy-editor/core 0.0.8 → 0.0.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.
@@ -7330,6 +7330,9 @@ let Node$1 = class Node {
7330
7330
  setExtraPropValue(key, value) {
7331
7331
  this.setPropValue(getConvertedExtraKey(key), value);
7332
7332
  }
7333
+ clearExtraPropValue(key) {
7334
+ this.getProp(getConvertedExtraKey(key), false)?.unset();
7335
+ }
7333
7336
  clearPropValue(path) {
7334
7337
  this.getProp(path, false)?.unset();
7335
7338
  }
@@ -9025,7 +9028,7 @@ class Dragon {
9025
9028
  if (!dragObject) {
9026
9029
  return;
9027
9030
  }
9028
- this.boost(dragObject, e);
9031
+ this.boost(dragObject, e, shell);
9029
9032
  };
9030
9033
  if (eventType === 'drag') {
9031
9034
  shell.draggable = true;
@@ -9041,7 +9044,7 @@ class Dragon {
9041
9044
  };
9042
9045
  }
9043
9046
  }
9044
- boost(dragObject, boostEvent) {
9047
+ boost(dragObject, boostEvent, shell) {
9045
9048
  const {
9046
9049
  designer
9047
9050
  } = this;
@@ -9089,7 +9092,10 @@ class Dragon {
9089
9092
  doc.addEventListener('keydown', checkEsc, false);
9090
9093
  });
9091
9094
  }
9092
- this.emitter.emit(DRAGON_EVENT.DRAGSTART, locateEvent);
9095
+ this.emitter.emit(DRAGON_EVENT.DRAGSTART, {
9096
+ ...locateEvent,
9097
+ shell
9098
+ });
9093
9099
  };
9094
9100
  const move = e => {
9095
9101
  if (isBoostFromDragAPI) {
@@ -9804,7 +9810,7 @@ class SettingPropEntry {
9804
9810
  } = this.extraProps;
9805
9811
  if (setValue && !extraOptions?.disableMutator) {
9806
9812
  try {
9807
- setValue(this, val);
9813
+ setValue(this, val, oldValue);
9808
9814
  } catch (e) {
9809
9815
  console.warn(e);
9810
9816
  }