@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.
@@ -46559,7 +46559,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
46559
46559
  if (previous !== this.htmlDocument.body) {
46560
46560
  previous.removeAttribute("contentEditable");
46561
46561
  }
46562
- this.commit();
46562
+ this.queueCommit();
46563
46563
  }
46564
46564
  e.preventDefault();
46565
46565
  this.setSelection(target);
@@ -46620,6 +46620,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
46620
46620
  }
46621
46621
  }
46622
46622
  });
46623
+ this.htmlDocument.addEventListener("input", () => this.queueCommit());
46623
46624
  InstallDragDropHelper(this);
46624
46625
  this.htmlDocument.close();
46625
46626
  EditorCustomElements.register(this.htmlDocument);
@@ -46640,6 +46641,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
46640
46641
  }, 10);
46641
46642
  }));
46642
46643
  }
46644
+ queueCommit() {
46645
+ const id = this.lastCommitTimerID;
46646
+ if (id) {
46647
+ clearTimeout(id);
46648
+ }
46649
+ this.lastCommitTimerID = setTimeout(() => this.commit(), 1000);
46650
+ }
46643
46651
  setStylerSheet() {
46644
46652
  return __awaiter(this, void 0, void 0, function* () {
46645
46653
  const document = this.htmlDocument;