@bobfrankston/rmfmail 1.2.220 → 1.2.221
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.
- package/bin/mailx.js +16 -4
- package/bin/mailx.js.map +1 -1
- package/bin/mailx.ts +15 -4
- package/client/app.bundle.js +2 -2
- package/client/app.bundle.js.map +2 -2
- package/client/compose/compose.bundle.js +9 -3
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +17 -1
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +15 -1
- package/client/lib/api-client.js +2 -2
- package/client/lib/api-client.js.map +1 -1
- package/client/lib/api-client.ts +2 -2
- package/client/lib/mailxapi.js +2 -2
- package/package.json +3 -3
- package/packages/mailx-service/index.d.ts +1 -1
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +39 -11
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +39 -9
- package/packages/mailx-service/jsonrpc.js +1 -1
- package/packages/mailx-service/jsonrpc.js.map +1 -1
- package/packages/mailx-service/jsonrpc.ts +1 -1
- package/packages/mailx-service/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-142156 → node_modules.npmglobalize-stash-39780}/.package-lock.json +0 -0
package/bin/mailx.ts
CHANGED
|
@@ -2791,10 +2791,21 @@ RFC 5322 with CRLF line endings. Bodies are quoted-printable encoded (readable i
|
|
|
2791
2791
|
// and emits this when Word writes; compose.ts listens and reloads Quill.
|
|
2792
2792
|
imapManager.on("wordEditUpdated", (payload: { editId: string; html: string }) => {
|
|
2793
2793
|
handle.send({ _event: "wordEditUpdated", type: "wordEditUpdated", ...payload });
|
|
2794
|
-
//
|
|
2795
|
-
//
|
|
2796
|
-
//
|
|
2797
|
-
|
|
2794
|
+
// Deliberately NO { _msgerWindow: "focus" } here. The autosave sidecar
|
|
2795
|
+
// saves every ~2s while the user types, and each save lands in this
|
|
2796
|
+
// handler — so this line pulled the foreground off Word mid-sentence,
|
|
2797
|
+
// every couple of seconds, for the whole editing session (Bob
|
|
2798
|
+
// 2026-08-06: "keeps flipping back to rmfmail on any change"). The
|
|
2799
|
+
// focus now happens once, on wordEditClosed, below.
|
|
2800
|
+
});
|
|
2801
|
+
// Word (or the document) closed — the external edit is over. THIS is the
|
|
2802
|
+
// moment to bring rmfmail forward, replacing the old per-save focus grab.
|
|
2803
|
+
imapManager.on("wordEditClosed", (payload: { editId: string; fromPopout?: boolean }) => {
|
|
2804
|
+
handle.send({ _event: "wordEditClosed", type: "wordEditClosed", ...payload });
|
|
2805
|
+
// Only raise the MAIN window when the compose lives IN it. A popout
|
|
2806
|
+
// compose is a separate window with no service channel, so focusing
|
|
2807
|
+
// main would just cover it up.
|
|
2808
|
+
if (!payload.fromPopout) handle.send({ _msgerWindow: "focus" });
|
|
2798
2809
|
});
|
|
2799
2810
|
// Cloud-write/read failures from mailx-settings → push to UI as a banner so
|
|
2800
2811
|
// silent fall-back-to-local can no longer swallow Drive errors.
|
package/client/app.bundle.js
CHANGED
|
@@ -614,8 +614,8 @@ function readConfigHelp(name) {
|
|
|
614
614
|
function unsubscribeOneClick(url) {
|
|
615
615
|
return ipc().unsubscribeOneClick?.(url);
|
|
616
616
|
}
|
|
617
|
-
function openInWord(editId, html) {
|
|
618
|
-
return ipc().openInWord?.(editId, html) ?? Promise.resolve({ ok: false, path: "", opener: "none" });
|
|
617
|
+
function openInWord(editId, html, fromPopout = false) {
|
|
618
|
+
return ipc().openInWord?.(editId, html, fromPopout) ?? Promise.resolve({ ok: false, path: "", opener: "none" });
|
|
619
619
|
}
|
|
620
620
|
function closeWordEdit(editId) {
|
|
621
621
|
return ipc().closeWordEdit?.(editId) ?? Promise.resolve();
|