@bobfrankston/rmfmail 1.2.236 → 1.2.238

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.
@@ -4971,6 +4971,7 @@ init_api_client();
4971
4971
  init_edit_commands();
4972
4972
  init_context_menu();
4973
4973
  installConsoleCapture();
4974
+ connectEvents();
4974
4975
  logClientEvent("compose-module-loaded", { href: location.href, version: window.mailxVersion || "?" });
4975
4976
  var _composeT0 = performance.now();
4976
4977
  function _ctick(label) {
@@ -6774,12 +6775,12 @@ function showExternalEditHint(editorLabel) {
6774
6775
  onEvent((ev) => {
6775
6776
  if (ev?.type !== "wordEditUpdated") return;
6776
6777
  if (!wordEditId || ev.editId !== wordEditId) {
6777
- console.log(`[word-edit] ignoring save for ${ev.editId} \u2014 this window is ${wordEditId || "(no session)"}`);
6778
+ logClientEvent("word-edit-ignored", { forEditId: ev.editId, thisWindow: wordEditId || null });
6778
6779
  return;
6779
6780
  }
6780
6781
  try {
6781
6782
  extEditHintClose?.();
6782
- console.log(`[word-edit] applying mirrored save: ${(ev.html || "").length} chars (editId ${ev.editId})`);
6783
+ logClientEvent("word-edit-applied", { chars: (ev.html || "").length, editId: ev.editId });
6783
6784
  editor.setHtml(ev.html || "");
6784
6785
  showDraftStatus("Reloaded edits from external editor.", false);
6785
6786
  scheduleDraftSave();