dsh-conversation-recycle-bin 0.3.6 → 0.3.7

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 CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to `dsh-conversation-recycle-bin` are documented here.
4
4
  The format follows Keep a Changelog; the project uses Semantic Versioning.
5
5
 
6
+ ## [0.3.7] — 2026-10-24
7
+
8
+ ### Fixed
9
+
10
+ - **深色主题下主按钮文字不可见(「确认按钮消失」)**:`.dc-btn-primary` 用 `--dsw-alias-brand-primary` 作填充、却把文字写死成 `#fff`。该 token 是**会随主题反转的填充色**:浅色主题为 `neutral-bluish-1000`(rgb(15,17,21),近黑),深色主题为 `neutral-bluish-50`(rgb(249,250,251),近白)。于是深色主题下是「近白底 + 白字」,对比度约 1.04:1,删除成功对话框右下角只剩一个白块。改为填充用 `--dsw-alias-button-primary-fill`、文字用 `--dsw-alias-label-primary-inverted`(浅色 = 白、深色 = `neutral-bluish-800` rgb(53,54,56)),悬停改用 `--dsw-alias-button-primary-hover` 并去掉 `filter:brightness(.94)`。新增用例把这条配对钉住,防止再用字面色值。
11
+
6
12
  ## [0.3.6] — 2026-10-24
7
13
 
8
14
  对应 `AUDIT-2026-10-24-desktop-web-rc3.md` §7 的四条「建议动作」(A2 / A3 / A5 / A6)。同一节的 A1、A4、A7、A8 复核后判定为产品取舍(不申报未直接消费的 client 依赖、不导出 `Config` 以免设置页脱离非表单语义、归档读保留双源缓存、`missingSessionPaths` 保持成员判定),本版不改。
package/client.js CHANGED
@@ -1984,8 +1984,14 @@ window.__ModuleLoader__.load({
1984
1984
  .dc-btn{height:30px;padding:0 12px;border-radius:7px;border:1px solid var(--dsw-alias-border-l2,#c9cdd4);background:var(--dsw-alias-bg-layer-1,#f7f8fa);color:var(--dsw-alias-label-primary,#1f2329);font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
1985
1985
  .dc-btn:hover:not(:disabled){background:var(--dsw-alias-bg-layer-2,#eff0f2)}
1986
1986
  .dc-btn:disabled{opacity:.5;cursor:not-allowed}
1987
- .dc-btn-primary{background:var(--dsw-alias-brand-primary,#4d6bfe);border-color:var(--dsw-alias-brand-primary,#4d6bfe);color:#fff}
1988
- .dc-btn-primary:hover:not(:disabled){filter:brightness(.94);background:var(--dsw-alias-brand-primary,#4d6bfe)}
1987
+ /* --dsw-alias-brand-primary is a FILL that flips with the theme: near-black
1988
+ (#0f1115) in light, near-white (#f9fafb) in dark. Pairing it with a hard-coded
1989
+ white label made the primary button's text invisible on dark (contrast
1990
+ ~1.04:1) — that is the "确认按钮消失" report. The design system's counterpart
1991
+ for text on a primary fill is --dsw-alias-label-primary-inverted: white in
1992
+ light, neutral-800 (#353638) in dark. */
1993
+ .dc-btn-primary{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4d6bfe));border-color:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary,#4d6bfe));color:var(--dsw-alias-label-primary-inverted,#fff)}
1994
+ .dc-btn-primary:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover,var(--dsw-alias-brand-primary,#4d6bfe))}
1989
1995
  .dc-btn-danger{color:var(--dsw-alias-state-error-primary,#d93026);border-color:var(--dsw-alias-state-error-primary,#d93026);background:transparent}
1990
1996
  .dc-btn-danger:hover:not(:disabled){background:rgba(217,48,38,.08)}
1991
1997
  .dc-error{font-size:12px;line-height:1.55;padding:8px 10px;border-radius:8px;margin:8px 0;color:var(--dsw-alias-state-error-primary,#d93026);background:rgba(217,48,38,.08);border:1px solid rgba(217,48,38,.28)}
package/lib/version.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * asserted against it by `test/manifest.test.mjs` so the two can never drift
6
6
  * (they did: the constant stayed at 0.1.0 while the package reached 0.1.4).
7
7
  */
8
- export const PLUGIN_VERSION = '0.3.6'
8
+ export const PLUGIN_VERSION = '0.3.7'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-conversation-recycle-bin",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "DSH conversation deletion with an optional, previewed cascade into conversation-associated memory: soft delete + recycle bin, audit trail, batch rate limits and per-session rollback. 删除对话(可选一并删除关联记忆):软删除与回收站、审计留痕、批量限流、失败回滚。",
5
5
  "repository": {
6
6
  "type": "git",