@bobfrankston/rmfmail 1.2.184 → 1.2.186
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/client/app.bundle.js +31 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +13 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +12 -0
- package/client/components/message-viewer.js +20 -0
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +20 -0
- package/client/compose/compose.bundle.js +172 -7
- package/client/compose/compose.bundle.js.map +4 -4
- package/client/compose/editor-help.js +1 -0
- package/client/compose/editor-help.js.map +1 -1
- package/client/compose/editor-help.ts +1 -0
- package/client/compose/editor.js +26 -0
- package/client/compose/editor.js.map +1 -1
- package/client/compose/editor.ts +26 -0
- package/client/compose/paste-markdown.js +0 -0
- package/client/compose/paste-markdown.js.map +1 -0
- package/client/compose/paste-markdown.ts +0 -0
- package/client/lib/rmf-tiny.js +3 -1
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-62132 → node_modules.npmglobalize-stash-57292}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -2635,6 +2635,26 @@ ${csp}
|
|
|
2635
2635
|
window.parent.postMessage({ type: "linkClick", url: url }, "*");
|
|
2636
2636
|
}
|
|
2637
2637
|
document.addEventListener("click", handleLinkTap, true);
|
|
2638
|
+
// Remote-image failure diagnostic. Bob 2026-07-28: an allowlisted
|
|
2639
|
+
// Nextdoor digest rendered every https image as a broken icon while the
|
|
2640
|
+
// same URLs fetched fine from curl \u2014 untraceable after the fact because
|
|
2641
|
+
// image load failures are silent. Report failures to the parent, which
|
|
2642
|
+
// logs them to the daemon log with the first failing URL.
|
|
2643
|
+
window.addEventListener("load", function () {
|
|
2644
|
+
setTimeout(function () {
|
|
2645
|
+
try {
|
|
2646
|
+
var bad = [];
|
|
2647
|
+
var imgs = document.images || [];
|
|
2648
|
+
for (var i = 0; i < imgs.length; i++) {
|
|
2649
|
+
var im = imgs[i];
|
|
2650
|
+
if (im.complete && im.naturalWidth === 0 && /^https?:/.test(im.src)) bad.push(im.src);
|
|
2651
|
+
}
|
|
2652
|
+
if (bad.length) {
|
|
2653
|
+
window.parent.postMessage({ type: "imgLoadFail", count: bad.length, total: imgs.length, first: String(bad[0]).slice(0, 160) }, "*");
|
|
2654
|
+
}
|
|
2655
|
+
} catch (e3) { /* diagnostic only */ }
|
|
2656
|
+
}, 3000);
|
|
2657
|
+
});
|
|
2638
2658
|
// Android WebView fallback: some builds drop the synthetic click after
|
|
2639
2659
|
// touchend, so treat a stationary touchstart\u2192touchend on the same link
|
|
2640
2660
|
// as a tap. Anything that moves more than TAP_SLOP pixels is a scroll
|
|
@@ -10046,6 +10066,17 @@ window.addEventListener("message", (e) => {
|
|
|
10046
10066
|
if (api?.openExternal) api.openExternal(url);
|
|
10047
10067
|
else window.open(url, "_blank", "noopener,noreferrer");
|
|
10048
10068
|
}
|
|
10069
|
+
if (e.data?.type === "imgLoadFail") {
|
|
10070
|
+
try {
|
|
10071
|
+
logClientEvent("[viewer] remote images failed to load", {
|
|
10072
|
+
failed: e.data.count,
|
|
10073
|
+
total: e.data.total,
|
|
10074
|
+
first: e.data.first
|
|
10075
|
+
});
|
|
10076
|
+
} catch {
|
|
10077
|
+
}
|
|
10078
|
+
return;
|
|
10079
|
+
}
|
|
10049
10080
|
if (e.data?.type === "previewToggleFullscreen") {
|
|
10050
10081
|
toggleFullscreenPreview();
|
|
10051
10082
|
return;
|