@ash-qw/dsh-theme-prts 2.7.0 → 2.7.1

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,19 @@
1
1
  # 变更记录
2
2
 
3
+ ## 2.7.1 - 2026-11-05
4
+
5
+ 以下为相对 `v2.7.0` 的变化:
6
+
7
+ - 修复新版 DSH 中工作区卡片悬停时操作按钮错位、会话卡片悬停时操作按钮不可见的问题,同时兼容旧版嵌套按钮和新版直接按钮结构。
8
+ - 修复会话置顶标记的布局及可见性:置顶会话在悬停、菜单展开及设为当前会话时仍显示标记;修复当前会话长标题在未悬停时越出卡片边缘的问题。
9
+ - 将输入框玻璃材质从 SVG 折射和通道分色调整为原生 5px 背景模糊及 50% 底色不透明度,保留凹槽轮廓、描边和高光,降低侧栏交互时的渲染开销。用户已在 Edge Web 端确认侧脊弹出更流畅;未修改侧脊动画本身,不代表桌面端性能实测结论。
10
+ - 修复切换会话时输入框先显示基础底板、再切换玻璃材质的闪烁:在新输入框的 DOM 变更微任务中挂载装饰层,并在宿主 React 提交前使用同材质占位,保留原生 5px 模糊、50% 底色及现有轮廓,不修改会话切换逻辑或草稿内容。
11
+ - 修复 DSH `0.2.2-rc.1` 在 macOS 桌面端暗色外观下,原生侧栏底色覆盖分区壁纸、遮挡完整背景的问题(#4)。仅提高对应背景规则的选择器优先级,不使用 `!important`,保留悬浮导航条透明效果。新增 12 项浏览器回归,模拟新旧 macOS 宿主样式及 Web 布局;该覆盖不等同于 macOS 官方桌面客户端实机验收。
12
+ - 验证:`npm run check` 的 423 项检查通过。侧栏卡片、输入框、背景及相关扩展浏览器回归 61 项中 60 项通过,1 项旧版正文内边距断言失败,已在未修改基线复现;不宣称全量浏览器回归通过。本地 DSH `0.2.2-rc.1` 连续切换 5 次现有会话,105 次采样未出现可见输入框缺失玻璃材质状态,无页面错误,未发送 AI 请求;已部署并核对客户端构建一致。
13
+ - 无配置格式或插件接口的破坏性变更,无需迁移;输入框材质外观按上述说明调整。**“PRTS 跟随光标(实验)”继续因实机测试表现不佳而暂时停用,本次未重新启用。**
14
+ - DSH 支持范围不变:Web 支持 `0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.5` 和 `0.2.2-rc.1`;官方桌面客户端仍以 `0.2.1-rc.2` 的既有实机验收为准,本次修改及其余版本尚未单独完成桌面端验收。
15
+ - 旧版对应关系不变:DSH `0.2.0-rc.2` 使用主题 `1.4.2`,`0.1.7-rc.2` 使用 `1.0.2`,`0.1.2` 或 `0.1.5` 发布线使用 `0.1.102`。Node.js 要求仍为 `>=20.9.0`。
16
+
3
17
  ## 2.7.0 - 2026-11-05
4
18
 
5
19
  以下为相对 `v2.6.1` 的变化:
@@ -61,7 +61,8 @@ Raw HTML and remote image loading are disabled in previews.
61
61
  - Retrieved: 2026-10-17
62
62
  - License: MIT + Commons Clause License Condition v1.0. This is not plain MIT.
63
63
  - The upstream-derived component and CSS are included in `src/vendor/react-bits/`, together with the full license. Used as part of the P.R.T.S. theme message composer, not distributed as a standalone component library.
64
- - Integration: compile JSX against the host React runtime, scope the original CSS, and mount decorative surfaces behind the native message composer, using the original shape option with the composer notch. The integration uses reduced refraction and channel offsets, a calm center, padded sampling, 5px blur, and 50% composer background opacity.
64
+ - Integration: compile JSX against the host React runtime, scope the original CSS, and mount decorative surfaces behind the native message composer, using the original shape option with the composer notch. The composer uses native 5px backdrop blur and 50% background opacity, with SVG refraction and channel splitting disabled to reduce rendering overhead during sidebar interaction. The notched shape, outline, and glow remain.
65
+ - Newly mounted composers receive a matching native-CSS material placeholder before the first paint; the host React root replaces it on commit, avoiding a bare background while rendering is pending.
65
66
  - Local modifications: retain the valid displacement map while a resized shape loads, and stretch shape artwork to current bounds instead of fitting its source aspect ratio. Live boundaries and borders are drawn by CSS; refraction maps update after resizing settles so asynchronous artwork cannot control composer layout.
66
67
  - Attached composer menus reuse the host material plate with CSS tint and blur overrides; they do not mount this component or change menu layout, borders, or shadows.
67
68
 
@@ -60,7 +60,8 @@ P.R.T.S. 头像、阵营标识及衍生徽记仅收录于个人、非商业同
60
60
  - 获取日期:2026-10-17
61
61
  - 许可证:MIT + Commons Clause License Condition v1.0,并非纯 MIT。
62
62
  - 基于上游的组件、样式及完整许可文本保存在 `src/vendor/react-bits/`。作为 P.R.T.S. 主题输入框的一部分使用,不作为独立组件库分发。
63
- - 接入方式:将 JSX 编译后使用宿主 React,限定原样式作用域,在输入框内容后挂载装饰层,通过原组件的 shape 参数适配输入框凹槽,降低折射及分色偏移,设置平稳中央区域并为采样画布留边;使用 5px 模糊,输入框底色不透明度为 50%。
63
+ - 接入方式:将 JSX 编译后使用宿主 React,限定原样式作用域,在输入框内容后挂载装饰层,通过原组件的 shape 参数适配输入框凹槽。输入框使用原生 5px 背景模糊及 50% 底色不透明度,停用 SVG 折射和通道分色以降低侧栏交互期间的渲染开销,保留凹槽轮廓、描边和高光。
64
+ - 新输入框在首次绘制前挂载同材质的原生 CSS 占位层,由宿主 React 根节点在提交时替换,避免等待渲染期间短暂露出基础底板。
64
65
  - 本地修改:尺寸变化、新轮廓加载期间保留有效折射图,轮廓按当前尺寸铺满,不按原图宽高比等比适配。实际边界与描边由 CSS 同步绘制,折射图在缩放稳定后更新,避免异步轮廓影响输入框布局。
65
66
  - 输入框附属菜单复用宿主已有背景层,仅调整 CSS 底色和模糊参数,不挂载此组件,不改变菜单布局、描边或阴影。
66
67