@bobfrankston/mailx 1.0.301 → 1.0.302

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.
@@ -1 +1 @@
1
- {"height":1420,"width":2304,"x":528,"y":99}
1
+ {"height":1420,"width":2502,"x":422,"y":79}
package/client/app.js CHANGED
@@ -364,6 +364,22 @@ document.getElementById("btn-restart-quick")?.addEventListener("click", async ()
364
364
  catch { /* server is shutting down */ }
365
365
  }
366
366
  });
367
+ document.getElementById("btn-update")?.addEventListener("click", async () => {
368
+ if (restartDropdown)
369
+ restartDropdown.hidden = true;
370
+ const statusSync = document.getElementById("status-sync");
371
+ if (statusSync)
372
+ statusSync.textContent = "Checking for updates...";
373
+ const ipc = window.mailxapi || window.opener?.mailxapi;
374
+ if (ipc?.performUpdate) {
375
+ if (statusSync)
376
+ statusSync.textContent = "Updating... mailx will restart when done";
377
+ ipc.performUpdate();
378
+ }
379
+ else if (statusSync) {
380
+ statusSync.textContent = "Update not available in this mode";
381
+ }
382
+ });
367
383
  document.getElementById("btn-rebuild")?.addEventListener("click", async () => {
368
384
  if (restartDropdown)
369
385
  restartDropdown.hidden = true;
package/client/index.html CHANGED
@@ -54,6 +54,7 @@
54
54
  </button>
55
55
  <div class="tb-menu-dropdown" id="restart-dropdown" hidden>
56
56
  <button class="tb-menu-item" id="btn-restart-quick" title="Reload the page">Reload</button>
57
+ <button class="tb-menu-item" id="btn-update" title="Check for updates and install if available">Check for updates</button>
57
58
  <button class="tb-menu-item" id="btn-rebuild" title="Wipe local DB and message cache, re-download everything. Accounts and settings are preserved. Safe and fast.">Rebuild local cache</button>
58
59
  <hr class="tb-menu-sep">
59
60
  <span class="tb-menu-hint">CLI: mailx --rebuild for full reset</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",