domma-cms 1.71.1 → 1.72.0
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/CHANGELOG.md +6 -0
- package/docs/DommaFeatures.md +1 -0
- package/package.json +1 -1
- package/plugins/_lib/admin/mail/body-menu.js +1 -1
- package/plugins/_lib/admin/mail/cms-host.js +1 -1
- package/plugins/_lib/admin/mail/compose-window.js +76 -3
- package/plugins/_lib/admin/mail/contacts.js +1 -1
- package/plugins/_lib/admin/mail/diagnostics-section.js +1 -1
- package/plugins/_lib/admin/mail/drag-drop.js +1 -1
- package/plugins/_lib/admin/mail/folder-tree.js +1 -1
- package/plugins/_lib/admin/mail/font-controls.js +1 -1
- package/plugins/_lib/admin/mail/fonts.js +1 -1
- package/plugins/_lib/admin/mail/host-context.js +1 -1
- package/plugins/_lib/admin/mail/identity.js +1 -1
- package/plugins/_lib/admin/mail/image-senders-section.js +1 -1
- package/plugins/_lib/admin/mail/keyboard.js +1 -1
- package/plugins/_lib/admin/mail/mail.html +1 -1
- package/plugins/_lib/admin/mail/message-actions.js +1 -1
- package/plugins/_lib/admin/mail/oauth-panel.js +1 -1
- package/plugins/_lib/admin/mail/panes.js +1 -1
- package/plugins/_lib/admin/mail/reader-kit.js +1 -1
- package/plugins/_lib/admin/mail/reader-runtime.js +11 -2
- package/plugins/_lib/admin/mail/reader-view.js +1 -1
- package/plugins/_lib/admin/mail/resizable.js +1 -1
- package/plugins/_lib/admin/mail/restore-spam.js +1 -1
- package/plugins/_lib/admin/mail/rules.js +1 -1
- package/plugins/_lib/admin/mail/scheduling.js +1 -1
- package/plugins/_lib/admin/mail/section-kit.js +1 -1
- package/plugins/_lib/admin/mail/security-note.js +1 -1
- package/plugins/_lib/admin/mail/settings-section.js +1 -1
- package/plugins/_lib/admin/mail/templates.js +1 -1
- package/plugins/_lib/admin/mail/threads.js +1 -1
- package/plugins/_lib/admin/mail/vacation.js +1 -1
- package/plugins/_lib/admin/mail/when-closed.js +1 -1
- package/plugins/_lib/admin/ui/dates.js +1 -1
- package/plugins/_lib/admin/ui/resizable.js +1 -1
- package/plugins/_lib/admin/ui/rich-field.js +291 -0
- package/plugins/_lib/domma-mail.lock.json +83 -80
- package/plugins/_lib/mail/accountFileStore.js +1 -1
- package/plugins/_lib/mail/accountRepository.js +1 -1
- package/plugins/_lib/mail/accountRoutes.js +1 -1
- package/plugins/_lib/mail/bodyTokenProvider.js +1 -1
- package/plugins/_lib/mail/bodyTokens.js +1 -1
- package/plugins/_lib/mail/compose.js +1 -1
- package/plugins/_lib/mail/defaults.js +1 -1
- package/plugins/_lib/mail/envelope.js +1 -1
- package/plugins/_lib/mail/folderActions.js +1 -1
- package/plugins/_lib/mail/folderRuntime.js +1 -1
- package/plugins/_lib/mail/folders.js +1 -1
- package/plugins/_lib/mail/imapPoolRuntime.js +1 -1
- package/plugins/_lib/mail/mbox.js +1 -1
- package/plugins/_lib/mail/message-action.js +1 -1
- package/plugins/_lib/mail/messageSecurity.js +1 -1
- package/plugins/_lib/mail/messageSecurityProvider.js +1 -1
- package/plugins/_lib/mail/networkAddresses.js +1 -1
- package/plugins/_lib/mail/networkPolicy.js +1 -1
- package/plugins/_lib/mail/oauthAccounts.js +1 -1
- package/plugins/_lib/mail/oauthRouteRuntime.js +1 -1
- package/plugins/_lib/mail/oauthRuntime.js +1 -1
- package/plugins/_lib/mail/pollSchedule.js +1 -1
- package/plugins/_lib/mail/poller.js +1 -1
- package/plugins/_lib/mail/pollerRuntime.js +1 -1
- package/plugins/_lib/mail/priority.js +1 -1
- package/plugins/_lib/mail/publicMailbox.js +1 -1
- package/plugins/_lib/mail/readRuntime.js +1 -1
- package/plugins/_lib/mail/render.js +1 -1
- package/plugins/_lib/mail/ruleRunner.js +1 -1
- package/plugins/_lib/mail/schedulerRuntime.js +1 -1
- package/plugins/_lib/mail/secretProvider.js +1 -1
- package/plugins/_lib/mail/secretbox.js +1 -1
- package/plugins/_lib/mail/senderAuth.js +1 -1
- package/plugins/_lib/mail/sieve.js +1 -1
- package/plugins/_lib/mail/smtpService.js +1 -1
- package/plugins/_lib/mail/snoozeRuntime.js +1 -1
- package/plugins/_lib/mail/store.js +1 -1
- package/plugins/_lib/mail/subscriptions.js +1 -1
- package/plugins/_lib/mail/syncPlan.js +1 -1
- package/plugins/_lib/mail/syncRuntime.js +1 -1
- package/plugins/_lib/mail/syncSelection.js +1 -1
- package/plugins/_lib/mail/unreadBadge.js +1 -1
- package/plugins/_lib/mail/unsubscribe.js +1 -1
- package/plugins/_lib/mail/vacationRuntime.js +1 -1
- package/plugins/_lib/mail/write.js +1 -1
- package/plugins/_lib/public/rich-text.mjs +104 -0
- package/plugins/_lib/rich-text.js +153 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.72.0] - 2026-11-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **Mail compose takes an edition's own panel** (Domma Mail core 0.31.0). The shared compose window has a slot above the message that a Tool can fill and add fields to Save and Send; Email Pro uses it for its branding picker. Nothing changes without such a Tool.
|
|
8
|
+
|
|
3
9
|
## [1.71.1] - 2026-11-17
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/docs/DommaFeatures.md
CHANGED
|
@@ -2090,6 +2090,7 @@ A full email client in the admin: connect your own IMAP mailboxes, read, write,
|
|
|
2090
2090
|
- **Replies for Campaigns Pro (0.18.0)**: Campaigns Pro can summarise the replies to a campaign sent from the mailbox - Email finds them in that mailbox's inbox by the Message-IDs they answer and hands over only their words and dates, never who wrote them; out-of-office answers are left out and nothing is marked read or moved.
|
|
2091
2091
|
- Keyboard shortcuts: j/k or arrows to move, Enter open, u read/unread, s star, r reply, Shift+R or a reply all, f forward, c compose, `/` search, x select, Shift+A select all, `!` spam, `#` or Delete delete, Esc, `?` help.
|
|
2092
2092
|
- Sidebar badge (`/unread`): unread in Inbox (counted from the store).
|
|
2093
|
+
- **Branding (unreleased)**: Settings > **Branding** keeps up to 20 personal brandings - header artwork (width, position, description, strapline, header background), a backdrop (solid colour, 15 gradients - Surveys' 8 plus Midnight, Navy, Teal, Sand, Rose gold, Charcoal and Aurora - a pattern, or a picture darkened and blurred on the server), font (safe fonts and Google web fonts with named fallbacks) and weight, text/accent/message colours, and a footer (plain, an accent band, or an overlay on the backdrop) with photo, name, role, company, return email, phone, website, up to four links, address and small print. Pictures come from Media, the File Store or an upload (resized, metadata stripped, served publicly at an unguessable address). Which branding a message gets: chosen in the compose window, else the first To recipient's address, domain or Contacts company, else the sender's (per identity), else the general default. New messages get the full design (600px fluid tables, a solid colour under every gradient/picture for Outlook); replies and forwards only the contact line. Branded on Send, before Undo/Send later. The compose window's Branding row uses the core `extensions.compose` hook (domma-mail compose window); older cores brand automatically with no picker. Routes `/api/plugins/email-pro/branding*`.
|
|
2093
2094
|
- Notifications to the mailbox owner only: `email-pro:mailbox` (warning after 5 failed checks in a row; resolved when a check works) and `email-pro:sending` (a scheduled/undo-send message that failed).
|
|
2094
2095
|
- Permission `email` (read = Use: add own mailboxes, read and send) granted to `admin`.
|
|
2095
2096
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/body-menu.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The reading pane's right-click menu - the pure parts.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/cms-host.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** The CMS shell boundary. Standalone never imports this adapter. */
|
|
4
4
|
const version = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/compose-window.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
const {createMailHost} = await import(new URL(`./host-context.js?v=${MAIL_MODULE_VERSION}`, import.meta.url).href);
|
|
@@ -270,6 +270,7 @@ export function createComposeWindow(mailHost) {
|
|
|
270
270
|
<label class="form-label">Subject</label>
|
|
271
271
|
<input type="text" class="form-input" data-ref="subject">
|
|
272
272
|
</div>
|
|
273
|
+
<div class="mail-compose-extension" data-ref="extension" hidden></div>
|
|
273
274
|
<div class="mail-compose-body">
|
|
274
275
|
<label class="form-label">Message</label>
|
|
275
276
|
<div class="flex items-center gap-2 mail-template-row" data-bind-hidden="!hasTemplates">
|
|
@@ -336,7 +337,8 @@ export function createComposeWindow(mailHost) {
|
|
|
336
337
|
draft: opened = {}, base, accountId, api, maxAttachmentBytes = 20_000_000,
|
|
337
338
|
onSent = () => {}, onSaved = () => {}, onQueued = () => {}, contacts = [],
|
|
338
339
|
identities = [], mailboxAddress = '', templates = [], undoSeconds = 0,
|
|
339
|
-
mode = 'new', defaults = null, security = null, prefs = {}, capabilities = {}
|
|
340
|
+
mode = 'new', defaults = null, security = null, prefs = {}, capabilities = {},
|
|
341
|
+
composeExtension = null
|
|
340
342
|
}) {
|
|
341
343
|
// How this message was started, decided once. A reopened draft is never
|
|
342
344
|
// treated as new: it already carries the signature it was written with,
|
|
@@ -538,6 +540,7 @@ export function createComposeWindow(mailHost) {
|
|
|
538
540
|
|
|
539
541
|
fromSelect.addEventListener('change', () => {
|
|
540
542
|
currentIdentity = findIdentity(identities, fromSelect.value);
|
|
543
|
+
tellExtension('identityChanged', currentIdentity);
|
|
541
544
|
// The signature in the body belongs to whoever was sending a
|
|
542
545
|
// moment ago. Swapped where it can be found and left alone where
|
|
543
546
|
// it cannot - see `swapSignature`.
|
|
@@ -708,6 +711,69 @@ export function createComposeWindow(mailHost) {
|
|
|
708
711
|
: 'Discard this message? It has not been saved as a draft.';
|
|
709
712
|
}
|
|
710
713
|
|
|
714
|
+
// ---- An edition's compose extension --------------------------------
|
|
715
|
+
//
|
|
716
|
+
// `composeExtension(context)` (createReaderView's `extensions.compose`)
|
|
717
|
+
// may draw into its own slot above the message and answer extra fields
|
|
718
|
+
// for Save and Send. It is told when the sender or the recipients
|
|
719
|
+
// change, and when the window closes. Anything it throws is logged and
|
|
720
|
+
// costs the extension, never the message.
|
|
721
|
+
let extension = null;
|
|
722
|
+
const RESERVED = new Set(['to', 'cc', 'bcc', 'subject', 'body', 'html', 'attachments', 'identityId',
|
|
723
|
+
'inReplyTo', 'references', 'sourceMessage', 'sign', 'encrypt', 'priority', 'readReceipt',
|
|
724
|
+
'deliveryReceipt', 'sendAt', 'replaces']);
|
|
725
|
+
function tellExtension(name, ...args) {
|
|
726
|
+
try { extension?.[name]?.(...args); } catch (err) { console.warn(`[mail] compose extension ${name} failed:`, err); }
|
|
727
|
+
}
|
|
728
|
+
function extensionFields() {
|
|
729
|
+
try {
|
|
730
|
+
const fields = extension?.fields?.();
|
|
731
|
+
if (!fields || typeof fields !== 'object') return {};
|
|
732
|
+
return Object.fromEntries(Object.entries(fields).filter(([key]) => !RESERVED.has(key)));
|
|
733
|
+
} catch (err) {
|
|
734
|
+
console.warn('[mail] compose extension fields failed:', err);
|
|
735
|
+
return {};
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
function startExtension() {
|
|
739
|
+
if (typeof composeExtension !== 'function') return;
|
|
740
|
+
const slot = ref('extension');
|
|
741
|
+
let timer = null;
|
|
742
|
+
const recipientsChanged = () => {
|
|
743
|
+
clearTimeout(timer);
|
|
744
|
+
timer = setTimeout(() => tellExtension('recipientsChanged', recipients()), 400);
|
|
745
|
+
};
|
|
746
|
+
const recipients = () => ({
|
|
747
|
+
to: textToAddresses(toInput.value),
|
|
748
|
+
cc: textToAddresses(ccInput.value),
|
|
749
|
+
bcc: textToAddresses(bccInput.value)
|
|
750
|
+
});
|
|
751
|
+
try {
|
|
752
|
+
extension = composeExtension({
|
|
753
|
+
slot,
|
|
754
|
+
accountId,
|
|
755
|
+
api,
|
|
756
|
+
base,
|
|
757
|
+
mode: openedAs,
|
|
758
|
+
isReply: Boolean(draft.inReplyTo) || openedAs === 'forward',
|
|
759
|
+
draft: opened,
|
|
760
|
+
identity: () => currentIdentity,
|
|
761
|
+
recipients,
|
|
762
|
+
show: (on = true) => { slot.hidden = !on; },
|
|
763
|
+
helpPopovers: (root) => helpPopovers?.(root)
|
|
764
|
+
}) ?? null;
|
|
765
|
+
} catch (err) {
|
|
766
|
+
console.warn('[mail] compose extension failed to start:', err);
|
|
767
|
+
extension = null;
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
for (const input of [toInput, ccInput, bccInput]) {
|
|
771
|
+
input.addEventListener('input', recipientsChanged);
|
|
772
|
+
input.addEventListener('change', recipientsChanged);
|
|
773
|
+
}
|
|
774
|
+
closedListeners.push(() => clearTimeout(timer));
|
|
775
|
+
}
|
|
776
|
+
|
|
711
777
|
/**
|
|
712
778
|
* The message as it currently stands.
|
|
713
779
|
*
|
|
@@ -740,7 +806,11 @@ export function createComposeWindow(mailHost) {
|
|
|
740
806
|
references: draft.references ?? [],
|
|
741
807
|
sourceMessage: draft.sourceMessage ?? null,
|
|
742
808
|
attachments: attachments.peek().map(({filename, contentType, content}) =>
|
|
743
|
-
({filename, contentType, content}))
|
|
809
|
+
({filename, contentType, content})),
|
|
810
|
+
// An edition's own fields (Email Pro's branding). Spread last
|
|
811
|
+
// but never over the message itself: a hook that names `to` or
|
|
812
|
+
// `html` is ignored for that key.
|
|
813
|
+
...extensionFields()
|
|
744
814
|
};
|
|
745
815
|
}
|
|
746
816
|
|
|
@@ -1056,6 +1126,7 @@ export function createComposeWindow(mailHost) {
|
|
|
1056
1126
|
// Before the editor: it closes an open menu (left on <body> by a
|
|
1057
1127
|
// Ctrl+Enter send) and drops its dropdowns and window listener.
|
|
1058
1128
|
fontControls?.destroy();
|
|
1129
|
+
tellExtension('close');
|
|
1059
1130
|
editor?.destroy?.();
|
|
1060
1131
|
stopResizing();
|
|
1061
1132
|
for (const suggester of suggesters) suggester.destroy?.();
|
|
@@ -1072,6 +1143,8 @@ export function createComposeWindow(mailHost) {
|
|
|
1072
1143
|
setTimeout(() => { try { slideover.element?.remove(); } catch { /* gone */ } }, 400);
|
|
1073
1144
|
});
|
|
1074
1145
|
|
|
1146
|
+
startExtension();
|
|
1147
|
+
|
|
1075
1148
|
return {
|
|
1076
1149
|
/** Whether closing would lose something the reader wrote. */
|
|
1077
1150
|
dirty: () => !closed && unsaved(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/contacts.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Recipient suggestions from the host address book.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/diagnostics-section.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The settings section that answers "which build is this, and what went wrong".
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/drag-drop.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Drag identities include the mailbox and source folder: UIDs alone are not unique. */
|
|
4
4
|
const PROTECTED_USES = new Set(['\\Inbox', '\\Sent', '\\Drafts', '\\Trash', '\\Junk', '\\Archive', '\\All', '\\Flagged']);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/folder-tree.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Mail folder presentation, shared by the Mail Reader and Email Pro.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/font-controls.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/fonts.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The fonts and sizes the mail editor offers - pure, so both the compose
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/host-context.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Services supplied by the application that hosts the shared mail interface. */
|
|
4
4
|
export function createMailApi({getToken, fetch: request = globalThis.fetch, onUnauthorized = () => {}}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/identity.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Who a mailbox sends as, and what it signs off with.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/image-senders-section.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The settings section for senders whose images always load.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/keyboard.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Keyboard navigation for the reader.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/message-actions.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* What other Tools add to a message's menu - Booking's "Book Sam...".
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/oauth-panel.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* "Sign in with Microsoft / Google" for a mailbox - the part of the mailbox
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/panes.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Pane sizing for the mail reader, shared by the Mail Reader and Email Pro.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/reader-kit.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The reader view's decisions that need no DOM - escaping, the mailbox form's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/reader-runtime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
const {createMailHost} = await import(new URL(`./host-context.js?v=${MAIL_MODULE_VERSION}`, import.meta.url).href);
|
|
@@ -117,6 +117,10 @@ function formatSize(bytes) {
|
|
|
117
117
|
* - `folderItems(folder, view)` -> Domma menu items, added to a folder's
|
|
118
118
|
* menu (right-click, ⋮, Shift+F10);
|
|
119
119
|
* - `mailboxItems(account, view)` -> the same, on a mailbox row's menu.
|
|
120
|
+
* - `compose(context)` -> `{fields?(), identityChanged?(identity),
|
|
121
|
+
* recipientsChanged?(recipients), close?()}`, an edition's part of every
|
|
122
|
+
* compose window: it may draw into `context.slot` (shown with
|
|
123
|
+
* `context.show()`), and `fields()` is added to what Save and Send post.
|
|
120
124
|
* Optional, checked and feature-detected: an edition that passes it to an
|
|
121
125
|
* older reader just does not get the entries. Item actions run on the next
|
|
122
126
|
* task, so one picked with Enter cannot hand its own Enter to a dialog.
|
|
@@ -504,7 +508,10 @@ return {
|
|
|
504
508
|
*/
|
|
505
509
|
const composeHandles = new Set();
|
|
506
510
|
function openCompose(options) {
|
|
507
|
-
|
|
511
|
+
// `extensions.compose`: an edition's part of every compose window
|
|
512
|
+
// (Email Pro's branding picker). See compose-window.js.
|
|
513
|
+
const handle = openComposeWindow({...options, host: mailHost,
|
|
514
|
+
composeExtension: typeof extensions.compose === 'function' ? extensions.compose : null});
|
|
508
515
|
if (handle) {
|
|
509
516
|
composeHandles.add(handle);
|
|
510
517
|
handle.onClosed?.(() => composeHandles.delete(handle));
|
|
@@ -733,6 +740,7 @@ return {
|
|
|
733
740
|
this.onUnmount = teardown;
|
|
734
741
|
this.refreshContacts = () => here() ? refreshContacts() : Promise.resolve();
|
|
735
742
|
this.compose = draft => here() && features.send ? startNewMessage(draft) : Promise.resolve();
|
|
743
|
+
this.openSettings = target => {if (here()) openSettings(target);};
|
|
736
744
|
lifetime.add(teardown);
|
|
737
745
|
|
|
738
746
|
/**
|
|
@@ -6763,6 +6771,7 @@ return {
|
|
|
6763
6771
|
this.onUnmount = teardown;
|
|
6764
6772
|
this.refreshContacts = () => here() ? refreshContacts() : Promise.resolve();
|
|
6765
6773
|
this.compose = draft => here() && features.send ? startNewMessage(draft) : Promise.resolve();
|
|
6774
|
+
this.openSettings = target => {if (here()) openSettings(target);};
|
|
6766
6775
|
}
|
|
6767
6776
|
};
|
|
6768
6777
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/reader-view.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Existing CMS entry point for the shared mail view. */
|
|
4
4
|
const version = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/resizable.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The mail reader's resizable slideovers.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/restore-spam.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Undo restores both junk status and the original folder, following each UID remap. */
|
|
4
4
|
export async function restoreSpam({api, base, account, from, destination, uids, spam}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/scheduling.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/section-kit.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/security-note.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* What the reader says about a signed or encrypted (S/MIME) message.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/settings-section.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Browser preferences for the shared mail reader. */
|
|
4
4
|
export const READ_DELAY_KEY = 'domma-mail.mark-read-seconds';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/templates.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
const MAIL_MODULE_VERSION = new URL(import.meta.url).searchParams.get('v') ?? '1';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/threads.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Grouping messages into conversations.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/vacation.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The automatic reply, and everything that must stop it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/when-closed.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Run code when a Domma modal or slideover actually closes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.31.0, packages/core/src/admin/ui/dates.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Dates as a plugin shows them to a person: dd/mm/yyyy, and dd/mm/yyyy HH:mm
|