domma-cms 1.71.0 → 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.
Files changed (89) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/admin/js/lib/sidebar-frequent.js +1 -1
  3. package/admin/js/templates/docs/usage-tools.html +1 -1
  4. package/docs/DommaFeatures.md +47 -12
  5. package/package.json +1 -1
  6. package/plugins/_lib/admin/mail/body-menu.js +1 -1
  7. package/plugins/_lib/admin/mail/cms-host.js +1 -1
  8. package/plugins/_lib/admin/mail/compose-window.js +76 -3
  9. package/plugins/_lib/admin/mail/contacts.js +1 -1
  10. package/plugins/_lib/admin/mail/diagnostics-section.js +1 -1
  11. package/plugins/_lib/admin/mail/drag-drop.js +1 -1
  12. package/plugins/_lib/admin/mail/folder-tree.js +1 -1
  13. package/plugins/_lib/admin/mail/font-controls.js +1 -1
  14. package/plugins/_lib/admin/mail/fonts.js +1 -1
  15. package/plugins/_lib/admin/mail/host-context.js +1 -1
  16. package/plugins/_lib/admin/mail/identity.js +1 -1
  17. package/plugins/_lib/admin/mail/image-senders-section.js +1 -1
  18. package/plugins/_lib/admin/mail/keyboard.js +1 -1
  19. package/plugins/_lib/admin/mail/mail.html +1 -1
  20. package/plugins/_lib/admin/mail/message-actions.js +1 -1
  21. package/plugins/_lib/admin/mail/oauth-panel.js +1 -1
  22. package/plugins/_lib/admin/mail/panes.js +1 -1
  23. package/plugins/_lib/admin/mail/reader-kit.js +1 -1
  24. package/plugins/_lib/admin/mail/reader-runtime.js +11 -2
  25. package/plugins/_lib/admin/mail/reader-view.js +1 -1
  26. package/plugins/_lib/admin/mail/resizable.js +1 -1
  27. package/plugins/_lib/admin/mail/restore-spam.js +1 -1
  28. package/plugins/_lib/admin/mail/rules.js +1 -1
  29. package/plugins/_lib/admin/mail/scheduling.js +1 -1
  30. package/plugins/_lib/admin/mail/section-kit.js +1 -1
  31. package/plugins/_lib/admin/mail/security-note.js +1 -1
  32. package/plugins/_lib/admin/mail/settings-section.js +1 -1
  33. package/plugins/_lib/admin/mail/templates.js +1 -1
  34. package/plugins/_lib/admin/mail/threads.js +1 -1
  35. package/plugins/_lib/admin/mail/vacation.js +1 -1
  36. package/plugins/_lib/admin/mail/when-closed.js +1 -1
  37. package/plugins/_lib/admin/ui/dates.js +1 -1
  38. package/plugins/_lib/admin/ui/resizable.js +1 -1
  39. package/plugins/_lib/admin/ui/rich-field.js +291 -0
  40. package/plugins/_lib/domma-mail.lock.json +83 -80
  41. package/plugins/_lib/mail/accountFileStore.js +1 -1
  42. package/plugins/_lib/mail/accountRepository.js +1 -1
  43. package/plugins/_lib/mail/accountRoutes.js +1 -1
  44. package/plugins/_lib/mail/bodyTokenProvider.js +1 -1
  45. package/plugins/_lib/mail/bodyTokens.js +1 -1
  46. package/plugins/_lib/mail/compose.js +1 -1
  47. package/plugins/_lib/mail/defaults.js +1 -1
  48. package/plugins/_lib/mail/envelope.js +1 -1
  49. package/plugins/_lib/mail/folderActions.js +1 -1
  50. package/plugins/_lib/mail/folderRuntime.js +1 -1
  51. package/plugins/_lib/mail/folders.js +1 -1
  52. package/plugins/_lib/mail/imapPoolRuntime.js +1 -1
  53. package/plugins/_lib/mail/mbox.js +1 -1
  54. package/plugins/_lib/mail/message-action.js +1 -1
  55. package/plugins/_lib/mail/messageSecurity.js +1 -1
  56. package/plugins/_lib/mail/messageSecurityProvider.js +1 -1
  57. package/plugins/_lib/mail/networkAddresses.js +1 -1
  58. package/plugins/_lib/mail/networkPolicy.js +1 -1
  59. package/plugins/_lib/mail/oauthAccounts.js +1 -1
  60. package/plugins/_lib/mail/oauthRouteRuntime.js +1 -1
  61. package/plugins/_lib/mail/oauthRuntime.js +1 -1
  62. package/plugins/_lib/mail/pollSchedule.js +1 -1
  63. package/plugins/_lib/mail/poller.js +1 -1
  64. package/plugins/_lib/mail/pollerRuntime.js +1 -1
  65. package/plugins/_lib/mail/priority.js +1 -1
  66. package/plugins/_lib/mail/publicMailbox.js +1 -1
  67. package/plugins/_lib/mail/readRuntime.js +1 -1
  68. package/plugins/_lib/mail/render.js +1 -1
  69. package/plugins/_lib/mail/ruleRunner.js +1 -1
  70. package/plugins/_lib/mail/schedulerRuntime.js +1 -1
  71. package/plugins/_lib/mail/secretProvider.js +1 -1
  72. package/plugins/_lib/mail/secretbox.js +1 -1
  73. package/plugins/_lib/mail/senderAuth.js +1 -1
  74. package/plugins/_lib/mail/sieve.js +1 -1
  75. package/plugins/_lib/mail/smtpService.js +1 -1
  76. package/plugins/_lib/mail/snoozeRuntime.js +1 -1
  77. package/plugins/_lib/mail/store.js +1 -1
  78. package/plugins/_lib/mail/subscriptions.js +1 -1
  79. package/plugins/_lib/mail/syncPlan.js +1 -1
  80. package/plugins/_lib/mail/syncRuntime.js +1 -1
  81. package/plugins/_lib/mail/syncSelection.js +1 -1
  82. package/plugins/_lib/mail/unreadBadge.js +1 -1
  83. package/plugins/_lib/mail/unsubscribe.js +1 -1
  84. package/plugins/_lib/mail/vacationRuntime.js +1 -1
  85. package/plugins/_lib/mail/write.js +1 -1
  86. package/plugins/_lib/public/rich-text.mjs +104 -0
  87. package/plugins/_lib/rich-text.js +153 -0
  88. package/server/services/sidebarFrequent.js +1 -1
  89. package/server/services/wpImport/redirects.js +7 -2
@@ -1,4 +1,4 @@
1
- // Source: @domma-mail/core 0.29.1, packages/core/src/admin/mail/reader-runtime.js.
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
- const handle = openComposeWindow({...options, host: mailHost});
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.29.1, packages/core/src/admin/mail/reader-view.js.
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.29.1, packages/core/src/admin/mail/resizable.js.
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.29.1, packages/core/src/admin/mail/restore-spam.js.
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.29.1, packages/core/src/admin/mail/rules.js.
1
+ // Source: @domma-mail/core 0.31.0, packages/core/src/admin/mail/rules.js.
2
2
  // Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
3
3
  /**
4
4
  * Filing rules.
@@ -1,4 +1,4 @@
1
- // Source: @domma-mail/core 0.29.1, packages/core/src/admin/mail/scheduling.js.
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.29.1, packages/core/src/admin/mail/section-kit.js.
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.29.1, packages/core/src/admin/mail/security-note.js.
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.29.1, packages/core/src/admin/mail/settings-section.js.
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.29.1, packages/core/src/admin/mail/templates.js.
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.29.1, packages/core/src/admin/mail/threads.js.
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.29.1, packages/core/src/admin/mail/vacation.js.
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.29.1, packages/core/src/admin/mail/when-closed.js.
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.29.1, packages/core/src/admin/ui/dates.js.
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
@@ -1,4 +1,4 @@
1
- // Source: @domma-mail/core 0.29.1, packages/core/src/admin/ui/resizable.js.
1
+ // Source: @domma-mail/core 0.31.0, packages/core/src/admin/ui/resizable.js.
2
2
  // Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
3
3
  /**
4
4
  * Making a slideover resizable.
@@ -0,0 +1,291 @@
1
+ // Source: @domma-mail/core 0.31.0, packages/core/src/admin/ui/rich-field.js.
2
+ // Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
3
+ /**
4
+ * A Description field as a rich text editor, and a description shown in the admin.
5
+ *
6
+ * ## One line to adopt
7
+ *
8
+ * `richDescription(textarea)` puts Domma's rich editor in the textarea's place
9
+ * and keeps the textarea (hidden) as the field: its `.value` is the editor's
10
+ * HTML, reading it or setting it works as before, and it fires `input` and
11
+ * `change` as the editor changes. So a view that reads `$('#x').val()`, a
12
+ * `data-model` binding and a draft keeper all carry on unchanged.
13
+ *
14
+ * What is stored is described in `/public/js/rich-text.mjs`: text typed before
15
+ * the field was rich is shown in the editor as paragraphs and is only rewritten
16
+ * as HTML once somebody edits it. An editor left empty gives `''`. The server
17
+ * cleans whatever arrives (`server/services/richText.js`); nothing here is the
18
+ * safety.
19
+ *
20
+ * Without Domma's editor the textarea is simply left as it is.
21
+ *
22
+ * ## In a dense screen
23
+ *
24
+ * `richDescription(textarea, {compact: true})` is the same field at the height
25
+ * of a line or two: its toolbar shows only while the editor has the focus and
26
+ * the word count is left out. For a caption inside a row of other inputs. The
27
+ * toolbar opens UNDER the text, so the line being clicked does not move away
28
+ * from the pointer between the press and the release.
29
+ *
30
+ * @module admin/js/lib/rich-field
31
+ */
32
+ import {isRichText, plainToRichHtml, richTextToPlain, richTextSummary, richTextLine, escapeHtml} from '../../public/rich-text.mjs';
33
+
34
+ export {isRichText, richTextToPlain, richTextSummary, richTextLine};
35
+
36
+ /** The CMS field, using the editor and sanitizer supplied by its host. */
37
+ export function createRichFields(services = globalThis) {
38
+
39
+
40
+ /** Formatting a description can have. No images, embeds or code blocks. */
41
+ const TOOLBAR = [['bold', 'italic', 'underline'], ['ul', 'ol'], ['link'], ['undo', 'redo']];
42
+
43
+ /** What the admin will draw from a rich description (the server allows the same). */
44
+ const SHOWN = {
45
+ ALLOWED_TAGS: ['p', 'br', 'strong', 'b', 'em', 'i', 'u', 's', 'ul', 'ol', 'li', 'a', 'h2', 'h3', 'h4', 'blockquote', 'code'],
46
+ ALLOWED_ATTR: ['href', 'target', 'rel'],
47
+ ALLOW_DATA_ATTR: false
48
+ };
49
+
50
+ /** Tokens only, so both follow every theme. Added to the page once. */
51
+ const CSS_ID = 'rich-description-css';
52
+ const STYLES = `
53
+ .rich-description{display:none}
54
+ .rich-description-editor .dm-editor-body,.rich-description-editor .dm-editor-content{min-height:var(--rich-description-min,6rem)}
55
+ .rich-description-editor .dm-editor-content{padding:.6rem .75rem}
56
+ .rich-description-compact .dm-editor-toolbar,.rich-description-compact .dm-editor-footer{display:none}
57
+ .rich-description-compact:focus-within .dm-editor-toolbar{display:flex}
58
+ .rich-description-compact .dm-editor-content{padding:.4rem .6rem;font-size:var(--dm-font-size-sm)}
59
+ .rich-description-compact .dm-editor-content>:first-child{margin-top:0}
60
+ .rich-description-compact .dm-editor-content>:last-child{margin-bottom:0}
61
+ .rich-description-compact .dm-editor-toolbar{order:2;border-bottom:0;border-top:1px solid var(--dm-border);padding:.25rem .4rem;gap:.25rem}
62
+ .rich-description-compact .dm-editor-toolbar-btn{width:26px;height:26px}
63
+ .rich-text>:first-child{margin-top:0}
64
+ .rich-text>:last-child{margin-bottom:0}
65
+ .rich-text p,.rich-text ul,.rich-text ol,.rich-text blockquote{margin:0 0 .5em}
66
+ .rich-text ul,.rich-text ol{padding-left:1.25em}
67
+ `;
68
+ function styles() {
69
+ if (document.getElementById(CSS_ID)) return;
70
+ const style = document.createElement('style');
71
+ style.id = CSS_ID;
72
+ style.textContent = STYLES;
73
+ document.head.appendChild(style);
74
+ }
75
+
76
+ const NATIVE = Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, 'value');
77
+
78
+ /** The editor's markup for a stored value. */
79
+ const toEditor = value => (isRichText(value) ? value : plainToRichHtml(value));
80
+
81
+ const BLOCKS = /^(P|UL|OL|H[1-6]|BLOCKQUOTE|DIV)$/;
82
+
83
+ /**
84
+ * The editor's markup with every line inside a block element. Typed into an
85
+ * empty editor, the browser leaves the first line bare and makes the next ones
86
+ * divs ("first<div>second</div>"); stored like that, the value would not start
87
+ * with a block element and so would be taken for plain text and shown with its
88
+ * tags. Bare runs become paragraphs and divs become paragraphs.
89
+ *
90
+ * @param {string} html - as the editor gives it
91
+ * @returns {string}
92
+ */
93
+ function asBlocks(html) {
94
+ const doc = new DOMParser().parseFromString(`<body>${html ?? ''}</body>`, 'text/html');
95
+ const out = doc.createElement('div');
96
+ let run = null;
97
+ for (const node of [...doc.body.childNodes]) {
98
+ if (node.nodeType === 1 && BLOCKS.test(node.tagName)) {
99
+ run = null;
100
+ if (node.tagName === 'DIV') {
101
+ const p = doc.createElement('p');
102
+ p.append(...node.childNodes);
103
+ out.append(p);
104
+ } else out.append(node);
105
+ continue;
106
+ }
107
+ // White space between blocks is not a line of its own.
108
+ if (!run && node.nodeType === 3 && !node.textContent.trim()) continue;
109
+ if (!run) { run = doc.createElement('p'); out.append(run); }
110
+ run.append(node);
111
+ }
112
+ return out.innerHTML;
113
+ }
114
+
115
+ /** Does this markup say anything? An empty list item reads as its bullet alone. */
116
+ const saysSomething = html => Boolean(richTextToPlain(toEditor(html)).replace(/^- ?$/gm, '').trim());
117
+
118
+ /**
119
+ * Turn a Description textarea into a rich text editor.
120
+ *
121
+ * @param {HTMLTextAreaElement|string|object} target - the textarea, a selector, or a Domma collection
122
+ * @param {{minHeight?: number, placeholder?: string, compact?: boolean}} [options] - `compact`: a line or
123
+ * two tall (minHeight 40 unless given), the toolbar shown only while the editor has the focus
124
+ * @returns {{rich: boolean, get: () => string, getText: () => string, set: (value: string) => void,
125
+ * focus: () => void, destroy: () => void}}
126
+ */
127
+ function richDescription(target, {compact = false, minHeight = compact ? 40 : 88, placeholder} = {}) {
128
+ const area = typeof target === 'string' ? document.querySelector(target) : (target?.get?.(0) ?? target);
129
+ const plain = {
130
+ rich: false,
131
+ get: () => area?.value ?? '',
132
+ getText: () => richTextToPlain(area?.value ?? ''),
133
+ set: value => { if (area) area.value = value ?? ''; },
134
+ focus: () => area?.focus(),
135
+ destroy: () => {}
136
+ };
137
+ if (!(area instanceof HTMLTextAreaElement) || area._richDescription || typeof services.E?.editor !== 'function') {
138
+ return area?._richDescription ?? plain;
139
+ }
140
+
141
+ const host = document.createElement('div');
142
+ host.className = 'rich-description';
143
+ area.after(host);
144
+ let editor;
145
+ /** True while the editor is being filled, so that is not taken for typing. */
146
+ let filling = false;
147
+ /** What the editor was last filled with or said: never refill it with its own words. */
148
+ let shown = null;
149
+
150
+ const store = (value) => {
151
+ if (NATIVE.get.call(area) === value) return;
152
+ NATIVE.set.call(area, value);
153
+ area.dispatchEvent(new Event('input', {bubbles: true}));
154
+ area.dispatchEvent(new Event('change', {bubbles: true}));
155
+ };
156
+ const fill = (value) => {
157
+ const html = toEditor(value);
158
+ if (html === shown) return;
159
+ filling = true;
160
+ try { editor.setValue(html); } finally { filling = false; }
161
+ shown = html;
162
+ };
163
+
164
+ try {
165
+ editor = services.E.editor(host, {
166
+ mode: 'rich', minHeight, imagePaste: false, toolbar: TOOLBAR,
167
+ placeholder: placeholder ?? area.getAttribute('placeholder') ?? '',
168
+ onChange: (html) => {
169
+ if (filling) return;
170
+ const raw = typeof html === 'string' ? html : editor.getValue();
171
+ const value = saysSomething(raw) ? asBlocks(raw) : '';
172
+ // Remembered as it is stored (as blocks): a bound field hands the stored
173
+ // value straight back, and that must not refill the editor mid-typing.
174
+ shown = value || raw;
175
+ store(value);
176
+ }
177
+ });
178
+ } catch {
179
+ host.remove();
180
+ return plain;
181
+ }
182
+
183
+ // Domma builds the editor beside the element it was given, not inside it.
184
+ const frame = host.nextElementSibling?.querySelector('[contenteditable]') ? host.nextElementSibling : host;
185
+ styles();
186
+ frame.classList.add('rich-description-editor');
187
+ if (compact) frame.classList.add('rich-description-compact');
188
+ frame.style.minHeight = '';
189
+ frame.style.setProperty('--rich-description-min', `${minHeight}px`);
190
+ // The label names the editor now; the textarea's length limit was for
191
+ // plain text and would count markup (the server keeps its own).
192
+ const editable = frame.querySelector('[contenteditable]');
193
+ // Inside a <label>, a click on the text would be passed to the label's first
194
+ // control - a help button, usually - and take the focus out of the editor.
195
+ frame.addEventListener('click', (e) => {
196
+ if (frame.closest('label') && !e.target.closest('button, a, input, select, textarea')) e.preventDefault();
197
+ });
198
+ const label = area.id ? document.querySelector(`label[for="${CSS.escape(area.id)}"]`) : area.closest('label');
199
+ const named = area.getAttribute('aria-label') || label?.childNodes[0]?.textContent?.trim() || 'Description';
200
+ editable?.setAttribute('aria-label', named);
201
+ area.removeAttribute('maxlength');
202
+ area.hidden = true;
203
+
204
+ fill(NATIVE.get.call(area));
205
+ Object.defineProperty(area, 'value', {
206
+ configurable: true,
207
+ get: () => NATIVE.get.call(area),
208
+ set: (value) => {
209
+ NATIVE.set.call(area, value ?? '');
210
+ fill(NATIVE.get.call(area));
211
+ }
212
+ });
213
+
214
+ const handle = {
215
+ rich: true,
216
+ get: () => NATIVE.get.call(area),
217
+ getText: () => richTextToPlain(NATIVE.get.call(area)),
218
+ set: (value) => { area.value = value ?? ''; },
219
+ focus: () => editable?.focus(),
220
+ destroy: () => {
221
+ delete area.value;
222
+ delete area._richDescription;
223
+ try { editor.destroy?.(); } catch { /* gone with the view */ }
224
+ if (frame !== host) frame.remove();
225
+ host.remove();
226
+ area.hidden = false;
227
+ }
228
+ };
229
+ area._richDescription = handle;
230
+ return handle;
231
+ }
232
+
233
+ /**
234
+ * Show a stored description in an element: formatted when it is rich, as the
235
+ * text it is (line breaks kept) when it is plain.
236
+ *
237
+ * @param {Element|object} target - an element or a Domma collection
238
+ * @param {*} value - as stored
239
+ * @returns {void}
240
+ */
241
+ function showRichText(target, value) {
242
+ const el = target?.get?.(0) ?? target;
243
+ if (!el) return;
244
+ const text = typeof value === 'string' ? value : '';
245
+ if (!isRichText(text) || !services.DOMPurify) {
246
+ el.textContent = richTextToPlain(text);
247
+ el.style.whiteSpace = 'pre-line';
248
+ return;
249
+ }
250
+ el.style.whiteSpace = '';
251
+ styles();
252
+ const doc = new DOMParser().parseFromString(services.DOMPurify.sanitize(text, SHOWN), 'text/html');
253
+ for (const link of doc.body.querySelectorAll('a')) link.setAttribute('rel', 'noopener noreferrer');
254
+ el.classList.add('rich-text');
255
+ el.replaceChildren(...doc.body.childNodes);
256
+ }
257
+
258
+ /**
259
+ * A description as HTML for the inside of a line of text (a `<p>`, a caption):
260
+ * inline formatting only, a paragraph or list item becoming a line break. The
261
+ * admin's copy of the server's `renderRichTextPhrasing`, for a preview that
262
+ * draws what the public page will be given. Through DOMPurify; without it,
263
+ * the words alone, escaped.
264
+ *
265
+ * @param {*} value - as stored
266
+ * @param {{links?: boolean, legacyHtml?: boolean}} [options] - as the server's
267
+ * @returns {string}
268
+ */
269
+ function richTextInlineHtml(value, {links = true, legacyHtml = false} = {}) {
270
+ const text = typeof value === 'string' ? value.trim() : '';
271
+ if (!text) return '';
272
+ const rich = isRichText(text);
273
+ if (!services.DOMPurify || (!rich && !legacyHtml)) return escapeHtml(richTextLine(text));
274
+ const flat = text.replace(/<li(\s[^<>]*)?>/gi, '- ').replace(/<\/(p|h[1-6]|blockquote|li|ul|ol|div)>/gi, '<br>');
275
+ const html = services.DOMPurify.sanitize(flat, {
276
+ ALLOWED_TAGS: ['strong', 'b', 'em', 'i', 'u', 's', 'code', 'br', ...(links ? ['a'] : [])],
277
+ ALLOWED_ATTR: links ? ['href', 'target', 'rel'] : [],
278
+ ALLOW_DATA_ATTR: false
279
+ });
280
+ return html.replace(/(\s*<br\s*\/?>\s*){2,}/g, '<br>').replace(/^(\s|<br\s*\/?>)+|(\s|<br\s*\/?>)+$/g, '');
281
+ }
282
+
283
+ return {asBlocks, richDescription, showRichText, richTextInlineHtml};
284
+ }
285
+
286
+ let defaults;
287
+ const fields = () => defaults ??= createRichFields(globalThis);
288
+ export const asBlocks = (...args) => fields().asBlocks(...args);
289
+ export const richDescription = (...args) => fields().richDescription(...args);
290
+ export const showRichText = (...args) => fields().showRichText(...args);
291
+ export const richTextInlineHtml = (...args) => fields().richTextInlineHtml(...args);
@@ -1,86 +1,89 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "@domma-mail/core",
4
- "version": "0.29.1",
4
+ "version": "0.31.0",
5
5
  "files": {
6
- "plugins/_lib/mail/defaults.js": "79e47820c6cf871377ce62aba2c06378adb643eecd4579a3cc9366ea5c8aaf07",
7
- "plugins/_lib/mail/priority.js": "0dbb92a647670ebfa0dc2d7b5a3880974eddf2dd1cb1e6d586d8cae1ea7c373f",
8
- "plugins/_lib/mail/envelope.js": "79fbe7f5ac34f7ea0ae76a667b4d2fecac076a7a19797de843e567330bc4cbba",
9
- "plugins/_lib/mail/pollSchedule.js": "7cc412753a730665db6cbd5a13be30ad468ff701a08903be5eae2b30a3248301",
10
- "plugins/_lib/mail/syncPlan.js": "7dec6c16cbe02bb1e8bbb2d4845b72c70e84a20b6f27669f474e9b9a951becb8",
11
- "plugins/_lib/admin/mail/threads.js": "a50fa45308b043d66e39a32b322d1245516f8feb2bb9397bfedc8e16369d35e6",
12
- "plugins/_lib/admin/mail/vacation.js": "69717be289cf856db5c78a6b0334fb8d25f5cfd264b64293cc9b10728492cc3b",
13
- "plugins/_lib/mail/secretProvider.js": "ce1d9475ac3d92726a8bfd7e9b17b3e02ac3ef27dfae58e1991d342ab0173924",
14
- "plugins/_lib/mail/secretbox.js": "be7d6db92e1679772b1494e7c7b8598da9974d707369c2c4ef5e512b3718e0b0",
15
- "plugins/_lib/mail/bodyTokenProvider.js": "62db6170fd49a5cdf374cd7f4c2ead1a9343fbb0b0cdf6d3215696a1a57ecb32",
16
- "plugins/_lib/mail/bodyTokens.js": "fa68e4304bc4fe291893166d29c330735d12c523006b4f41d430f401ebe978c3",
17
- "plugins/_lib/mail/accountFileStore.js": "16a3e02d8c5f2d608df8efdae6796e6a46ba68827d2fd321a31b9fca2f29a2b4",
18
- "plugins/_lib/mail/accountRepository.js": "df219f1b54f285f9c4a9cf0c48c8da931d35bd93b033ffa8f29e97efdc442c26",
19
- "plugins/_lib/mail/accountRoutes.js": "237e2991726f83fb21133fd012f2728e619b00ffbb60235d82c6cf9aa473f735",
20
- "plugins/_lib/mail/networkAddresses.js": "6ebd340bd4faa1d908c7a74694939da93f34bbaeddb81856fbb22e0ab99016e2",
21
- "plugins/_lib/mail/networkPolicy.js": "775749e7575033928fb9806ffc9fb864ddd27b73ad9c79352ff7ec2cc86aca92",
22
- "plugins/_lib/mail/imapPoolRuntime.js": "cb99cdc2a8b997b311c08c8cda187034112059adaad46d4bf2bcc007e5b4b62f",
23
- "plugins/_lib/mail/publicMailbox.js": "fe1dfda46fa5dbde5d7bd24b566bb62f01b80027282c23e6c174b73219d24379",
24
- "plugins/_lib/mail/render.js": "66e444d4e7a262cc34fc99537157c439bebf26a4ccb2b748fd574f9f692b057a",
25
- "plugins/_lib/mail/unsubscribe.js": "b3817ef604365de20f8f200a0bac243b84b2f97db87d2b3c9ad337d2a988d8df",
26
- "plugins/_lib/mail/unreadBadge.js": "7fe380cea0a6ac6fe177b47b6640641e448a21ad9f5d7cc486b044b3224e9113",
27
- "plugins/_lib/mail/message-action.js": "305358e8316f2b2e941d74084ee19274001451eb9f4b5af039d325d1a9ff58ec",
28
- "plugins/_lib/admin/mail/identity.js": "d8b01334d64031408c3236ca9895464d9cb430e96826fb4420a2110d3a95bd37",
29
- "plugins/_lib/mail/messageSecurityProvider.js": "08edb5188d101ab9814e20a8dd99ebe489b53ade6c372af72b8a8fa7edf8a94a",
30
- "plugins/_lib/mail/messageSecurity.js": "64010297e7eceb53aa399c5b19f5089ae20170c556f2feb5a7d9d3709a1fd2ea",
31
- "plugins/_lib/mail/smtpService.js": "1045f2353e7b825956ce480e3793b2fc29762de98930d3b2c738eef4f8305d65",
32
- "plugins/_lib/mail/subscriptions.js": "59ba271405ef3d300ea8471064ff4992bb904756b09494ae5a74dc1408c812dd",
33
- "plugins/_lib/mail/senderAuth.js": "686fe0779221df454f46496d26a54fff18c245ba4413a73ef8a54274af1b0d30",
34
- "plugins/_lib/mail/readRuntime.js": "ace0e7f2c9b162de5271b70b475ff2c43168619f0e4b64b36669f3fd5af92b10",
35
- "plugins/_lib/admin/mail/image-senders-section.js": "6b6d2ff0ad8ed562017256813329cf91f6d9494d69441c48e3077caf2dacd99b",
36
- "plugins/_lib/admin/mail/mail.html": "db8c0cae29f0e604cd9c2726a2d688b686769571c8a02f2980330ca3696b1971",
37
- "plugins/_lib/admin/mail/section-kit.js": "c535e53de135858d9b65945c6f24fd17b0270f4d2e8bb27a5bb0c8e29366ceaa",
38
- "plugins/_lib/admin/mail/when-closed.js": "98f15dd49f94534ad455b20ee6716a9b8f3b061163b7ce4176739da8b9b4e1e6",
39
- "plugins/_lib/admin/mail/oauth-panel.js": "baa480ed1ae7f8c6d7f16a09430522a057d90bbfa2dc519ca89669801b7a0a35",
40
- "plugins/_lib/admin/mail/rules.js": "6d9f7e507fdafa8c1e2f1fd264044b51df65022f45936c366c5ce6d0e82c7070",
41
- "plugins/_lib/admin/mail/reader-kit.js": "f047a5d3476a48f8cc1b1f1b038f005c992227406b89f97186b832b72b163bf3",
42
- "plugins/_lib/admin/mail/panes.js": "db060b30e9d7553b0a762fe8e0ec79537bf816fb82330d1c6ce83b480bf469a7",
43
- "plugins/_lib/admin/mail/contacts.js": "92ac6621a2580a08e749caf3b59d3acec9d4caf4d9128606f270de5e92d31985",
44
- "plugins/_lib/admin/mail/message-actions.js": "5dc6c0a5d226119b1215b398000a22f00f93b0806777c892cd122170287c7e46",
45
- "plugins/_lib/admin/mail/resizable.js": "fa7109005145dab1db06360ee0a0a3e69ab4129951f37544ea88ba02cd01bef1",
46
- "plugins/_lib/admin/mail/settings-section.js": "79e4011a0dfdade1521da33c8b02cd5b62983a43797f7ad2f283a0842722c346",
47
- "plugins/_lib/admin/mail/compose-window.js": "f1609ad2553eb7039b5fb2769ea13f025cce1e3e8bbde84499934ad2e8079ed3",
48
- "plugins/_lib/admin/mail/folder-tree.js": "603549149a090a84c39fb362e90022e77b10078117bb0f0cc6861b9c4e2d4413",
49
- "plugins/_lib/admin/mail/body-menu.js": "d86a43736d68b83eb9695e6ad6aefafe8b9a4fa049cfa8767ca3a24b7972ac82",
50
- "plugins/_lib/admin/mail/diagnostics-section.js": "f33ca1a3cfa67403dc2a5fd2367c0727e11a9e3023b2d2b96ed336f27a7b41aa",
51
- "plugins/_lib/admin/mail/drag-drop.js": "08dc3b170f192269f60176f33287397bb4f9c3b67d3119cbc32915a28528c785",
52
- "plugins/_lib/admin/mail/scheduling.js": "1420503885a65b93c60aaf0f7d7946f2d6d5991f3884c0df0050072830004261",
53
- "plugins/_lib/admin/mail/font-controls.js": "c998c3e98812cb641caeae0fe955be07393954ae82f4ded0cfb8bac3095584ce",
54
- "plugins/_lib/admin/mail/fonts.js": "1583f3735c3b77063f514c715c10c1041819392d4031bcbb8dd73c66d22db59a",
55
- "plugins/_lib/admin/mail/keyboard.js": "e03533e001eab4a9e4a15f3eb46ea2fa66a67d5a4ea7eb330d1204bec9bf4b05",
56
- "plugins/_lib/admin/mail/mail.css": "5e428fd53c3ec83983dc9545a0716b24c4bcd848b8b54647500afd4416c35c71",
57
- "plugins/_lib/admin/mail/reader-view.js": "fd9bfd42c3b81aa658e8a25ee6856a08a8befb82142246c62c7bae1d8a5d9442",
58
- "plugins/_lib/admin/mail/templates.js": "b60e12ac36677eebf9f3f3a66154676577727bf966b548e3515ccbf999385307",
59
- "plugins/_lib/admin/mail/security-note.js": "c11a691e4b9a42b2badb799b7ccfdbc9a1dc30e11424db0aadced8f8291324ed",
60
- "plugins/_lib/admin/ui/dates.js": "58cda00ba6aad4af142bb1aca9a40595d92d376ff4aa1860284abfbde7da98d3",
61
- "plugins/_lib/mail/compose.js": "0795d461472034073e1adfe93e32bf004a4b02cd44bedd9004e2fe4c55e03671",
62
- "plugins/_lib/admin/mail/reader-runtime.js": "731a273a8328dc94e020f53e06b6335ea56ef71537a12d1e267eb01536c5ff4d",
63
- "plugins/_lib/admin/mail/host-context.js": "f9cc6c69111977041e1bd7fff5cedf1cf14ef3c550386cf018d992d85e989d80",
64
- "plugins/_lib/admin/mail/cms-host.js": "3da445259ceba78d4eee93ca17a4299abad7a5fec8cd0286fd4dd5b0027e5869",
65
- "plugins/_lib/admin/ui/resizable.js": "c1e7c0198d32de29f92e74ed003d9f2b5da2587d54419113506c6304b570a2c7",
66
- "plugins/_lib/mail/store.js": "6a4b14263cf3435785055414a818d675e32df0adb73ecd0c721533c4ab281909",
67
- "plugins/_lib/mail/syncSelection.js": "7423aa28d609c29c21c1fc10a31a25f9c8f7cf1546afa0c31c7cf480a3282d90",
68
- "plugins/_lib/mail/pollerRuntime.js": "a8326f6aec334f3b2fb1ca58ff57fae9cf819583f3badc98f48c5c32a74661f5",
69
- "plugins/_lib/mail/poller.js": "2b03a2cad212361ea58fc3fd3ba13faad52f77c4e1dbb4c2544eab4e22c9c4f6",
70
- "plugins/_lib/mail/syncRuntime.js": "decb815a08d2e1c606ca5adf28adf4fa2c75b6d91365a9ca2f889ef4f04b222e",
71
- "plugins/_lib/mail/write.js": "fce8db9e49229294090152c75f260e005d7d59861ccc58c6d6ead3cf3fd89e04",
72
- "plugins/_lib/admin/mail/restore-spam.js": "8e6d26c0f3f53777f49b0e4254c283205417d9b1bb82884a2de9adc6115fc3b1",
73
- "plugins/_lib/mail/folders.js": "c0dda8464ede3cee14b6b3286c1c0bba37fe43a5af45292d522ff9d987b07b25",
74
- "plugins/_lib/mail/folderActions.js": "411093c9ced5757b64ad6b4b4f7849bd34e02f9cdc31b9d0383068c7b94888d9",
75
- "plugins/_lib/mail/folderRuntime.js": "4cba43c83ad0e812e8560e9a48324ac6f8f6c96242eb077c83613605f2a9f36c",
76
- "plugins/_lib/mail/ruleRunner.js": "0bfb18d5ee9b06b1c638db2d7f8f2d83f238ba5de1dea359fe55a535f50808de",
77
- "plugins/_lib/mail/schedulerRuntime.js": "688f1388944607ea2035cee8c73dcf56560f37e460fbc9d0d44616ac0933cd81",
78
- "plugins/_lib/mail/snoozeRuntime.js": "8db6054c6d2a4a2fc7510bf93004cde2f209f23e5dd7c41a72d0c386c16def59",
79
- "plugins/_lib/mail/vacationRuntime.js": "d94fd0ccc14dc6ef972050ed8def20ef716502b57409314fc4a3beff61718837",
80
- "plugins/_lib/mail/mbox.js": "0eb28dd9ac29fbcbc13f7f4f8200559e48e97426de8c5023d0349f85d8e55cbf",
81
- "plugins/_lib/mail/sieve.js": "ffd54cb2240ae302f5b50a209fa9d92156e8c2e44f28e10372694c8bd6e9378b",
82
- "plugins/_lib/mail/oauthRuntime.js": "92954df893ec5c241e58710a4c08a5434fa986dada326f6dc7bccb7ce4feec79",
83
- "plugins/_lib/mail/oauthRouteRuntime.js": "f838ea20839309b222efd94e220c82613f3624230de866774381492427303c6d",
84
- "plugins/_lib/mail/oauthAccounts.js": "108147ccc747a582fbe92295c9bb924781cf8d9806722a29dc637f4159397573"
6
+ "plugins/_lib/mail/defaults.js": "0c3206de32ad888e4bff5f13178e132a70bf848b979f813ec837329ff3663aa2",
7
+ "plugins/_lib/mail/priority.js": "026e397229600839d7dbfbbed6e1ca980f8f8496ece17a3eab02fb972c848758",
8
+ "plugins/_lib/mail/envelope.js": "2e659d61f2801568882d10e60b051266b7843e09b789c35c8b87a76eb0231d67",
9
+ "plugins/_lib/mail/pollSchedule.js": "f2f17f4cacdd628338e366a2d2e398893145f29a745a0fe94bd6bedefe260f28",
10
+ "plugins/_lib/mail/syncPlan.js": "d5cc84739f74b1c7372247852c8f29a2c9aff8ab89977c0a3118815457f8f678",
11
+ "plugins/_lib/admin/mail/threads.js": "a7381c997e2268be01934255f2793fafa04a37980356a1abec95f370649905d3",
12
+ "plugins/_lib/admin/mail/vacation.js": "c6d0aee624c2cecfefd2d32f508f6be38badbf1d077413b3edfd03352aac3c11",
13
+ "plugins/_lib/mail/secretProvider.js": "8bc411c3e7d36c7d2454296b0aeb429c54f83a8b8735e91307dfed97ad177192",
14
+ "plugins/_lib/mail/secretbox.js": "ea9b893495af89ea586738c157bbf75a1b7d81018260b28d22eb48b985c2f16c",
15
+ "plugins/_lib/mail/bodyTokenProvider.js": "641bad99281bb487454150bc554e690ea54e42bc3b26e3843fcd0090954c9a52",
16
+ "plugins/_lib/mail/bodyTokens.js": "2623e35f2dfcae96a5e3d423e68a633339634d6f0caae91d17b05896802611b3",
17
+ "plugins/_lib/mail/accountFileStore.js": "411753fa109a22d3d4ddc33ed249f71d3c14308da4f03aa0c6810453ceffbcc8",
18
+ "plugins/_lib/mail/accountRepository.js": "6cab4b49f27febe64c18989f4ea2b85eade7851885ac830d0a840151b14cc1c6",
19
+ "plugins/_lib/mail/accountRoutes.js": "b393c4127704974e7e71396d8390a9cc5f20ea8218f5d8fc98f65b3742c14d20",
20
+ "plugins/_lib/mail/networkAddresses.js": "4bea0210fee7ef2c3dcc27bb37e4b8474ea74cb6801978131811b82790cd66e6",
21
+ "plugins/_lib/mail/networkPolicy.js": "ab48c448168f00d6ff800bccbff40b84874b7df4da095696d26406c3b1827cf4",
22
+ "plugins/_lib/mail/imapPoolRuntime.js": "6251d456d5a46c4891b7862a2616d2f879e79c8f9a63bceedb77881a35a405e5",
23
+ "plugins/_lib/mail/publicMailbox.js": "71a0a07d86b297af875eaa83983513da0747ba5b84af026f104d2ca1d228003d",
24
+ "plugins/_lib/mail/render.js": "a1bc162c88bcdfd13be1fe4303e8f71d5d22927eccd859643160cccecaf54635",
25
+ "plugins/_lib/mail/unsubscribe.js": "e6023ad58cd6ac060d1699981360107f55184a68c616593ae1272b1bda096613",
26
+ "plugins/_lib/mail/unreadBadge.js": "1a81b92cd27b849fb95ca917d2b570ff8115549bb318c913bf791f3f161dfb3b",
27
+ "plugins/_lib/mail/message-action.js": "3f029e47ef1adeafb3c1b59ec16eac6a1bad149bf94ecd328ace7892914ca431",
28
+ "plugins/_lib/admin/mail/identity.js": "2357d6b405698b9acaa3cae5eaeb37d6b613d3c6b3c8f1c01c9b96c2a032d8d1",
29
+ "plugins/_lib/mail/messageSecurityProvider.js": "604bd619f23e5b0da20af8b0f913f07aaec2abfd945a1d0429d2d252a41a6c09",
30
+ "plugins/_lib/mail/messageSecurity.js": "e1e9f07ebdc955c41f543c982e479336e749708c7cdff33eea7d1e5624e6b744",
31
+ "plugins/_lib/mail/smtpService.js": "f446f088d6041a8c078b43d917b7dbdc9ed6d4519cfd2fbe8273361c85618e87",
32
+ "plugins/_lib/mail/subscriptions.js": "c10f604468c1b9d0ffac91199bb49cf304f61a78b273f666de850ef30ad88fda",
33
+ "plugins/_lib/mail/senderAuth.js": "dfe2801a5af30f23b7e6b7dcf8df58cecb0474aa048622dc3d53e146d9ce192d",
34
+ "plugins/_lib/mail/readRuntime.js": "5a17bf2da7f0f2feb800cdf2b9dc6b3ecbf990e3b66aa159844ef94b69ee9f8d",
35
+ "plugins/_lib/admin/mail/image-senders-section.js": "72a5e822d416e497328ebbe9a6b3d04cbced1a1054c89a491ff2499c9ffea11c",
36
+ "plugins/_lib/admin/mail/mail.html": "5f659826a5409b367d94eb66f3fb64cb8b5c5a74fafa4a45e70572e159a275ee",
37
+ "plugins/_lib/admin/mail/section-kit.js": "dedffef31799ee86c9059e8f74567f1b26b5b1301e772dffd89a8dd378db3d1f",
38
+ "plugins/_lib/admin/mail/when-closed.js": "5378c3b025494fe777ef18639baa7732e4f0f9ddc7af2812bfb09f70359eb402",
39
+ "plugins/_lib/admin/mail/oauth-panel.js": "af61fb89905dc4f06ce6f2a37b923a7c8c288f1f580f6471620be50cdd0b7319",
40
+ "plugins/_lib/admin/mail/rules.js": "a7a2c58fa45d0055ca4400a7303650fcd1e2a283b31956c85670c2e1e232d142",
41
+ "plugins/_lib/admin/mail/reader-kit.js": "5ac7e2baf02fac59b4a78b48df89f708621b30877fd811c53ad6b12b74571aa6",
42
+ "plugins/_lib/admin/mail/panes.js": "49bf704ee5bec1126d1c99c62f0e88f5fb840f768e62af3e83ff1958a4fe8997",
43
+ "plugins/_lib/admin/mail/contacts.js": "d71952dc0f903025d3b96bb82769d8ddc6cff3f17590bb64ce0e4dbb3cc51e48",
44
+ "plugins/_lib/admin/mail/message-actions.js": "95bc597e4d68da8dd7426f8c56b5cfdf3a905f9d3e3125398c5f1c544fc8fffa",
45
+ "plugins/_lib/admin/mail/resizable.js": "242b3fac130e5c4d358d27a8652390f323ea715dbd4bc7d1b781e272f330b5b0",
46
+ "plugins/_lib/admin/mail/settings-section.js": "74dce368d18d6326ec37a6e7006ace108c76a9bfe25ccf6842b2bac8ba8c65f6",
47
+ "plugins/_lib/admin/mail/compose-window.js": "0a564245eb1bd2c8f18a46761b7d7a2acb4103420168c9a9690da1cdca654eff",
48
+ "plugins/_lib/admin/mail/folder-tree.js": "2c10a90c5c19dcc432f9bdfe9755f63ac3cf1f3013822cd31b0abc17b77ae855",
49
+ "plugins/_lib/admin/mail/body-menu.js": "70477c740e4fdfad17b633ca90346ad7a8d6f6088178bf2a02ad588ed3c00a01",
50
+ "plugins/_lib/admin/mail/diagnostics-section.js": "faae4b9a1109f3d691911f6a8c57c35da6049fefae0a6c60c79d8c34b3fa59ec",
51
+ "plugins/_lib/admin/mail/drag-drop.js": "afcf932644792aa43ffc968d965f0e464b7789d40111283fdbbcca0cdbb067fc",
52
+ "plugins/_lib/admin/mail/scheduling.js": "8a1de7aadf84f8557e7169667bc8b906aee210c20e3a27227020aeb44331f25e",
53
+ "plugins/_lib/admin/mail/font-controls.js": "c1a3813ce079d9a7b2c7b3f0fe6799349ec8aaef9e943612bb2b8b84e4ca4a94",
54
+ "plugins/_lib/admin/mail/fonts.js": "4792ada5f30a02a4e1ad1d9392b74e1c90381991a691543ebf458b91a70875b4",
55
+ "plugins/_lib/admin/mail/keyboard.js": "22eb81def38de5fcd5a5da1f40b633e7a2b925edb179ba7854977337d3c39ccf",
56
+ "plugins/_lib/admin/mail/mail.css": "b24dc09d2a6ad4383b3a7640e834dace4cb4112937b401e4addcb2e4bb95a5ae",
57
+ "plugins/_lib/admin/mail/reader-view.js": "ba97dc201e816e7cee0db1f9939bd6016917f4049ba508715e5bfb9881dd17c3",
58
+ "plugins/_lib/admin/mail/templates.js": "718c4b5318ebac7b663fb279b30a8056a317b95a7ab8a60e1a37d69a01315e1b",
59
+ "plugins/_lib/admin/mail/security-note.js": "ce459755376e0f60d6cc4b68f6cdeb1c10d64d50b797d48be9ed0f7691616f26",
60
+ "plugins/_lib/admin/ui/dates.js": "1854f3af20225685e3c502758fba6c3a619e7aa9ac73c2e4e6bdd4caf741a9cd",
61
+ "plugins/_lib/mail/compose.js": "dc0fed581c10537d508c3d67b902ad561c9d94bb5a79af1860ed7fee9e94bdde",
62
+ "plugins/_lib/admin/mail/reader-runtime.js": "91fa711f9d1e11972356fb2d937d825a927dad428583e26563337c6a00b93883",
63
+ "plugins/_lib/admin/mail/host-context.js": "149513edd2e6fda217ae612dc5f24cb1ffb1c268bf42a040f8a79fe562fa2723",
64
+ "plugins/_lib/admin/mail/cms-host.js": "1e0e68d07070e78624c7333e59e58dc6b3545c6fe2d3033c1daa106c08c096cb",
65
+ "plugins/_lib/admin/ui/resizable.js": "49c7681a028b0a705524fadf3354f7373579e6ccfad6edf8d77f181ab3e43b85",
66
+ "plugins/_lib/mail/store.js": "6d1c5de452d2aaa9cdd8a818842fd0c50d8c2fbdcef7299bfc30ae0222145135",
67
+ "plugins/_lib/mail/syncSelection.js": "a395a6d8e90caa5eba97d4d45282744abf8d63ed5e1aaaab8d396ff0e756ac8d",
68
+ "plugins/_lib/mail/pollerRuntime.js": "edee90cd295bfbab58d7988230e9e8697dc38470b5729a2424325a3919c932e3",
69
+ "plugins/_lib/mail/poller.js": "192ca8cd4cccd113ae4f3d8d788e445974043f0ed57ecd85e16e4ac4d3af6f22",
70
+ "plugins/_lib/mail/syncRuntime.js": "bbf9eee20a9bed628e12fb5a6d2849ed415c60ebe264e3f562f35942acea98bf",
71
+ "plugins/_lib/mail/write.js": "d35ef6174a8205b358ec380cb73f654c772ac011ebaf6fc6bc76fbea19d7fa3e",
72
+ "plugins/_lib/admin/mail/restore-spam.js": "118a548ff03ba2c0fa88db134cf41da0e296f930b37fd3314a703da1eb31783f",
73
+ "plugins/_lib/mail/folders.js": "5ddc9c3c4b789613083f00e476d684f05ab5ca94440495b718d05a43a41dbc50",
74
+ "plugins/_lib/mail/folderActions.js": "597909ab8488aad221fe975adb93d6faebfcf4bbc2f6ad64d38ef32a990b1f5d",
75
+ "plugins/_lib/mail/folderRuntime.js": "904911da6d04160c5509582ff6d4f5b00700fd7ed5944c020b7bce423c08b35e",
76
+ "plugins/_lib/mail/ruleRunner.js": "97c58743d09567c4f630a7a0ef2cdd15781cc5a4ac31c01a789e1b64f1ccdf77",
77
+ "plugins/_lib/mail/schedulerRuntime.js": "bce59f5fddf070be693827035b1a36944e51b25427af125dfec3db57fc65d0ee",
78
+ "plugins/_lib/mail/snoozeRuntime.js": "80afee5e8e9847b933c03bd32bd5e3178ddede04db4f4b7d09d1b5d3adfb67a5",
79
+ "plugins/_lib/mail/vacationRuntime.js": "cc55719beac8520fa59c8fd49d74574cb5521620658d21d93d50ec3ea23e0e0b",
80
+ "plugins/_lib/mail/mbox.js": "793400e1d64b422b414d45a22c321e90b5030a7e7828b453104e246f7fe7ddb0",
81
+ "plugins/_lib/mail/sieve.js": "2af20b405f2544611d6112c24bee0c4088583e3822f0a6c3cbbcd8c4abeff27c",
82
+ "plugins/_lib/mail/oauthRuntime.js": "2c2818fb040bd82ccafcdf1d5b482ee37cf9a44f88313d0eceb41977981dff46",
83
+ "plugins/_lib/mail/oauthRouteRuntime.js": "67d1d71bec7f138d24bb9648ca9466c5bcc0534299e816bc693ff3c52758b2b1",
84
+ "plugins/_lib/mail/oauthAccounts.js": "48e0d8cb7be2e9772a559f2276a95e03c4d7c34e107bf0795d682c827841c9ce",
85
+ "plugins/_lib/public/rich-text.mjs": "1710390dd04912d1fb8884af83e73d59934e348e86080052fcca3ce6f0cc11f7",
86
+ "plugins/_lib/rich-text.js": "5c707a9d9ed5f2e36504eeb22cda7784bd4f87b127b18a9fc71c742dba9af1da",
87
+ "plugins/_lib/admin/ui/rich-field.js": "6a31c0fc33c6c03a5a30948c70c40a2e30d6ede31e61c83923034b62bd6dbfc3"
85
88
  }
86
89
  }