@social-mail/social-mail-client 1.2.418 → 1.2.419

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.
@@ -51514,7 +51514,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
51514
51514
  if (previous !== this.htmlDocument.body) {
51515
51515
  previous.removeAttribute("contentEditable");
51516
51516
  }
51517
- this.commit();
51517
+ this.queueCommit();
51518
51518
  }
51519
51519
  e.preventDefault();
51520
51520
  this.setSelection(target);
@@ -51575,6 +51575,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
51575
51575
  }
51576
51576
  }
51577
51577
  });
51578
+ this.htmlDocument.addEventListener("input", () => this.queueCommit());
51578
51579
  InstallDragDropHelper(this);
51579
51580
  this.htmlDocument.close();
51580
51581
  EditorCustomElements.register(this.htmlDocument);
@@ -51595,6 +51596,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
51595
51596
  }, 10);
51596
51597
  }));
51597
51598
  }
51599
+ queueCommit() {
51600
+ const id = this.lastCommitTimerID;
51601
+ if (id) {
51602
+ clearTimeout(id);
51603
+ }
51604
+ this.lastCommitTimerID = setTimeout(() => this.commit(), 1000);
51605
+ }
51598
51606
  setStylerSheet() {
51599
51607
  return __awaiter(this, void 0, void 0, function* () {
51600
51608
  const document = this.htmlDocument;