@linxin666/dsh-client-ui-skin-center 0.4.8 → 0.4.9
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 +2 -2
- package/README.md +8 -6
- package/README.zh.md +6 -5
- package/contracts/official-tokens-v1.json +1 -1
- package/contracts/semantic-attrs-v1.md +17 -2
- package/lib/client.js +1 -1
- package/lib/index.js +5 -0
- package/package.json +12 -12
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 87a65fc0c9b532de0d2ecaca9beaa70a59b60464
|
|
6
|
+
README.zh.md: 5407ee02fb57a3aa942ae801d4c26a9eef8fa9cb
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-skin-center?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.3-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -45,14 +45,14 @@ The three most-liked skins in the Workshop's skin category on [dsh-market.com](h
|
|
|
45
45
|
| Skin | Author | Look |
|
|
46
46
|
|---|---|---|
|
|
47
47
|
| [Abyssal Maid Atelier](https://dsh-market.com/#skin:maid-atelier) (`maid-atelier`) | Small-tailqwq | Twin-maid atelier backdrop, deep-sea blue lace surfaces and a chibi sidebar |
|
|
48
|
+
| [Whale Girl · The Unreached](https://dsh-market.com/#skin:whale-fantasy) (`whale-fantasy`) | stushansusu | Cyber data-rain close-up backdrop, cold-navy holographic HUD and electric-cyan accents |
|
|
48
49
|
| [Whale Song](https://dsh-market.com/#skin:whale-song) (`whale-song`) | dsh-web | Deep-sea whale goddess backdrop, ice-blue ocean palette and gold hairlines |
|
|
49
|
-
| [Blue Fantasy](https://dsh-market.com/#skin:blue-fantasy) (`blue-fantasy`) | powerdog996 (DreamSkin community), adapted by dsh-web | Whale-illustration backdrop, periwinkle indigo palette and translucent panels |
|
|
50
50
|
|
|
51
|
-
| Abyssal Maid Atelier | Whale
|
|
51
|
+
| Abyssal Maid Atelier | Whale Girl · The Unreached | Whale Song |
|
|
52
52
|
|---|---|---|
|
|
53
|
-
|  |  |  |  |
|
|
54
54
|
|
|
55
|
-
Install any of them from the Workshop in one click
|
|
55
|
+
Install any of them from the Workshop in one click.
|
|
56
56
|
|
|
57
57
|
## Install
|
|
58
58
|
|
|
@@ -126,7 +126,9 @@ the selection.
|
|
|
126
126
|
uninstall: the plugin keeps its own settings page while another skin is on screen.
|
|
127
127
|
|
|
128
128
|
The skin center reads the plugin's markers and never writes them, and the plugin never writes
|
|
129
|
-
`data-dsh-skin`. Neither side can strand the other
|
|
129
|
+
`data-dsh-skin`. Neither side can strand the other.
|
|
130
|
+
|
|
131
|
+
## Configuration
|
|
130
132
|
|
|
131
133
|
- **Enable switch**: turns the whole card (try-on / apply / background controls) on or off; persisted in the v2 active-state document.
|
|
132
134
|
- **Background sliders**: occlusion (0–100%), two backdrop blur radii, input-card blur (0–20 px), and bubble opacity (0–100%); persisted in the same v2 document.
|
package/README.zh.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-skin-center?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.3-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
| 皮肤 | 作者 | 外观 |
|
|
46
46
|
|---|---|---|
|
|
47
47
|
| [深海女仆工坊](https://dsh-market.com/#skin:maid-atelier)(`maid-atelier`) | Small-tailqwq | 双女仆工坊背景、深海蓝蕾丝界面与 Q 版侧栏 |
|
|
48
|
+
| [鲸鱼娘 · 未至之境](https://dsh-market.com/#skin:whale-fantasy)(`whale-fantasy`) | stushansusu | 赛博数据雨少女特写背景 · 冷黑蓝全息 HUD · 电光蓝与青色高光 |
|
|
48
49
|
| [鲸吟](https://dsh-market.com/#skin:whale-song)(`whale-song`) | dsh-web | 深海鲸语女神背景 · 冰蓝海洋调色板 · 金色细线点缀 |
|
|
49
|
-
| [蓝色幻想](https://dsh-market.com/#skin:blue-fantasy)(`blue-fantasy`) | powerdog996(DreamSkin 社区)· dsh-web 适配 | 鲸鱼插画背景 · periwinkle 靛蓝调色板 · 半透明面板 |
|
|
50
50
|
|
|
51
|
-
| 深海女仆工坊 |
|
|
51
|
+
| 深海女仆工坊 | 鲸鱼娘 · 未至之境 | 鲸吟 |
|
|
52
52
|
|---|---|---|
|
|
53
|
-
|  |  |  |  |
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
三款都可从创意工坊一键安装。
|
|
56
56
|
|
|
57
57
|
## 安装
|
|
58
58
|
|
|
@@ -120,6 +120,7 @@ dsh plugin --profile web add dsh-plugin-wallpaper-engine
|
|
|
120
120
|
设置页照常可用。
|
|
121
121
|
|
|
122
122
|
皮肤中心只读插件的标记、从不写入,插件也从不写 `data-dsh-skin`,两边都无法把对方卡死。
|
|
123
|
+
|
|
123
124
|
## 配置
|
|
124
125
|
|
|
125
126
|
- **总开关**:开关整张卡片(试穿 / 应用 / 背景控制);持久化在 v2 活跃状态文档中。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://schemas.linxin666.org/dsh-skin/official-tokens-v1.json",
|
|
3
3
|
"contractVersion": 1,
|
|
4
|
-
"source": "official surfaces: @deepseek-ai/dsh-client-ui-theme@0.2.1-rc.
|
|
4
|
+
"source": "official surfaces: @deepseek-ai/dsh-client-ui-theme@0.2.1-rc.3 lib + @deepseek-ai/dsh-web-frontend@0.2.1-rc.3 dist/assets",
|
|
5
5
|
"excludedPrefix": "--dsw-static-",
|
|
6
6
|
"count": 329,
|
|
7
7
|
"tokens": [
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
皮肤中心不写委托插件的任何属性,委托插件不写 `data-dsh-skin`,双方都无法把
|
|
72
72
|
对方卡死。委托皮肤的选择会照常持久化、开机采纳与试穿还原;让路暂停的是
|
|
73
73
|
视觉,不是插件的设置页与偏好。
|
|
74
|
-
## part 组(
|
|
74
|
+
## part 组(90 行,含各 owner 行)
|
|
75
75
|
|
|
76
76
|
shell 区域(owner: shell):
|
|
77
77
|
|
|
@@ -127,6 +127,8 @@ family / 插件区域:
|
|
|
127
127
|
| `tab-bar` / `tab` | skill-explorer | 技能中心页签条/页签(中间列面板,同 ssh);`[data-dsh-plugin="skill-explorer"] [data-dsh-part="tab-bar"]` / `[data-dsh-plugin="skill-explorer"] [data-dsh-part="tab"]` |
|
|
128
128
|
| `skill-row` | skill-explorer | 技能卡行;`[data-dsh-plugin="skill-explorer"] [data-dsh-part="skill-row"]` |
|
|
129
129
|
| `filter-bar` | skill-explorer | 技能列表筛选条(搜索框 + 工作区选择 + 刷新);`[data-dsh-plugin="skill-explorer"] [data-dsh-part="filter-bar"]` |
|
|
130
|
+
| `entry` | message-edit | 回合末尾的「编辑并重发」触发按钮;`[data-dsh-plugin="message-edit"] [data-dsh-part="entry"]` |
|
|
131
|
+
| `editor` | message-edit | 回合末尾的内联编辑器根,包含文本框、分支副作用提示与提交操作;`[data-dsh-plugin="message-edit"] [data-dsh-part="editor"]` |
|
|
130
132
|
| `entry` | session-id | 侧栏 footer 触发器;`button[data-dsh-part="entry"]`(`[data-dsh-plugin="session-id"]` 容器内) |
|
|
131
133
|
| `panel` | session-id | 会话 ID 模态面板;`[role="dialog"]` 根(`[data-dsh-part="panel"]`) |
|
|
132
134
|
| `row` | session-id | 会话列表行;面板内行容器(`[data-dsh-part="row"]`) |
|
|
@@ -159,6 +161,17 @@ family / 插件区域:
|
|
|
159
161
|
| `lever-arm` | liangshen | 拨杆臂(拉杆 + 球头,随状态转动);lever 内 `[data-dsh-part="lever-arm"]` |
|
|
160
162
|
| `lever-burst` | liangshen | 拨下命中后的中奖特效浮层(闪光 / 冲击环 / 火花 / 横幅);`[data-dsh-part="lever-burst"]`,`prefers-reduced-motion` 下退化为淡出 |
|
|
161
163
|
| `lever-banner` | liangshen | 特效中的梁神横幅(模式名 + 文言文/二进制/摩斯三行);burst 内 `[data-dsh-part="lever-banner"]` |
|
|
164
|
+
| `panel` | browser-view | 右侧栏标签页主体根(工具栏 + 帧 + 动作行);`[data-dsh-plugin="browser-view"][data-dsh-part="panel"]` |
|
|
165
|
+
| `toggle` | browser-view | 会话头「浏览器」快捷按钮(打开或聚焦该标签页);`[data-dsh-part="toggle"]` |
|
|
166
|
+
| `toolbar` | browser-view | 顶部工具条(地址显示 + 连接状态 + 刷新),38px 高与官方浏览器标签页同构;panel 内 `[data-dsh-part="toolbar"]` |
|
|
167
|
+
| `address` | browser-view | 被控页面地址的只读显示(截断、可复制);toolbar 内 `[data-dsh-part="address"]` |
|
|
168
|
+
| `status` | browser-view | 连接状态标记(连接中 / 加载中 / 实时),文案随状态变化;toolbar 内 `[data-dsh-part="status"]` |
|
|
169
|
+
| `tabs` | browser-view | 被控浏览器的标签页 chips(仅在多于一张时绘制);panel 内 `[data-dsh-part="tabs"]` |
|
|
170
|
+
| `frame` | browser-view | 实时帧图像(`<img>`,`object-fit: contain`);panel 内 `[data-dsh-part="frame"]` |
|
|
171
|
+
| `trace` | browser-view | 底部动作行(最近一次工具动作的可读摘要);panel 内 `[data-dsh-part="trace"]` |
|
|
172
|
+
| `empty` | browser-view | 尚未收到画面时的空态占位;panel 内 `[data-dsh-part="empty"]` |
|
|
173
|
+
| `error` | browser-view | 宿主上报错误时的错误态占位;panel 内 `[data-dsh-part="error"]` |
|
|
174
|
+
| `tab-title` | browser-view | 右栏 chip 内本插件自有部分(图标 + 标题),chip 行盒归 shell;`[data-dsh-plugin="browser-view"] [data-dsh-part="tab-title"]` |
|
|
162
175
|
|
|
163
176
|
### 面板行身份锚点 `data-dsh-panel-entry`(owner: 各注册面板的插件)
|
|
164
177
|
|
|
@@ -175,7 +188,7 @@ shell 的 `[class*="panelGlyph"]` 内)。shell 目前不把 entry id 透传到
|
|
|
175
188
|
不进 `data-dsh-plugin`:plugin 属性标记插件面板根,皮肤里已有
|
|
176
189
|
`[data-dsh-plugin="ssh"] [class*="panel"]` 一类把根当作面板子树起点的规则,把字形也算进去会误伤。
|
|
177
190
|
|
|
178
|
-
## plugin 组(
|
|
191
|
+
## plugin 组(16 个)
|
|
179
192
|
|
|
180
193
|
| data-dsh-plugin | owner | 锚定方式 |
|
|
181
194
|
| --- | --- | --- |
|
|
@@ -190,9 +203,11 @@ shell 的 `[class*="panelGlyph"]` 内)。shell 目前不把 entry id 透传到
|
|
|
190
203
|
| `dsh-web-ui-market` | dsh-market | 创意工坊商店一级页(settings.section id `dsh-web-ui-market`),商店卡与目录条目容器 |
|
|
191
204
|
| `skin-center` | skins/skin-center | 一级设置分区 settings.section id `skin-center`(列已安装皮肤,属内置源时显式标记) |
|
|
192
205
|
| `session-id` | dsh-session-id | footer action slot entry id `session-id`;`[data-dsh-plugin="session-id"]`(面板 overlay 根 + 入口触发器) |
|
|
206
|
+
| `message-edit` | dsh-message-edit | `conversation.chat.turnTail` slot entry id `message-edit`;`[data-dsh-plugin="message-edit"]`(触发按钮 + 内联编辑器根) |
|
|
193
207
|
| `usage` | dsh-usage | 一级设置分区 settings.section id `dsh-usage`(创意工坊下方);`[data-dsh-plugin="usage"]`;侧栏底部速览卡容器 `[data-dsh-usage-foot-card]` |
|
|
194
208
|
| `preset-center` | dsh-preset-center | 创意工坊卡片的「预设」标签页面板(`dsh-workshop.panel` keyed 槽 key `preset`);`[data-dsh-plugin="preset-center"]` |
|
|
195
209
|
| `liangshen` | dsh-liangshen | 首页输入框内的梁神模式拨杆;`[data-dsh-plugin="liangshen"][data-dsh-part="lever"]`,slot entry id `liangshen-lever` |
|
|
210
|
+
| `browser-view` | dsh-browser-view | 右栏标签页类型 id `@linxin666/dsh-client-ui-browser-view`(`sidebar.right.pane.tab` 与 `.title` 的 key);`[data-dsh-plugin="browser-view"]`(面板根 + 会话头触发器);chip 内自有部分 `[data-dsh-part="tab-title"]` |
|
|
196
211
|
|
|
197
212
|
## 已知脆弱点(上游主题缝 PR 诉求)
|
|
198
213
|
|
package/lib/client.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -121,6 +121,11 @@ const REVIEWED_SKIN_HOOKS = {
|
|
|
121
121
|
manifestSha256: "38de22962a80602c22910324e7c5fec171342363760972b7421debeb628d8508",
|
|
122
122
|
hooksSha256: "199f37fe6969e3dfae4891708604b6b639f011068c10356f774145512fd3be69"
|
|
123
123
|
},
|
|
124
|
+
"diy-journal": {
|
|
125
|
+
entry: "hooks.mjs",
|
|
126
|
+
manifestSha256: "3bb6ed40ad441fd0286fb8040ba4d8697f5c4a30a099ec4cbef8ba1aaddd68f1",
|
|
127
|
+
hooksSha256: "6a286d2191b2ffdf2bdec7f92ffb9896cd9dfd12055160118fc120dc8efa9572"
|
|
128
|
+
},
|
|
124
129
|
"dragon-heir": {
|
|
125
130
|
entry: "hooks.mjs",
|
|
126
131
|
manifestSha256: "e963197ef3d7b0b444c5976b4dd42cb9e30ce79880bfcb4a076da3426ff60056",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-client-ui-skin-center",
|
|
3
3
|
"description": "In-GUI skin center for the dsh web GUI — the single skin package: skins are pure asset directories (built-in plus $DSH_HOME/skins) loaded and rendered only by the skin center; live try-on and one-click apply switch atomically in the page (no reload, no cordis.patch.yml rewrite, no restart)",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.9",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dsh": {
|
|
18
18
|
"engines": {
|
|
19
|
-
"dsh": ">=0.2.1-rc.
|
|
19
|
+
"dsh": ">=0.2.1-rc.3"
|
|
20
20
|
},
|
|
21
21
|
"bundle": {
|
|
22
22
|
"patch": "./cordis.patch.yml"
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"lightningcss": "^1.32.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@deepseek-ai/dsh": ">=0.2.1-rc.
|
|
52
|
+
"@deepseek-ai/dsh": ">=0.2.1-rc.3",
|
|
53
53
|
"react": "^18.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
57
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.
|
|
58
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.
|
|
59
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.
|
|
64
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.
|
|
65
|
-
"@deepseek-ai/dsh-settings": "0.2.1-rc.
|
|
57
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.3",
|
|
58
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.3",
|
|
59
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.3",
|
|
64
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.3",
|
|
65
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.3",
|
|
66
66
|
"@types/node": "^22.20.0",
|
|
67
67
|
"@types/react": "^18.3.0",
|
|
68
68
|
"@types/react-dom": "^18.3.0",
|