@michengai/dsh-codex-ui 1.1.45 → 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 +8 -0
- package/CHANGELOG.zh-CN.md +8 -0
- package/lib/client.js +28 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 1.1.45 (2026-10-20)
|
|
4
12
|
|
|
5
13
|
- Restore macOS window-drag regions in the sidebar header and the top safe area of Settings, while keeping buttons and inputs interactive (#46).
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 1.1.45 (2026-10-20)
|
|
4
12
|
|
|
5
13
|
- 恢复 macOS 侧栏顶部与设置页顶部安全区的窗口拖动区域,保留按钮点击和输入框交互(#46)。
|
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 }) {
|
|
@@ -10347,11 +10347,20 @@ body[data-ds-dark-theme] .dcu-settings-page{--sp-bg:#181818;--sp-nav:var(--dcu-s
|
|
|
10347
10347
|
/* 返回、插槽头与搜索框常驻,只有分区列表滚动。 */
|
|
10348
10348
|
.dcu-settings-nav>*{flex:none}
|
|
10349
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}
|
|
10350
|
-
/* body 直属浮层被宿主整层标为 no-drag;撤销整层扣除,仅开放顶部安全区。
|
|
10350
|
+
/* body 直属浮层被宿主整层标为 no-drag;撤销整层扣除,仅开放顶部安全区。
|
|
10351
|
+
宿主把窗口拖动条画在 frame 顶部(macOS 是 data-window-drag 行,Windows 是标题栏伪元素),
|
|
10352
|
+
全屏设置页会整层盖住它,所以两个桌面平台都要预留安全区并重新声明拖动区。 */
|
|
10351
10353
|
html[data-platform=darwin] body>.dcu-settings-page:not(#root){-webkit-app-region:initial}
|
|
10352
|
-
html[data-platform=darwin]: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}
|
|
10353
|
-
/*
|
|
10354
|
-
|
|
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}
|
|
10355
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))}
|
|
10356
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}
|
|
10357
10366
|
.dcu-settings-back:hover,.dcu-settings-link:hover{background:var(--sp-hover)}
|
|
@@ -10616,6 +10625,7 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10616
10625
|
const guideModals = step === void 0 ? [] : settingsOverlays("[role=\"dialog\"][aria-modal=\"true\"],[role=\"alertdialog\"][aria-modal=\"true\"]");
|
|
10617
10626
|
const isolate = (element) => {
|
|
10618
10627
|
if (element.parentElement === document.body && element.hasAttribute("data-dsh-pet-overlay")) return;
|
|
10628
|
+
if (element.hasAttribute("data-windows-menu")) return;
|
|
10619
10629
|
if (element.parentElement === document.body && element.getAttribute("role") === "alert") return;
|
|
10620
10630
|
if (element === onboardingRoot.current || guideModals.includes(element)) return;
|
|
10621
10631
|
if (guideModals.some((modal) => element.contains(modal))) {
|
|
@@ -10647,20 +10657,28 @@ html[data-dsh-native-backdrop=mica] .dcu-settings-page,html[data-dsh-native-back
|
|
|
10647
10657
|
const keepFocus = (event) => {
|
|
10648
10658
|
const target = event.target;
|
|
10649
10659
|
if (!(target instanceof Node) || page.current === null || !settingsElementAvailable(page.current)) return;
|
|
10650
|
-
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;
|
|
10651
10661
|
back.current?.focus();
|
|
10652
10662
|
};
|
|
10653
10663
|
const wrapFocus = (event) => {
|
|
10654
10664
|
if (event.key !== "Tab" || event.defaultPrevented || page.current === null || !settingsElementAvailable(page.current) || settingsOverlays().length > 0) return;
|
|
10655
|
-
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 = [
|
|
10656
10667
|
page.current,
|
|
10657
10668
|
onboardingRoot.current,
|
|
10658
10669
|
...document.querySelectorAll("body > [data-dsh-pet-overlay], body > [role=alert]")
|
|
10659
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));
|
|
10660
|
-
const
|
|
10661
|
-
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) {
|
|
10662
10677
|
event.preventDefault();
|
|
10663
|
-
|
|
10678
|
+
items.at(-1)?.focus();
|
|
10679
|
+
} else if (!event.shiftKey && isLast) {
|
|
10680
|
+
event.preventDefault();
|
|
10681
|
+
items[0]?.focus();
|
|
10664
10682
|
}
|
|
10665
10683
|
};
|
|
10666
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": {
|