@zaclinley/dsh-mailharbor 0.22.0 → 0.22.2

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 571c8ed: Recover missing recipients in expanded conversations.
8
+
9
+ - When the stored To list is empty, the reader parses To / Delivered-To /
10
+ X-Original-To / Apparently-To from the raw message and uses that.
11
+ - If no recipient header exists at all (BCC-only or mailing list), the expanded
12
+ card explains it instead of leaving the area blank.
13
+
14
+ ## 0.22.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 2a996e5: Hide empty recipient lines in the reader.
19
+
20
+ - Expanded conversation cards only render the 收件人/抄送 block when addresses
21
+ exist, and fall back to the loaded detail when the summary has none.
22
+ - The single-message reader no longer prints "收件人:—" either.
23
+
3
24
  ## 0.22.0
4
25
 
5
26
  ### Minor Changes
package/lib/client.js CHANGED
@@ -2410,10 +2410,10 @@ function Reader({
2410
2410
  (0, import_react8.createElement)(Icon, { name: detailOpen ? "chevronLeft" : "chevronRight", size: 12 })
2411
2411
  )
2412
2412
  ),
2413
- threaded || !detailOpen ? null : (0, import_react8.createElement)(
2413
+ threaded || !detailOpen || detail.to.length === 0 && detail.cc.length === 0 ? null : (0, import_react8.createElement)(
2414
2414
  "div",
2415
2415
  { className: "mailharbor-reader-recipients" },
2416
- (0, import_react8.createElement)("span", null, `\u6536\u4EF6\u4EBA\uFF1A${addressLine(detail.to) || "\u2014"}`),
2416
+ detail.to.length === 0 ? null : (0, import_react8.createElement)("span", null, `\u6536\u4EF6\u4EBA\uFF1A${addressLine(detail.to)}`),
2417
2417
  detail.cc.length === 0 ? null : (0, import_react8.createElement)("span", null, `\u6284\u9001\uFF1A${addressLine(detail.cc)}`)
2418
2418
  ),
2419
2419
  (0, import_react8.createElement)(
@@ -2534,6 +2534,8 @@ function Reader({
2534
2534
  const sentItem = isSentMailbox(mailbox) && item.to.length > 0;
2535
2535
  const who = sentItem ? item.to[0] ?? item.from : item.from;
2536
2536
  const selectedItem = item.id === detail.id;
2537
+ const toLine = addressLine(item.to) || (itemDetail === void 0 ? "" : addressLine(itemDetail.to));
2538
+ const ccLine = itemDetail === void 0 ? "" : addressLine(itemDetail.cc);
2537
2539
  return (0, import_react8.createElement)(
2538
2540
  "div",
2539
2541
  {
@@ -2568,11 +2570,15 @@ function Reader({
2568
2570
  expandedItem ? (0, import_react8.createElement)(
2569
2571
  "div",
2570
2572
  { className: "mailharbor-thread-body" },
2571
- (0, import_react8.createElement)(
2573
+ toLine === "" && ccLine === "" ? (0, import_react8.createElement)(
2574
+ "div",
2575
+ { className: "mailharbor-thread-recipients small muted" },
2576
+ (0, import_react8.createElement)("span", null, "\u6536\u4EF6\u4EBA\uFF1A\u672A\u8BB0\u5F55\uFF08\u53EF\u80FD\u662F\u5BC6\u9001\u6216\u90AE\u4EF6\u5217\u8868\uFF09")
2577
+ ) : (0, import_react8.createElement)(
2572
2578
  "div",
2573
2579
  { className: "mailharbor-thread-recipients small muted" },
2574
- (0, import_react8.createElement)("span", null, `\u6536\u4EF6\u4EBA\uFF1A${addressLine(item.to) || "\u2014"}`),
2575
- itemDetail !== void 0 && itemDetail.cc.length > 0 ? (0, import_react8.createElement)("span", null, `\u6284\u9001\uFF1A${addressLine(itemDetail.cc)}`) : null
2580
+ toLine === "" ? null : (0, import_react8.createElement)("span", null, `\u6536\u4EF6\u4EBA\uFF1A${toLine}`),
2581
+ ccLine === "" ? null : (0, import_react8.createElement)("span", null, `\u6284\u9001\uFF1A${ccLine}`)
2576
2582
  ),
2577
2583
  itemDetail === void 0 ? (0, import_react8.createElement)(
2578
2584
  "div",
@@ -6368,7 +6374,7 @@ function TaskEditor({
6368
6374
  }
6369
6375
 
6370
6376
  // src/client/index.tsx
6371
- var VERSION = "0.22.0";
6377
+ var VERSION = "0.22.2";
6372
6378
  var inject = ["slots"];
6373
6379
  var PANEL_ID = "mailharbor";
6374
6380
  var TASKS_PANEL_ID = "mailharbor-tasks";