@social-mail/social-mail-client 1.2.560 → 1.2.562

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.
@@ -43560,7 +43560,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
43560
43560
  if (property) {
43561
43561
  a["data-item-property"] = property.key;
43562
43562
  if (custom) {
43563
- const binder = c => c.selection.style(property.key).custom;
43563
+ const binder = c => c.selection.style(property.key).custom ? "yes" : "";
43564
43564
  binder.toString = () => `(c) => c.selection.styleProperty["${property.key.replace("-", "_")}"]`;
43565
43565
  a["data-custom-value"] = Bind.oneWay(binder);
43566
43566
  }
@@ -43785,7 +43785,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
43785
43785
  padding-right: 10px;
43786
43786
  }
43787
43787
 
43788
- &[data-custom-value=""]:not([data-custom]) > [data-element=custom] {
43788
+ &:not([data-custom]):not([data-custom-value=yes]) > [data-element=custom] {
43789
43789
  display: none;
43790
43790
  }
43791
43791
 
@@ -45466,6 +45466,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
45466
45466
  }
45467
45467
  });
45468
45468
  this.styles = new Map();
45469
+ this.isEditing = false;
45469
45470
  this.empty = {
45470
45471
  setAttribute(n, v) {
45471
45472
  this[n] = v;
@@ -45478,6 +45479,9 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
45478
45479
  this.parentName = "";
45479
45480
  this.isImage = false;
45480
45481
  this.mo = new MutationObserver(changes => {
45482
+ if (this.isEditing) {
45483
+ return;
45484
+ }
45481
45485
  AtomBinder.refreshValue(this, "element");
45482
45486
  this.cachedStyle = null;
45483
45487
  this.cachedParentStyle = null;
@@ -45537,6 +45541,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
45537
45541
  if (!e) {
45538
45542
  return;
45539
45543
  }
45544
+ owner.isEditing = true;
45540
45545
  if (!v) {
45541
45546
  e.removeAttribute(attributeName);
45542
45547
  } else {
@@ -45549,6 +45554,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
45549
45554
  AtomBinder.refreshValue(owner, "currentStyle");
45550
45555
  AtomBinder.refreshValue(owner, "parentStyle");
45551
45556
  AtomBinder.refreshValue(this, "styleProperty");
45557
+ owner.isEditing = false;
45552
45558
  }, 1);
45553
45559
  },
45554
45560
  get custom() {
@@ -47693,7 +47699,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
47693
47699
  });
47694
47700
  }
47695
47701
  });
47696
- WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.116`;
47702
+ WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.118`;
47697
47703
  }
47698
47704
  };
47699
47705
  });