dsh-file-activity 0.5.13 → 0.5.14

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
@@ -2,6 +2,15 @@
2
2
 
3
3
  本文件记录 dsh-file-activity 的所有版本变更。格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+
6
+ ## [0.5.14] - 2026-10-17
7
+
8
+ ### 变更
9
+
10
+ - feat(dsh-md-render): 卡片工具条收纳式改版 + 修竖向长图缩放偏位
11
+ - feat(md-render,my-memory)!: 合并渲染插件并新增全局提示词 (#463 #465)
12
+ - fix(compat): 插件适配 DSH 0.2.0-rc.2 宿主(peer 声明 + 取证通道 + fixture)
13
+
5
14
  ## [0.5.13] - 2026-09-25
6
15
 
7
16
  ### 变更
package/lib/client.js CHANGED
@@ -662,7 +662,7 @@ const icon = {
662
662
  size,
663
663
  ),
664
664
  // 代码(issue #54 阶段 1 新增):尖括号 `</>`,预览/代码切换的代码视图
665
- // 图标(dsh-mermaid-render 卡片),stroke=currentColor 风格与其余图标一致。
665
+ // 代码图标(预览 / 代码切换的代码视图),stroke=currentColor 风格与其余图标一致。
666
666
  code: (size = 16) =>
667
667
  iconSvg(
668
668
  [
@@ -671,8 +671,8 @@ const icon = {
671
671
  ],
672
672
  size,
673
673
  ),
674
- // 下载(issue #85 新增):箭头入托盘,图表导出按钮(dsh-mermaid-render
675
- // 卡片下载 PNG/SVG),stroke=currentColor 风格与其余图标一致。
674
+ // 下载(issue #85 新增):箭头入托盘,mermaid 卡片导出 PNG/SVG 用,
675
+ // stroke=currentColor 风格与其余图标一致。
676
676
  download: (size = 16) =>
677
677
  iconSvg(
678
678
  [
@@ -682,8 +682,8 @@ const icon = {
682
682
  ],
683
683
  size,
684
684
  ),
685
- // 复制(issue #85 新增):双层矩形,复制源码按钮(dsh-mermaid-render
686
- // 卡片复制代码),stroke=currentColor 风格与其余图标一致。
685
+ // 复制(issue #85 新增):双层矩形,mermaid 卡片复制源码用,
686
+ // stroke=currentColor 风格与其余图标一致。
687
687
  copy: (size = 16) =>
688
688
  iconSvg(
689
689
  [
@@ -692,6 +692,92 @@ const icon = {
692
692
  ],
693
693
  size,
694
694
  ),
695
+ // ── 控件图标化(issue #486):卡片工具条「文字收起、只留图标」需要每个按钮都有图标 ──
696
+ // 全屏浮窗(四角向外),mermaid 缩放条用。
697
+ maximize: (size = 16) =>
698
+ iconSvg(
699
+ [
700
+ createElement('path', { d: 'M8 3H5a2 2 0 0 0-2 2v3' }),
701
+ createElement('path', { d: 'M16 3h3a2 2 0 0 1 2 2v3' }),
702
+ createElement('path', { d: 'M21 16v3a2 2 0 0 1-2 2h-3' }),
703
+ createElement('path', { d: 'M3 16v3a2 2 0 0 0 2 2h3' }),
704
+ ],
705
+ size,
706
+ ),
707
+ // 适应容器(「完整显示整张图」):外框套内框,表达「内容装进可用宽度」。
708
+ fit: (size = 16) =>
709
+ iconSvg(
710
+ [
711
+ createElement('rect', { x: 3, y: 4, width: 18, height: 16, rx: 2 }),
712
+ createElement('rect', { x: 8, y: 8, width: 8, height: 8, rx: 1 }),
713
+ ],
714
+ size,
715
+ ),
716
+ // 适应宽度 / 铺满:两侧容器边界 + 水平双向箭头。
717
+ fill: (size = 16) =>
718
+ iconSvg(
719
+ [
720
+ createElement('path', { d: 'M3 5v14' }),
721
+ createElement('path', { d: 'M21 5v14' }),
722
+ createElement('path', { d: 'M7 12h10' }),
723
+ createElement('path', { d: 'm9 9-3 3 3 3' }),
724
+ createElement('path', { d: 'm15 9 3 3-3 3' }),
725
+ ],
726
+ size,
727
+ ),
728
+ // 缩小:与既有 plus 同粗细的单横线。
729
+ minus: (size = 16) => iconSvg([createElement('line', { x1: 5, y1: 12, x2: 19, y2: 12 })], size),
730
+ // 自动换行:折行箭头(lucide wrap-text 同形),代码块换行切换用。
731
+ wrap: (size = 16) =>
732
+ iconSvg(
733
+ [
734
+ createElement('line', { x1: 3, y1: 6, x2: 21, y2: 6 }),
735
+ createElement('path', { d: 'M3 12h15a3 3 0 1 1 0 6h-4' }),
736
+ createElement('polyline', { points: '16 16 14 18 16 20' }),
737
+ createElement('line', { x1: 3, y1: 18, x2: 10, y2: 18 }),
738
+ ],
739
+ size,
740
+ ),
741
+ // markdown 文本(框内 M↓):「渲染为 Markdown」用。
742
+ markdown: (size = 16) =>
743
+ iconSvg(
744
+ [
745
+ createElement('rect', { x: 3, y: 4, width: 18, height: 16, rx: 2 }),
746
+ createElement('path', { d: 'M7 15V9l3 3 3-3v6' }),
747
+ createElement('path', { d: 'M17 9v6' }),
748
+ createElement('path', { d: 'm15 13 2 2 2-2' }),
749
+ ],
750
+ size,
751
+ ),
752
+ // 更多(三点):卡片工具条的「更多」菜单触发器 —— 低频按钮收进菜单,不长期霸占头部。
753
+ more: (size = 16) =>
754
+ iconSvg(
755
+ [
756
+ createElement('circle', { cx: 5, cy: 12, r: 1.6, fill: 'currentColor', stroke: 'none' }),
757
+ createElement('circle', { cx: 12, cy: 12, r: 1.6, fill: 'currentColor', stroke: 'none' }),
758
+ createElement('circle', { cx: 19, cy: 12, r: 1.6, fill: 'currentColor', stroke: 'none' }),
759
+ ],
760
+ size,
761
+ ),
762
+ // 图表(柱状):mermaid 图表卡片标题与「渲染为图表」选项用。
763
+ chart: (size = 16) =>
764
+ iconSvg(
765
+ [
766
+ createElement('line', { x1: 6, y1: 20, x2: 6, y2: 10 }),
767
+ createElement('line', { x1: 12, y1: 20, x2: 12, y2: 4 }),
768
+ createElement('line', { x1: 18, y1: 20, x2: 18, y2: 14 }),
769
+ ],
770
+ size,
771
+ ),
772
+ // 预览(眼睛):视图切换的「预览」用 —— 比 file 更贴语义。
773
+ eye: (size = 16) =>
774
+ iconSvg(
775
+ [
776
+ createElement('path', { d: 'M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z' }),
777
+ createElement('circle', { cx: 12, cy: 12, r: 3 }),
778
+ ],
779
+ size,
780
+ ),
695
781
  // 箭头向上(更新图标):向上的箭头,表示更新操作
696
782
  arrowUp: (size = 16) =>
697
783
  iconSvg(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-file-activity",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "DSH 侧边栏文件活动插件:按 LRU 记录文件读取/新增/修改事件(最近访问),按绝对路径树形统计(文件统计),点击文件浮窗预览(代码高亮/Markdown/图片/PDF)。DSH web plugin: file activity tracker — LRU recent-access list plus per-file read/create/modify counts in a folder tree, with floating preview.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "cordis": "^4.0.0-rc.10",
49
- "react": "^18.2.0 || ^19.3.0"
49
+ "react": "^18.2.0 || ^19.2.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "cordis": {