@bobfrankston/rmfmail 1.1.80 → 1.1.81
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/.commitmsg +20 -12
- package/client/app.bundle.js +10 -9
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +8 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +8 -0
- package/client/components/message-viewer.js +18 -15
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +17 -13
- package/client/lib/mailxapi.js +6 -0
- package/npmchanges.md +15 -0
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-78668 → node_modules.npmglobalize-stash-76204}/.package-lock.json +0 -0
package/client/app.js
CHANGED
|
@@ -307,6 +307,14 @@ function showAlert(message, key, opts) {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
+
// Non-blocking alert channel for components that can't import showAlert
|
|
311
|
+
// directly (message-viewer, etc.). They dispatch a `mailx-alert` CustomEvent
|
|
312
|
+
// rather than calling the blocking window.alert().
|
|
313
|
+
window.addEventListener("mailx-alert", (e) => {
|
|
314
|
+
const d = e.detail || {};
|
|
315
|
+
if (d.message)
|
|
316
|
+
showAlert(String(d.message), d.key);
|
|
317
|
+
});
|
|
310
318
|
function hideAlert() {
|
|
311
319
|
if (alertBanner) {
|
|
312
320
|
const key = alertBanner.dataset.key;
|