@michengai/dsh-codex-ui 2.0.17 → 2.0.18

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,4 +1,9 @@
1
1
  # Changelog
2
+
3
+ ## [2.0.18] - 2026-11-05
4
+
5
+ - **Decoupled Composer Glass Layer to Prevent Decorative Skin Collisions (Issue #83)**: Migrated the composer card's frosted glass background and backdrop filters from the shared `[data-composer-card]::before` pseudo-element to a dedicated, scoped surface element (`[data-dcu-glass-composer-surface]`). When third-party skins use `::before` to draw expanded frames, borders, or ribbons outside the input box, the decorative layer is no longer contaminated with dark background tints or blur filters, completely eliminating unwanted frosted rectangles and text occlusion.
6
+
2
7
  ## [2.0.17] - 2026-11-04
3
8
 
4
9
  ### Compatibility & Dependencies
@@ -1,4 +1,9 @@
1
1
  # 更新日志
2
+
3
+ ## [2.0.18] - 2026-11-05
4
+
5
+ - **解耦输入卡片玻璃材质层,消除与第三方装饰皮肤冲突(Issue #83)**:将输入框的玻璃磨砂与背景层从共享的 `[data-composer-card]::before` 伪元素迁移至专属的独立表面节点(`[data-dcu-glass-composer-surface]`),四边始终精准贴合卡片并置于内容底层。安装并在输入卡片外扩绘制边框、花纹或装饰元素的第三方皮肤时,装饰图层不再被强制叠上深色背景与模糊滤镜,杜绝输入框周围出现方角磨砂矩形或文字遮挡。
6
+
2
7
  ## [2.0.17] - 2026-11-04
3
8
 
4
9
  ### 兼容性与依赖升级
package/lib/client.js CHANGED
@@ -342,8 +342,16 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
342
342
  }
343
343
  for (const el of document.querySelectorAll(seam.selector)) if (!el.hasAttribute(seam.attribute)) el.setAttribute(seam.attribute, "");
344
344
  }
345
+ const COMPOSER_SURFACE_ATTRIBUTE = "data-dcu-glass-composer-surface";
345
346
  function stampAll() {
346
347
  for (const seam of SEAMS) stamp(seam);
348
+ for (const card of document.querySelectorAll("[data-composer-card]")) {
349
+ if (card.querySelector(`:scope > [${COMPOSER_SURFACE_ATTRIBUTE}]`)) continue;
350
+ const surface = document.createElement("div");
351
+ surface.setAttribute(COMPOSER_SURFACE_ATTRIBUTE, "");
352
+ surface.setAttribute("aria-hidden", "true");
353
+ card.prepend(surface);
354
+ }
347
355
  }
348
356
  /**
349
357
  * Stamp the seams once, then keep them stamped as React remounts nodes.
@@ -395,6 +403,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
395
403
  if (frame !== void 0) cancelAnimationFrame(frame);
396
404
  frame = void 0;
397
405
  dirty = false;
406
+ for (const surface of document.querySelectorAll(`[${COMPOSER_SURFACE_ATTRIBUTE}]`)) surface.remove();
398
407
  };
399
408
  }
400
409
  //#endregion
@@ -424,6 +433,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
424
433
  const GLASS_FLOAT_ATTRIBUTE = "data-dsh-glass-float";
425
434
  const GLASS_COMPAT_ATTRIBUTE = "data-dsh-glass-compat";
426
435
  const STYLE_TAG_ID = "dsh-codex-ui-glass-style";
436
+ const GLASS_COMPOSER_CSS = GLASS_CSS_TEXT.replaceAll("[data-dsh-glass-float] [data-composer-card]:before", "[data-dsh-glass-float] [data-composer-card] > [data-dcu-glass-composer-surface]").replaceAll("[data-dsh-glass-compat] [data-composer-card]:before", "[data-dsh-glass-compat] [data-composer-card] > [data-dcu-glass-composer-surface]");
427
437
  /** 玻璃层追加样式(拼在生成 CSS 之后,同特异性下后者胜出);导出以便契约测试断言 */
428
438
  const GLASS_EXTRA_CSS = `
429
439
  /* 插件页顶栏色差彻底消除:静止与滚动吸顶均保持底板透明,与全局背景底色与渐变自然融为一体;吸顶时呈现纯净磨砂与细线悬浮效果 */
@@ -484,7 +494,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
484
494
 
485
495
  /* 对齐平铺风格(Compat)防漏字规范:将云母输入框卡片底色提升为高遮蔽度的 card-raised,
486
496
  并锁定至少 12px 高斯磨砂,将底层滚动的历史文字彻底化开为淡淡的柔和色块,杜绝锐利笔画穿透叠字 */
487
- [data-dsh-glass-float] [data-composer-card]::before {
497
+ [data-dsh-glass-float] [data-composer-card] > [data-dcu-glass-composer-surface] {
488
498
  background: var(--dsh-glass-card-raised) !important;
489
499
  backdrop-filter: blur(max(var(--dsh-glass-blur, 12px), 12px)) !important;
490
500
  -webkit-backdrop-filter: blur(max(var(--dsh-glass-blur, 12px), 12px)) !important;
@@ -532,7 +542,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
532
542
  if (!styleTag) {
533
543
  styleTag = document.createElement("style");
534
544
  styleTag.id = STYLE_TAG_ID;
535
- styleTag.textContent = GLASS_CSS_TEXT + GLASS_EXTRA_CSS;
545
+ styleTag.textContent = GLASS_COMPOSER_CSS + GLASS_EXTRA_CSS;
536
546
  }
537
547
  }
538
548
  if (!styleTag.isConnected) document.head.appendChild(styleTag);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤、模块化侧栏与桌面原生窗口菜单 · Input enhancement, settings skin, native glass theme, modular sidebar, and desktop titlebar menu for DSH",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {