@deepseek-ai/dsh-client-ui-sidebar 0.1.5-rc.1 → 0.1.6-alpha.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/README.i18n.yaml +1 -1
- package/README.zh.md +5 -5
- package/lib/client.js +1 -1
- package/package.json +12 -12
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/client/ui-sidebar/README.md
|
|
5
5
|
README.md: 1b520213809ca98a6819483a4ee5ea4f451841d2
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: ee694d0067db50eff52051d8d9f8fd3baac0fc27
|
package/README.zh.md
CHANGED
|
@@ -33,11 +33,11 @@ dsh Web 客户端的侧边栏让用户识别当前构建、启动新会话、将
|
|
|
33
33
|
|
|
34
34
|
### 全局面板入口
|
|
35
35
|
|
|
36
|
-
插件在 root 作用域的 `sidebar.panellist` list 中注册图标组件,提供 `id`、可选 `order
|
|
36
|
+
插件在 root 作用域的 `sidebar.panellist` list 中注册图标组件,提供 `id`、可选 `order`,以及字符串或 locale-aware 的 `label`。同一个 id 寻址布局中 root 作用域 `main` keyed slot 的组件;选择不存在的主面板条目会抛错,并保留当前选中态。标签提供普通可见文字、无障碍名称和折叠提示。每一行通过 `usePanelInfo` 读取自己的选中态;DOM 焦点移到搜索框或目录选择器时,显示的面板及其列表项选中态不变。没有注册项时,列表及其间距均不渲染。产品随附的组合不注册示例面板。
|
|
37
37
|
|
|
38
38
|
### 折叠行为
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
实时收起时,展开内容在当前宽度淡出,上方控件共用同一段透明度渐变,并向左平移进入 56px 轨道,由布局的栏滑动结束整段动画。页面初始即为收起状态时会静态渲染轨道;减少动态效果模式会禁用两段过渡。固定在底部的 `sidebar.settings` 控件共用相同的透明度渐变时序,但不发生横向位移。
|
|
41
41
|
|
|
42
42
|
### 滚动条
|
|
43
43
|
|
|
@@ -51,9 +51,9 @@ dsh Web 客户端的侧边栏让用户识别当前构建、启动新会话、将
|
|
|
51
51
|
<details>
|
|
52
52
|
<summary>实现细节——点击展开</summary>
|
|
53
53
|
|
|
54
|
-
外壳是纯组合:`SidebarRootComponentProps` 组合布局 owner share、全局 `useSessions` 与 `useWorkspaces` 钩子、已声明的品牌、`sidebar.workspaces` 与 `sidebar.settings` 子 slot
|
|
54
|
+
外壳是纯组合:`SidebarRootComponentProps` 组合布局 owner share、全局 `useSessions` 与 `useWorkspaces` 钩子、已声明的品牌、`sidebar.workspaces` 与 `sidebar.settings` 子 slot,以及注入的导航回调。面板入口及其可选标题使用相同的组合方式。面板元数据由列表注册和 locale 变化派生;选中态属于布局存储。
|
|
55
55
|
|
|
56
|
-
###
|
|
56
|
+
### slot 纪律
|
|
57
57
|
|
|
58
58
|
声明感知的 `slots.inject()` 让替换包无论先于还是后于侧边栏激活都能生效。页脚承载 `sidebar.settings` 席位:侧边栏只渲染固定在底部的布局 slot,并共享其栏状态(`wide`)。`/client` 导出接口只包含插件主体(`apply`/`inject`)及约定类型;SidebarRoot、行组件与树派生仍由 slot 注册封装在包内。
|
|
59
59
|
|
|
@@ -104,4 +104,4 @@ dsh Web 客户端的侧边栏让用户识别当前构建、启动新会话、将
|
|
|
104
104
|
|
|
105
105
|
</details>
|
|
106
106
|
|
|
107
|
-
**运行时不变式:** 不发布伴生入口。面板元数据是 Slot 注册表与 locale 的只读呈现投影,没有独立写入 API
|
|
107
|
+
**运行时不变式:** 不发布伴生入口。面板元数据是 Slot 注册表与 locale 的只读呈现投影,没有独立写入 API。注册表负责条目身份与资源释放;本包的装配测试在注册和 locale 通知完成后断言该投影。外壳没有需要与这些来源协调的独立导航状态。
|
package/lib/client.js
CHANGED
|
@@ -100,7 +100,7 @@ window.__ModuleLoader__.load({
|
|
|
100
100
|
const SCROLLBAR_LINGER_MS = 2e3;
|
|
101
101
|
/** Format complete-build metadata for the local brand badge. */
|
|
102
102
|
function localBuildVersion() {
|
|
103
|
-
return `0.1.
|
|
103
|
+
return `0.1.6-alpha.1-e208262` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
|
|
104
104
|
}
|
|
105
105
|
/** Each panel row subscribes only to its own selection state. */
|
|
106
106
|
function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-sidebar",
|
|
3
3
|
"description": "Sidebar plugin: session multi-level tree, search, grouping, state dots",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"@types/react": "~18.3.1",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"clsx": "^2.0.0",
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-client-store": "^0.1.
|
|
52
|
-
"@deepseek-ai/dsh-client-test-runtime": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-client-ui-layout": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.
|
|
55
|
-
"@deepseek-ai/dsh-client-ui-
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-
|
|
57
|
-
"@deepseek-ai/
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-
|
|
59
|
-
"@deepseek-ai/
|
|
49
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.1",
|
|
50
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.1.6-alpha.1",
|
|
51
|
+
"@deepseek-ai/dsh-client-store": "^0.1.6-alpha.1",
|
|
52
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.1.6-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-client-ui-layout": "^0.1.6-alpha.1",
|
|
54
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.6-alpha.1",
|
|
55
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.1",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.6-alpha.1",
|
|
57
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.1",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.1"
|
|
60
60
|
},
|
|
61
61
|
"files": [
|
|
62
62
|
"lib/index.js",
|