dsh-islands-ui 1.1.2 → 1.2.0
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 +22 -0
- package/README.en.md +4 -3
- package/README.md +4 -3
- package/client.js +636 -3
- package/docs/host-contracts.md +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.0 — 2026-11-16
|
|
4
|
+
|
|
5
|
+
### 界面
|
|
6
|
+
|
|
7
|
+
- 新增平滑输入光标:覆盖光标与文字同高(取选区字形框高度),在同一行内以 150ms 的 `transform` 过渡平滑滑动;换行时直接跳到新行,避免斜向拖动。输入法组词期间回退到原生光标,指令 chip 选中、非折叠选区或失焦时隐藏覆盖光标。设置 → Islands UI 新增「平滑输入光标」开关,默认开启,偏好写入 `localStorage`(`dsh-islands-ui:smooth-caret`)。
|
|
8
|
+
- 对话输入框的光标统一由强调色 token 驱动:默认读取主题的 `--dsw-alias-state-business-primary`,自定义强调色时同步变化;平滑光标开启时由一层 2px 覆盖光标绘制,绘制期间原生光标置为透明,二者使用同一颜色。
|
|
9
|
+
- 发送按钮跟随强调色:原生按钮读取的是 `--dsw-alias-button-info-fill`,不会随自定义强调色变化;现改为 `--dsw-alias-state-business-primary`,并在自定义强调色时按亮/暗主题派生 hover 色。按钮通过 `composer-primary` 部件读取,不写哈希类名。
|
|
10
|
+
|
|
11
|
+
### 修复
|
|
12
|
+
|
|
13
|
+
- 窄屏(≤767px)右侧栏被工作区抽屉遮挡:右栏在窄屏由宿主切换为 `fullscreen` 覆盖层,但仍挂载在框架内的零宽右列中,抽屉遮罩(z-index 70)因此盖在它上面——抽屉一打开右侧栏就整块消失,而切换按钮仍显示“已打开”,看起来再也叫不出来。现在全屏右栏在窄屏下升到遮罩、抽屉和窗口外壳层之上(z-index 78)。
|
|
14
|
+
- 窄屏全屏右栏的定位偏出画布:宿主用 `right: 0` 把它挂在零宽右列上,皮肤的 5px 内边距使它左移一格、右侧留出 5px 画布。现在按画布间隙把它对齐到窗口外沿。
|
|
15
|
+
- 圆形控件被宿主的 `corner-shape` 规则压成圆角方形:DSH 用一条全局 `*, :before, :after { corner-shape: superellipse(1.5) }` 给所有圆角换成了 iOS 式超椭圆,`border-radius: 50%` 只决定圆角大小、不决定曲线形状,所以更新入口、开关、强调色色块、点阵圆点、滑块圆钮等看着都是"方圆"。皮肤自己的圆形控件显式声明 `corner-shape: round`(Chromium 之外该声明被忽略,退回普通圆角)。
|
|
16
|
+
- 更新入口的底色被对话区规则覆盖:按钮原本沿用了宿主的 `data-phase` 契约,而 `src/30-conversation.css` 里有 `body[data-islands-ui] [data-phase] { background: transparent }`(同特异性、且该文件在样式表末尾),于是未 hover 时按钮底色全透明、只剩阴影,hover 才因为规则更具体变蓝。属性改为皮肤自己的 `data-update-phase`,宿主契约规则不再命中。
|
|
17
|
+
- 更新入口改为跟随强调色:底色与阴影读 `--dsw-alias-state-business-primary`(皮肤把它重映射为自定义强调色),hover 色由同一 token 派生;之前是两个写死的品牌蓝,自定义强调色时不会跟随。窄屏全屏右栏改为 `position: fixed` 贴视口:宿主把它挂在右轨里用 `right: 0` 定位,右轨一旦有宽度面板就被推出屏幕,画面只剩空画布而按钮仍显示“已打开”。
|
|
18
|
+
- 更新入口的 `is-pending` 不再使用整体 `opacity`:那会把圆面的颜色淡化到画布色、却让彩色阴影留在原处,读起来像一枚发白的圆片浮在阴影上。改为保持饱和底色、取消上浮并收紧阴影,同时覆盖仍生效的 hover 规则(原先 hover 的特异性高于 pending)。
|
|
19
|
+
|
|
20
|
+
### 兼容性
|
|
21
|
+
|
|
22
|
+
- 平滑光标使用独立的兼容探测,与全局皮肤门禁分离:只检查 composer 的公开钩子(`[data-composer-input]`、`[data-input-scroll]`、定位包裹层)与 `data-*caret*` 外部光标标记,不再按 DSH 版本号判断。不匹配时只回退原生光标,在设置页对应开关下显示行内提示并禁用该开关,不影响皮肤其他部分;兼容后按用户原偏好自动恢复。
|
|
23
|
+
- 平滑光标的控制器拆成 `src/host/caret.js`,与 `src/host/runtime.js` 一样由 `build.mjs` 内联,不依赖模板内部符号;样式独立为 `src/31-caret.css`。`data-composer-input`、`data-composer-composing`、`data-composer-chip-selected`、`data-input-scroll` 登记进宿主契约表,`data-islands-smooth-caret`、`data-islands-caret-active` 登记进门禁的自身属性白名单。
|
|
24
|
+
|
|
3
25
|
## 1.1.2 — 2026-11-15
|
|
4
26
|
|
|
5
27
|
### 修复
|
package/README.en.md
CHANGED
|
@@ -61,7 +61,7 @@ Refresh after uninstalling. Your skin preferences stay on this machine and are r
|
|
|
61
61
|
| :---: | --- | --- |
|
|
62
62
|
| 🏝 | **Floating islands** | Canvas, conversation, workspace, right sidebar and bottom panel become separate rounded surfaces; flat, no drop shadows, separated by color and a 1px hairline |
|
|
63
63
|
| 🧭 | **Persistent rail** | Workspace plus every plugin launcher, shown inline; the home button is a pure conversation / workspace-drawer trigger with no selected state (subtle hover and a translucent click ripple); click a panel to open it, drag to reorder with a floating preview, right-click to show or hide |
|
|
64
|
-
| ⚙️ | **Settings page** | Settings → Islands UI: on/off, accent presets, custom color
|
|
64
|
+
| ⚙️ | **Settings page** | Settings → Islands UI: on/off, accent presets, custom color, follow-theme and the smooth input caret |
|
|
65
65
|
| 📌 | **Pinned shelf** | Pinned sessions stay in their workspace and are also aggregated between “New session” and “Workspace”; the group collapses |
|
|
66
66
|
| 🌙 | **Dark mode** | Full dark palette: near-black canvas, dark islands, translucent interaction layers |
|
|
67
67
|
| 🔄 | **Desktop update entry** | Pinned above the settings gear; distinct states for available, downloading, verifying, installing and failure, with accent-colored 3×3 dot-matrix loaders |
|
|
@@ -80,6 +80,7 @@ Everything happens in the interface layer. Rail ordering, the pinned shelf and t
|
|
|
80
80
|
| Spacing | 5px between every island, including the bottom panel |
|
|
81
81
|
| Top bar | 40px window strip hosting the conversation tools and the right-panel toggle; macOS clears the traffic lights, Linux starts at 8px below the native title bar. Windows renders no island top bar: the caption row keeps the native sidebar toggle and the right-hand tools stay in the conversation header |
|
|
82
82
|
| Accent | Brand blue by default; purple / green / orange / pink / red presets or any custom color |
|
|
83
|
+
| Caret | The conversation composer uses a smooth caret: it glides along a line, jumps to the next one, and follows the accent color; it can be turned off in settings |
|
|
83
84
|
|
|
84
85
|
---
|
|
85
86
|
|
|
@@ -121,7 +122,7 @@ When reporting an issue, please include your OS, DSH version, window size and a
|
|
|
121
122
|
|
|
122
123
|
The skin only redraws the interface. It does not modify or upload your sessions, settings or plugin data.
|
|
123
124
|
|
|
124
|
-
The master switch, accent, pinned-group state and rail order are stored in your browser's local storage. Turning the skin off keeps these preferences; to reset them, restore the defaults in Settings or clear the site's local storage.
|
|
125
|
+
The master switch, accent, smooth-caret switch, pinned-group state and rail order are stored in your browser's local storage. Turning the skin off keeps these preferences; to reset them, restore the defaults in Settings or clear the site's local storage.
|
|
125
126
|
|
|
126
127
|
---
|
|
127
128
|
|
|
@@ -143,7 +144,7 @@ Check that the plugin is enabled in the current DSH profile and refresh (`⌘R`
|
|
|
143
144
|
|
|
144
145
|
**Does it touch my sessions or settings?**
|
|
145
146
|
|
|
146
|
-
No. The skin only redraws the interface; the master switch, accent, pinned-group state and rail order live in your browser's local storage.
|
|
147
|
+
No. The skin only redraws the interface; the master switch, accent, smooth-caret switch, pinned-group state and rail order live in your browser's local storage.
|
|
147
148
|
|
|
148
149
|
**How do I fully reset the skin?**
|
|
149
150
|
|
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ dsh plugin --profile desktop remove dsh-islands-ui
|
|
|
81
81
|
| :---: | --- | --- |
|
|
82
82
|
| 🏝 | **浮岛布局** | 画布、主会话、工作区、右侧栏、底部面板各自独立;扁平无投影,以色块 + 1px 发丝线分隔 |
|
|
83
83
|
| 🧭 | **常驻左侧栏** | 工作区与全部插件图标直接排列;首页按钮只作会话 / 工作区抽屉触发器、不占选中态(hover 浅色反馈、点击半透明涟漪);面板图标点击切换,按住拖动排序(浮动预览跟随鼠标),右键显示 / 隐藏图标 |
|
|
84
|
-
| ⚙️ | **独立设置页** | 设置 → Islands UI:一键开关皮肤、强调色(预设 + 自定义 +
|
|
84
|
+
| ⚙️ | **独立设置页** | 设置 → Islands UI:一键开关皮肤、强调色(预设 + 自定义 + 跟随主题)、平滑输入光标 |
|
|
85
85
|
| 📌 | **置顶聚合** | 置顶会话同时保留在原工作区,并聚合到「新会话」与「工作区」标题之间;分类可折叠 |
|
|
86
86
|
| 🌙 | **深色模式** | 完整深色配色:近黑画布、深灰岛屿、白色透明交互层与深色阴影 |
|
|
87
87
|
| 🔄 | **桌面更新入口** | 设置齿轮上方常驻;发现新版本、下载、校验、安装与失败各有独立状态,加载态使用强调色 3×3 点阵动效 |
|
|
@@ -98,6 +98,7 @@ dsh plugin --profile desktop remove dsh-islands-ui
|
|
|
98
98
|
| 间距 | 所有岛屿统一 5px 间隙,左右、顶部、底部、底部面板四周一致 |
|
|
99
99
|
| 顶部栏 | 40px 窗口栏,承载对话工具组和右侧栏开关;macOS 避开红绿灯,Linux 从 8px 开始。Windows 不渲染该顶栏:标题栏保留原生侧栏开关,右侧工具回到会话头原生位置 |
|
|
100
100
|
| 强调色 | 默认品牌蓝,可改为紫 / 绿 / 橙 / 粉 / 红或任意取色 |
|
|
101
|
+
| 输入光标 | 对话输入框使用平滑光标:同一行内随选区滑动、换行直达,颜色跟随强调色;可在设置中关闭 |
|
|
101
102
|
|
|
102
103
|
### 常用快捷键
|
|
103
104
|
|
|
@@ -133,7 +134,7 @@ Windows 使用 DSH 原生标题栏,不渲染插件的 40px 顶栏;工作区
|
|
|
133
134
|
|
|
134
135
|
皮肤只重绘界面,不会修改或上传你的会话、设置或插件数据。
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
总开关、强调色、平滑光标开关、置顶折叠和左侧栏顺序保存在本机浏览器存储中;关闭皮肤不会删除这些偏好。需要重置时,可在设置中改回默认,或清除该站点的本地存储。
|
|
137
138
|
|
|
138
139
|
---
|
|
139
140
|
|
|
@@ -155,7 +156,7 @@ Windows 使用 DSH 原生标题栏,不渲染插件的 40px 顶栏;工作区
|
|
|
155
156
|
|
|
156
157
|
**会修改我的会话、设置或插件数据吗?**
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
不会。皮肤只重绘界面;总开关、强调色、平滑光标开关、置顶折叠和左侧栏顺序保存在本机浏览器存储中。
|
|
159
160
|
|
|
160
161
|
**怎么彻底恢复默认外观?**
|
|
161
162
|
|