xrkh-better-sidebar 0.18.21 → 0.18.22
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 +8 -1
- package/README_EN.md +8 -1
- package/lib/client-editor.js +207 -207
- package/lib/client-mermaid.js +215 -215
- package/lib/client-registry.js +381 -373
- package/lib/client-terminal.js +241 -218
- package/lib/client.js +387 -379
- package/lib/index.js +2 -2
- package/lib/types/client/open-when-sized.d.ts +10 -2
- package/lib/types/prefs-shared.d.ts +2 -2
- package/package.json +1 -1
- package/src/client/Sidebar.tsx +9 -3
- package/src/client/locales-ar.ts +1 -1
- package/src/client/locales-de.ts +1 -1
- package/src/client/locales-fr.ts +4 -4
- package/src/client/locales-hi.ts +1 -1
- package/src/client/locales-id.ts +4 -4
- package/src/client/locales-it.ts +1 -1
- package/src/client/locales-ja.ts +1 -1
- package/src/client/locales-ko.ts +1 -1
- package/src/client/locales-nl.ts +1 -1
- package/src/client/locales-pl.ts +1 -1
- package/src/client/locales-pt.ts +4 -4
- package/src/client/locales-ru.ts +1 -1
- package/src/client/locales-sv.ts +1 -1
- package/src/client/locales-th.ts +1 -1
- package/src/client/locales-tr.ts +1 -1
- package/src/client/locales-vi.ts +1 -1
- package/src/client/locales-zh-HK.ts +2 -2
- package/src/client/locales-zh-MO.ts +2 -2
- package/src/client/locales-zh-TW.ts +2 -2
- package/src/client/locales.ts +2 -2
- package/src/client/open-when-sized.ts +33 -3
- package/src/client/state.ts +5 -1
- package/src/config.ts +1 -1
- package/src/prefs-shared.ts +3 -3
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Host 侧 `/sidebar/*` 由产品 Host 原生挂载(`createSidebarPublicHandler`
|
|
|
10
10
|
前置:`xrkh web` 或 `npx @xrkseek/harness-cli web`,Node ≥ 26。建议 Host **≥ 0.3.4**。推荐从 **npmjs** 安装:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.18.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.18.22
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,6 +18,13 @@ xrkh restart
|
|
|
18
18
|
|
|
19
19
|
源码路径仍可用(非推荐):`git clone git@github.com:xrkseek/xrkh-better-sidebar.git` 后 `xrkh plugin add ./xrkh-better-sidebar`。
|
|
20
20
|
|
|
21
|
+
## 0.18.22
|
|
22
|
+
|
|
23
|
+
- 终端 `openWhenSized`:除尺寸外还等宿主真正可见(避开底栏 `centerMeasured` 前 `visibility:hidden` 仍报非零尺寸 → xterm 空开整页空白)
|
|
24
|
+
- 底栏 layout push(`--dsh-sidebar-height`)等到 `centerMeasured` 后再写,避免先挖洞、面板仍 hidden 时的空白任务栏
|
|
25
|
+
- `bottomPanelAutoTerminal` 默认改为 `false`(与 Host `sidebar-prefs-store` 一致)
|
|
26
|
+
- 展开右侧面板时把 `activePane` 钉回侧栏分栏,避免焦点仍停在底栏
|
|
27
|
+
|
|
21
28
|
## 0.18.21
|
|
22
29
|
|
|
23
30
|
- `openTab({ type: 'editor' })` 固定落到侧栏分栏(`splits`),不因 `activePane` 在底栏而撑开底部面板(避免聊天开文件先出空白底栏 / 自动终端)
|
package/README_EN.md
CHANGED
|
@@ -10,7 +10,7 @@ Host mounts `/sidebar/*` natively (`createSidebarPublicHandler`); this package s
|
|
|
10
10
|
Requires `xrkh web` or `npx @xrkseek/harness-cli web`, Node ≥ 26. Prefer Host **≥ 0.3.4**. Install from **npmjs**:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
xrkh plugin add xrkh-better-sidebar@0.18.
|
|
13
|
+
xrkh plugin add xrkh-better-sidebar@0.18.22
|
|
14
14
|
xrkh restart
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -18,6 +18,13 @@ Hard-refresh the browser after install (Ctrl+Shift+R).
|
|
|
18
18
|
|
|
19
19
|
Source path still works (not preferred): `git clone git@github.com:xrkseek/xrkh-better-sidebar.git` then `xrkh plugin add ./xrkh-better-sidebar`.
|
|
20
20
|
|
|
21
|
+
## 0.18.22
|
|
22
|
+
|
|
23
|
+
- Terminal `openWhenSized`: wait until the host is paint-visible, not only sized (avoids xterm opening under the bottom panel's pre-measure `visibility:hidden`, which blanked the pane)
|
|
24
|
+
- Defer bottom layout push (`--dsh-sidebar-height`) until `centerMeasured` so the shell does not reserve an empty strip while the panel is still hidden
|
|
25
|
+
- Default `bottomPanelAutoTerminal` to `false` (aligned with Host `sidebar-prefs-store`)
|
|
26
|
+
- Expanding the right panel pins `activePane` back to the side split tree
|
|
27
|
+
|
|
21
28
|
## 0.18.21
|
|
22
29
|
|
|
23
30
|
- `openTab({ type: 'editor' })` always lands on the side split tree (`splits`), never expands the bottom panel because `activePane` is a bottom leaf (chat file-open no longer opens a blank bottom pane / auto-terminal)
|