@michengai/dsh-codex-ui 1.1.44 → 1.1.46
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 +13 -0
- package/CHANGELOG.zh-CN.md +13 -0
- package/lib/client.js +33 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.46 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
- Restore window dragging on the Settings page in the Windows desktop app: the full-screen Settings overlay now reserves the native caption band and declares it as a drag region again (#56).
|
|
6
|
+
- Paint that band with the host's own `--dsw-specific-sidebar-fill` (the token the desktop app uses for the native title bar), so the caption stays one continuous colour across both columns instead of breaking into sidebar/content/native strips.
|
|
7
|
+
- Move the Settings navigation below the native window buttons on Windows, so Back and Search no longer sit in the same band as the minimize/maximize/close controls.
|
|
8
|
+
- Keep the Windows desktop menu (Application/Edit) visible on the Settings page and align it to the left edge while the session navigation arrows remain exclusive to the main workspace. Hide the desktop menu in fullscreen mode to prevent overlap, and include its items in keyboard Tab navigation.
|
|
9
|
+
- Extend the drag-region browser regression to cover the Windows caption, fullscreen, and hosts without a titlebar.
|
|
10
|
+
|
|
11
|
+
## 1.1.45 (2026-10-20)
|
|
12
|
+
|
|
13
|
+
- Restore macOS window-drag regions in the sidebar header and the top safe area of Settings, while keeping buttons and inputs interactive (#46).
|
|
14
|
+
- Remove the full-window no-drag region applied to the Settings overlay by the host. Add browser regression coverage for the drag-region styles, fullscreen transitions, and other platforms. Native macOS window movement has not been tested on hardware.
|
|
15
|
+
|
|
3
16
|
## 1.1.44 (2026-10-20)
|
|
4
17
|
|
|
5
18
|
- Keep the settings navigation's Back and Search controls visible while the section list scrolls (#53).
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 1.1.46 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
- 修复 Windows 桌面端设置页无法拖动窗口:全屏设置浮层重新预留原生标题栏区域,并把该区域声明为窗口拖动区(#56)。
|
|
6
|
+
- 标题栏带改用宿主自己的 `--dsw-specific-sidebar-fill`(桌面端原生标题栏用的就是这个 token),整条贯通同色,不再断成侧栏 / 内容 / 原生按钮三块。
|
|
7
|
+
- Windows 下设置导航整体下移到原生窗口按钮之下,「返回应用」和搜索框不再与最小化/最大化/关闭按钮挤在同一条带内。
|
|
8
|
+
- Windows 设置页保留宿主「应用」「编辑」菜单并左对齐,全屏时隐藏菜单防止遮挡内容,并将菜单项纳入键盘 Tab 循环;会话历史前进/后退箭头仅留在主工作区、不进入设置页。
|
|
9
|
+
- 拖动区域浏览器回归扩展到 Windows 标题栏、全屏切换以及没有标题栏的宿主。
|
|
10
|
+
|
|
11
|
+
## 1.1.45 (2026-10-20)
|
|
12
|
+
|
|
13
|
+
- 恢复 macOS 侧栏顶部与设置页顶部安全区的窗口拖动区域,保留按钮点击和输入框交互(#46)。
|
|
14
|
+
- 撤销宿主施加在设置浮层上的整窗不可拖动区域,新增拖动区域样式、全屏切换及其他平台的浏览器回归检查。尚未在 macOS 实机验证原生窗口移动。
|
|
15
|
+
|
|
3
16
|
## 1.1.44 (2026-10-20)
|
|
4
17
|
|
|
5
18
|
- 设置页左栏的「返回应用」与搜索框保持可见,仅设置分区列表滚动(#53)。
|
package/lib/client.js
CHANGED
|
@@ -7213,7 +7213,7 @@ html[data-windows-titlebar] .dcu-desktop-navigation{display:flex;position:fixed;
|
|
|
7213
7213
|
.dcu-desktop-navigation button:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}
|
|
7214
7214
|
.dcu-desktop-navigation button:disabled{opacity:.35;cursor:default}
|
|
7215
7215
|
.dcu-desktop-navigation button:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}
|
|
7216
|
-
html[data-windows-titlebar]:not([data-fullscreen]):has(.dcu-desktop-navigation){--dsh-windows-menu-start:84px}
|
|
7216
|
+
html[data-windows-titlebar]:not([data-fullscreen]):not(:has(.dcu-settings-page)):has(.dcu-desktop-navigation){--dsh-windows-menu-start:84px}
|
|
7217
7217
|
html[data-windows-titlebar][data-fullscreen] .dcu-desktop-navigation{display:none}
|
|
7218
7218
|
`;
|
|
7219
7219
|
function DesktopNavigationControls({ history, t }) {
|
|
@@ -7562,7 +7562,9 @@ body[data-we-sidebar-glass] .dcu-expanded-shell,body[data-we-sidebar-glass] .dcu
|
|
|
7562
7562
|
.dcu-root.dcu-compact .dcu-compact-shell{animation:none}
|
|
7563
7563
|
/* 原生交通灯覆盖网页顶部;宽态、窄轨和动画层共用宿主安全区,保持页脚在窗口内。 */
|
|
7564
7564
|
.dcu-root{--dcu-sidebar-top-clearance:0px}
|
|
7565
|
-
html[data-platform=darwin]:not([data-fullscreen]) .dcu-root{
|
|
7565
|
+
html[data-platform=darwin]:not([data-fullscreen]) .dcu-root{position:relative;--dcu-sidebar-top-clearance:var(--dsh-frame-top-clearance,48px);padding-top:var(--dcu-sidebar-top-clearance)}
|
|
7566
|
+
/* 只开放顶部空白安全区,不让项目列表、窄轨按钮成为窗口拖动区域。 */
|
|
7567
|
+
html[data-platform=darwin]:not([data-fullscreen]) .dcu-root::after{content:"";position:absolute;inset:0 0 auto;height:var(--dcu-sidebar-top-clearance);pointer-events:none;-webkit-app-region:drag}
|
|
7566
7568
|
html[data-platform=darwin]:not([data-fullscreen]) .dcu-root.dcu-compact{padding-top:calc(var(--dcu-sidebar-top-clearance) + (var(--dcu-header-height,34px) - 28px)/2)}
|
|
7567
7569
|
[data-dcu-codex-sidebar-initialized]{transition:grid-template-columns 500ms cubic-bezier(.16,1,.3,1)}
|
|
7568
7570
|
/* dsh-better-sidebar 的 #root 布局规则会覆盖 transition 简写;合并两侧过渡而非只争抢左栏。 */
|
|
@@ -8194,6 +8196,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
|
|
|
8194
8196
|
children: [
|
|
8195
8197
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
8196
8198
|
className: "dcu-head",
|
|
8199
|
+
"data-window-drag": true,
|
|
8197
8200
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
8198
8201
|
type: "button",
|
|
8199
8202
|
className: "dcu-brand",
|
|
@@ -10344,8 +10347,20 @@ body[data-ds-dark-theme] .dcu-settings-page{--sp-bg:#181818;--sp-nav:var(--dcu-s
|
|
|
10344
10347
|
/* 返回、插槽头与搜索框常驻,只有分区列表滚动。 */
|
|
10345
10348
|
.dcu-settings-nav>*{flex:none}
|
|
10346
10349
|
.dcu-settings-nav>.dcu-settings-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--sp-border) transparent}
|
|
10347
|
-
/*
|
|
10348
|
-
|
|
10350
|
+
/* body 直属浮层被宿主整层标为 no-drag;撤销整层扣除,仅开放顶部安全区。
|
|
10351
|
+
宿主把窗口拖动条画在 frame 顶部(macOS 是 data-window-drag 行,Windows 是标题栏伪元素),
|
|
10352
|
+
全屏设置页会整层盖住它,所以两个桌面平台都要预留安全区并重新声明拖动区。 */
|
|
10353
|
+
html[data-platform=darwin] body>.dcu-settings-page:not(#root){-webkit-app-region:initial}
|
|
10354
|
+
html:is([data-platform=darwin],[data-windows-titlebar]):not([data-fullscreen]) .dcu-settings-page::after{content:"";position:absolute;inset:0 0 auto;height:var(--dsh-frame-top-clearance,48px);pointer-events:none;-webkit-app-region:drag}
|
|
10355
|
+
/* Windows 原生标题栏整条按 --dsw-specific-sidebar-fill 着色(主进程就是用这个 token 设置标题栏),
|
|
10356
|
+
设置浮层必须用同一颜色贯通顶部,否则标题栏带会在左右两栏交界处断成两块色。 */
|
|
10357
|
+
html[data-windows-titlebar]:not([data-fullscreen]) .dcu-settings-page::after{background:var(--dsw-specific-sidebar-fill,var(--sp-nav))}
|
|
10358
|
+
/* 原生窗口按钮覆盖 Web 内容;沿用宿主标题栏安全区,仅抬高设置导航。 */
|
|
10359
|
+
html:is([data-platform=darwin],[data-windows-titlebar]):not([data-fullscreen]) .dcu-settings-nav{padding-top:calc(var(--dsh-frame-top-clearance,48px) + 8px)}
|
|
10360
|
+
/* 设置页不展示会话历史前进/后退箭头,Desktop 菜单左移到 12px 对齐。 */
|
|
10361
|
+
html[data-windows-titlebar]:has(.dcu-settings-page){--dsh-windows-menu-start:12px}
|
|
10362
|
+
/* Windows 全屏时隐藏 Desktop 菜单,避免悬空遮挡设置页内容。 */
|
|
10363
|
+
html[data-windows-titlebar][data-fullscreen] [data-windows-menu]{display:none!important}
|
|
10349
10364
|
body[data-ds-dark-theme] .dcu-settings-nav{--sp-text:var(--dcu-sidebar-navigation,#b9bab9);--sp-muted:var(--dcu-sidebar-secondary,#909191);--sp-hover:var(--dcu-sidebar-hover,#303432);--sp-active:var(--dcu-sidebar-hover,#303432);--sp-border:var(--dcu-sidebar-border,rgba(255,255,255,.08))}
|
|
10350
10365
|
.dcu-settings-back{display:flex;align-items:center;flex-shrink:0;gap:8px;width:100%;height:30px;padding:5px 8px;border:0;border-radius:10px;background:transparent;color:var(--sp-text);text-align:left}
|
|
10351
10366
|
.dcu-settings-back:hover,.dcu-settings-link:hover{background:var(--sp-hover)}
|
|
@@ -10610,6 +10625,7 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10610
10625
|
const guideModals = step === void 0 ? [] : settingsOverlays("[role=\"dialog\"][aria-modal=\"true\"],[role=\"alertdialog\"][aria-modal=\"true\"]");
|
|
10611
10626
|
const isolate = (element) => {
|
|
10612
10627
|
if (element.parentElement === document.body && element.hasAttribute("data-dsh-pet-overlay")) return;
|
|
10628
|
+
if (element.hasAttribute("data-windows-menu")) return;
|
|
10613
10629
|
if (element.parentElement === document.body && element.getAttribute("role") === "alert") return;
|
|
10614
10630
|
if (element === onboardingRoot.current || guideModals.includes(element)) return;
|
|
10615
10631
|
if (guideModals.some((modal) => element.contains(modal))) {
|
|
@@ -10641,20 +10657,28 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10641
10657
|
const keepFocus = (event) => {
|
|
10642
10658
|
const target = event.target;
|
|
10643
10659
|
if (!(target instanceof Node) || page.current === null || !settingsElementAvailable(page.current)) return;
|
|
10644
|
-
if (page.current.contains(target) || onboardingRoot.current?.contains(target) || [...document.querySelectorAll("body > [data-dsh-pet-overlay], body > [role=alert]")].some((root) => root.contains(target)) || settingsOverlays().some((overlay) => overlay.contains(target))) return;
|
|
10660
|
+
if (page.current.contains(target) || onboardingRoot.current?.contains(target) || [...document.querySelectorAll("body > [data-dsh-pet-overlay], body > [role=alert]")].some((root) => root.contains(target)) || [...document.querySelectorAll("[data-windows-menu]")].some((root) => root.contains(target)) || settingsOverlays().some((overlay) => overlay.contains(target))) return;
|
|
10645
10661
|
back.current?.focus();
|
|
10646
10662
|
};
|
|
10647
10663
|
const wrapFocus = (event) => {
|
|
10648
10664
|
if (event.key !== "Tab" || event.defaultPrevented || page.current === null || !settingsElementAvailable(page.current) || settingsOverlays().length > 0) return;
|
|
10649
|
-
const
|
|
10665
|
+
const menuButtons = [...document.querySelectorAll("[data-windows-menu]")].filter(settingsElementAvailable).flatMap((host) => [...host.shadowRoot?.querySelectorAll("button") ?? host.querySelectorAll("button")]).filter((button) => button.tabIndex >= 0 && !button.matches(":disabled") && getComputedStyle(button).display !== "none");
|
|
10666
|
+
const pageItems = [
|
|
10650
10667
|
page.current,
|
|
10651
10668
|
onboardingRoot.current,
|
|
10652
10669
|
...document.querySelectorAll("body > [data-dsh-pet-overlay], body > [role=alert]")
|
|
10653
10670
|
].filter((root) => root !== null).flatMap((root) => [...root.querySelectorAll("button,input,select,textarea,a[href],[tabindex]")]).filter((element) => element.tabIndex >= 0 && !element.matches(":disabled") && settingsElementAvailable(element));
|
|
10654
|
-
const
|
|
10655
|
-
if (
|
|
10671
|
+
const items = [...menuButtons, ...pageItems];
|
|
10672
|
+
if (items.length === 0) return;
|
|
10673
|
+
const active = document.activeElement?.shadowRoot?.activeElement ?? document.activeElement;
|
|
10674
|
+
const isFirst = active === items[0];
|
|
10675
|
+
const isLast = active === items.at(-1);
|
|
10676
|
+
if (event.shiftKey && isFirst) {
|
|
10656
10677
|
event.preventDefault();
|
|
10657
|
-
|
|
10678
|
+
items.at(-1)?.focus();
|
|
10679
|
+
} else if (!event.shiftKey && isLast) {
|
|
10680
|
+
event.preventDefault();
|
|
10681
|
+
items[0]?.focus();
|
|
10658
10682
|
}
|
|
10659
10683
|
};
|
|
10660
10684
|
document.addEventListener("keydown", onKeyDown, true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-codex-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.46",
|
|
4
4
|
"description": "DSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"test": "pnpm run typecheck && vitest run && tsdown && node tests/run-assertions.mjs && pnpm run test:layout",
|
|
73
73
|
"test:host": "node scripts/verify-settings-exit.mjs",
|
|
74
74
|
"test:settings-backdrop": "node scripts/verify-settings-backdrop.mjs",
|
|
75
|
-
"test:layout": "node scripts/verify-workspace-drop-layout.mjs --run && node scripts/verify-sidebar-transition.mjs && node scripts/verify-sidebar-expand-control.mjs && node scripts/verify-sidebar-titlebar.mjs && node scripts/verify-composer-style.mjs && node scripts/verify-new-conversation.mjs && node scripts/verify-composer-tools.mjs && node scripts/verify-hero-width.mjs && node scripts/verify-settings-backdrop.mjs && node scripts/verify-settings-geometry.mjs && node scripts/verify-upstream-style-regressions.mjs",
|
|
75
|
+
"test:layout": "node scripts/verify-workspace-drop-layout.mjs --run && node scripts/verify-sidebar-transition.mjs && node scripts/verify-sidebar-expand-control.mjs && node scripts/verify-sidebar-titlebar.mjs && node scripts/verify-composer-style.mjs && node scripts/verify-new-conversation.mjs && node scripts/verify-composer-tools.mjs && node scripts/verify-hero-width.mjs && node scripts/verify-settings-backdrop.mjs && node scripts/verify-settings-geometry.mjs && node scripts/verify-upstream-style-regressions.mjs && node scripts/verify-window-drag.mjs",
|
|
76
76
|
"test:compat": "node scripts/run-compat-host.mjs",
|
|
77
77
|
"test:fallback-host": "node scripts/verify-plugin-fallback-host.mjs"
|
|
78
78
|
},
|