@bobfrankston/rmfmail 1.1.143 → 1.1.144

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.
@@ -115,6 +115,30 @@ export async function createTinyMceEditor(container, opts = {}) {
115
115
  quickbars_selection_toolbar: "bold italic underline | forecolor | quicklink blockquote",
116
116
  quickbars_insert_toolbar: false,
117
117
  quickbars_image_toolbar: "alignleft aligncenter alignright",
118
+ // Code-sample dropdown languages. TinyMCE's default list omits
119
+ // "Text" / plain — every option triggers syntax highlighting
120
+ // which mangles unrelated paste content (Bob 2026-05-24).
121
+ // Adding Text first so it's the default; rest are the modern
122
+ // languages we actually paste.
123
+ codesample_languages: [
124
+ { text: "Text", value: "text" },
125
+ { text: "HTML/XML", value: "markup" },
126
+ { text: "JavaScript", value: "javascript" },
127
+ { text: "TypeScript", value: "typescript" },
128
+ { text: "CSS", value: "css" },
129
+ { text: "JSON", value: "json" },
130
+ { text: "Python", value: "python" },
131
+ { text: "Java", value: "java" },
132
+ { text: "C", value: "c" },
133
+ { text: "C++", value: "cpp" },
134
+ { text: "C#", value: "csharp" },
135
+ { text: "Go", value: "go" },
136
+ { text: "Rust", value: "rust" },
137
+ { text: "Ruby", value: "ruby" },
138
+ { text: "PHP", value: "php" },
139
+ { text: "Shell", value: "bash" },
140
+ { text: "SQL", value: "sql" },
141
+ ],
118
142
  // WebView's native spell-check (red underlines, right-click
119
143
  // "Add to dictionary"). Free; same UX as Quill's spellcheck=true.
120
144
  // Premium tinymcespellchecker plugin would replace this with a
@@ -171,16 +195,14 @@ export async function createTinyMceEditor(container, opts = {}) {
171
195
  // everything else so genuine HTML formatting (bold / italic /
172
196
  // tables / inline color) still comes through verbatim.
173
197
  content_style: [
174
- // High-contrast caret. Default native bar shape (thin vertical
175
- // line, browser-drawn caret-shape:block was too aggressive).
176
- // Color shifts by ancestor element so the caret doubles as a
177
- // formatting-mode indicator: blue plain red bold green
178
- // italic orange underline. Innermost wrapper wins on
179
- // combinations (em inside strong shows green).
180
- "body { font-family: system-ui, sans-serif; font-size: 14px; caret-color: #1e88e5; }",
181
- "b, strong { caret-color: #d32f2f; }",
182
- "i, em { caret-color: #2e7d32; }",
183
- "u { caret-color: #ef6c00; }",
198
+ // Blue caret. Native bar shape would be 1-2 px (hard to spot on
199
+ // hi-DPI), and a solid block is too aggressive — split the
200
+ // difference with caret-shape:block at 40% alpha: column-shaped
201
+ // (≈character width) but translucent so it reads as a tinted
202
+ // bar rather than a hard block. caret-shape falls back to bar
203
+ // where unsupported (older Chromium), so the colour still
204
+ // carries on those.
205
+ "body { font-family: system-ui, sans-serif; font-size: 14px; caret-color: rgba(30,136,229,0.45); caret-shape: block; }",
184
206
  "blockquote { border-left: 3px solid #c0c8d0; margin: 0 0 0 4px; padding: 2px 0 2px 10px; color: #555; }",
185
207
  "div.reply { margin-top: 0.5em; }",
186
208
  "div.reply > p:first-child { color: #666; font-size: 0.95em; margin: 0 0 4px 0; }",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/rmfmail",
3
- "version": "1.1.143",
3
+ "version": "1.1.144",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",
@@ -45,7 +45,7 @@
45
45
  "@bobfrankston/msger": "^0.1.383",
46
46
  "@bobfrankston/node-tcp-transport": "^0.1.8",
47
47
  "@bobfrankston/oauthsupport": "^1.0.27",
48
- "@bobfrankston/rmf-tiny": "^0.1.17",
48
+ "@bobfrankston/rmf-tiny": "^0.1.20",
49
49
  "@bobfrankston/smtp-direct": "^0.1.8",
50
50
  "@bobfrankston/tcp-transport": "^0.1.6",
51
51
  "@capacitor/android": "^8.3.0",
@@ -125,7 +125,7 @@
125
125
  "@bobfrankston/msger": "^0.1.383",
126
126
  "@bobfrankston/node-tcp-transport": "^0.1.8",
127
127
  "@bobfrankston/oauthsupport": "^1.0.27",
128
- "@bobfrankston/rmf-tiny": "^0.1.17",
128
+ "@bobfrankston/rmf-tiny": "^0.1.20",
129
129
  "@bobfrankston/smtp-direct": "^0.1.8",
130
130
  "@bobfrankston/tcp-transport": "^0.1.6",
131
131
  "@capacitor/android": "^8.3.0",