@bobfrankston/rmfmail 1.2.295 → 1.2.297

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.
Files changed (38) hide show
  1. package/.commitmsg +29 -15
  2. package/client/android-bootstrap.bundle.js +69 -11
  3. package/client/android-bootstrap.bundle.js.map +3 -3
  4. package/client/app.bundle.js +30 -0
  5. package/client/app.bundle.js.map +3 -3
  6. package/client/app.js +27 -1
  7. package/client/app.js.map +1 -1
  8. package/client/app.ts +25 -1
  9. package/client/index.html +5 -0
  10. package/client/styles/components.css +22 -5
  11. package/npmchanges.md +53 -0
  12. package/package.json +8 -8
  13. package/packages/mailx-imap/index.d.ts +1 -0
  14. package/packages/mailx-imap/index.d.ts.map +1 -1
  15. package/packages/mailx-imap/index.js +75 -11
  16. package/packages/mailx-imap/index.js.map +1 -1
  17. package/packages/mailx-imap/index.ts +76 -12
  18. package/packages/mailx-imap/package-lock.json +2 -2
  19. package/packages/mailx-imap/package.json +1 -1
  20. package/packages/mailx-settings/package.json +1 -1
  21. package/packages/mailx-store/package.json +1 -1
  22. package/packages/mailx-store-web/android-bootstrap.d.ts.map +1 -1
  23. package/packages/mailx-store-web/android-bootstrap.js +6 -2
  24. package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
  25. package/packages/mailx-store-web/android-bootstrap.ts +8 -2
  26. package/packages/mailx-store-web/package.json +1 -1
  27. package/packages/mailx-types/index.d.ts +1 -0
  28. package/packages/mailx-types/index.d.ts.map +1 -1
  29. package/packages/mailx-types/index.js +1 -0
  30. package/packages/mailx-types/index.js.map +1 -1
  31. package/packages/mailx-types/index.ts +1 -0
  32. package/packages/mailx-types/log-changes.d.ts +29 -0
  33. package/packages/mailx-types/log-changes.d.ts.map +1 -0
  34. package/packages/mailx-types/log-changes.js +42 -0
  35. package/packages/mailx-types/log-changes.js.map +1 -0
  36. package/packages/mailx-types/log-changes.ts +44 -0
  37. package/packages/mailx-types/package.json +1 -1
  38. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-52364 → node_modules.npmglobalize-stash-77248}/.package-lock.json +0 -0
@@ -1387,6 +1387,15 @@ var init_trust = __esm({
1387
1387
  }
1388
1388
  });
1389
1389
 
1390
+ // packages/mailx-types/log-changes.js
1391
+ var RESTATE_AFTER_MS;
1392
+ var init_log_changes = __esm({
1393
+ "packages/mailx-types/log-changes.js"() {
1394
+ "use strict";
1395
+ RESTATE_AFTER_MS = 60 * 60 * 1e3;
1396
+ }
1397
+ });
1398
+
1390
1399
  // packages/mailx-types/contacts-config.js
1391
1400
  var init_contacts_config = __esm({
1392
1401
  "packages/mailx-types/contacts-config.js"() {
@@ -1489,6 +1498,7 @@ var init_mailx_types = __esm({
1489
1498
  "use strict";
1490
1499
  init_contact_rules();
1491
1500
  init_trust();
1501
+ init_log_changes();
1492
1502
  init_contacts_config();
1493
1503
  init_groups();
1494
1504
  init_reminder_state();
@@ -13472,6 +13482,23 @@ function syncFilterFlaggedButton() {
13472
13482
  btn.classList.toggle("active", !!optFlagged?.checked);
13473
13483
  btn.setAttribute("aria-pressed", optFlagged?.checked ? "true" : "false");
13474
13484
  }
13485
+ function syncFilterChip() {
13486
+ const chip = document.getElementById("ml-filter-chip");
13487
+ if (!chip) return;
13488
+ const flagged = !!document.getElementById("opt-flagged")?.checked;
13489
+ const priority = !!document.getElementById("opt-priority-only")?.checked;
13490
+ const names = [flagged ? "flagged (\u2605) messages" : "", priority ? "priority senders" : ""].filter(Boolean);
13491
+ if (!names.length) {
13492
+ chip.hidden = true;
13493
+ return;
13494
+ }
13495
+ chip.hidden = false;
13496
+ chip.textContent = "Showing " + names.join(" and ") + " only \u2014 click to show everything";
13497
+ chip.title = "Clear the list filter";
13498
+ }
13499
+ document.getElementById("ml-filter-chip")?.addEventListener("click", () => {
13500
+ document.dispatchEvent(new CustomEvent("mailx-clear-list-filters"));
13501
+ });
13475
13502
  function applyFlaggedFilter(on) {
13476
13503
  try {
13477
13504
  logClientEvent("applyFlaggedFilter", { on, caller: new Error().stack?.split("\n").slice(2, 5).join(" | ") });
@@ -13483,6 +13510,7 @@ function applyFlaggedFilter(on) {
13483
13510
  else body?.classList.remove("flagged-only");
13484
13511
  localStorage.setItem("mailx-flagged", String(on));
13485
13512
  syncFilterFlaggedButton();
13513
+ syncFilterChip();
13486
13514
  reloadCurrentFolder();
13487
13515
  }
13488
13516
  optFlagged?.addEventListener("change", () => {
@@ -13492,6 +13520,7 @@ document.getElementById("btn-filter-flagged")?.addEventListener("click", () => {
13492
13520
  applyFlaggedFilter(!optFlagged?.checked);
13493
13521
  });
13494
13522
  syncFilterFlaggedButton();
13523
+ syncFilterChip();
13495
13524
  var optPriorityOnly = document.getElementById("opt-priority-only");
13496
13525
  if (optPriorityOnly) {
13497
13526
  optPriorityOnly.checked = localStorage.getItem("mailx-priority-only") === "true";
@@ -13502,6 +13531,7 @@ if (optPriorityOnly) {
13502
13531
  if (optPriorityOnly.checked) body?.classList.add("priority-only");
13503
13532
  else body?.classList.remove("priority-only");
13504
13533
  localStorage.setItem("mailx-priority-only", String(optPriorityOnly.checked));
13534
+ syncFilterChip();
13505
13535
  });
13506
13536
  }
13507
13537
  document.addEventListener("mailx-clear-list-filters", () => {