@ggboy123/dsh-paper-reader 1.3.1 → 1.3.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/README.md CHANGED
@@ -42,7 +42,7 @@
42
42
  **DeepSeek 官方桌面端**([deepseek.com/download](https://www.deepseek.com/download/) 下载,即 DeepSeek Harness 桌面版):
43
43
 
44
44
  1. 安装并启动,登录 DeepSeek 账号
45
- 2. 侧栏 → **插件** → **添加插件**,输入 `@ggboy123/dsh-paper-reader@1.3.1` 安装
45
+ 2. 侧栏 → **插件** → **添加插件**,输入 `@ggboy123/dsh-paper-reader@1.3.2` 安装
46
46
  3. 装完默认**停用**:点进插件详情,打开「启用」开关
47
47
  4. **重启桌面端**(热启用状态下打开论文的链路会静默失效,重启进开机组合才正常,实测)
48
48
 
@@ -69,7 +69,7 @@ dsh plugin --profile web add @ggboy123/dsh-paper-reader
69
69
  **已装过的用户升级必须带显式版本号**——不带版本的 `add` 对已存在的依赖是 no-op(pnpm 按首次安装时记录的版本范围解析,不会追新):
70
70
 
71
71
  ```bash
72
- dsh plugin --profile web add @ggboy123/dsh-paper-reader@1.3.1
72
+ dsh plugin --profile web add @ggboy123/dsh-paper-reader@1.3.2
73
73
  # 重启 dsh web 生效;浏览器 Cmd+Shift+R 强刷,避免旧阅读器页面缓存
74
74
  ```
75
75
 
package/lib/client.js CHANGED
@@ -268,6 +268,17 @@ window.__ModuleLoader__.load({
268
268
  // 阅读器整个右移并变窄(实测 x=800 w=300,而列是 280..1100)。
269
269
  // 只补 minWidth,不碰 width:dsh 每次会话提交都重写内联 width,抢同一属性会持续闪烁。
270
270
  setStyle(panel, 'minWidth', eff ? '100%' : '')
271
+ // 全屏态层级修复(用户实测「点全屏放大后一片白」):dsh 的页签宿主 ._tabCell
272
+ // z-index 是 var(--dsh-dockkit-dock-layer, 10),全屏时该变量被抬到 40——但只定义在
273
+ // 右栏**面板**(P3OORG_panel)子树上,把本阅读器 z-10 的悬浮 iframe 压在下面:
274
+ // iframe 里页面活着、工具栏都在,却被白色 tab 宿主盖住。⚠️ 变量不从列/帧继承,
275
+ // body 级 iframe 拿到的是回落值 10——必须从 panel 上现读实际值再 +2:
276
+ // 盖回 tabCell、仍低于对话头部浮动按钮 45(全屏下拖拽手柄本就隐藏);
277
+ // 非全屏回 10(低于手柄 11 与 overlayLayer 20)。
278
+ if (readerIframeEl) {
279
+ const dockLayer = parseFloat(getComputedStyle(panel).getPropertyValue('--dsh-dockkit-dock-layer')) || 10
280
+ setStyle(readerIframeEl, 'zIndex', frame.hasAttribute('data-rightbar-fullscreen') ? String(dockLayer + 2) : '10')
281
+ }
271
282
  }
272
283
  const tick = () => {
273
284
  if (!alive) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggboy123/dsh-paper-reader",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "DeepSeek Harness 插件:论文伴读工作台 — PDF 转录 / 检索 / 原生对话伴读 + 内置阅读器页面。",
5
5
  "license": "MIT",
6
6
  "type": "module",