@dsh-plugin/dsh-ui-experience 1.0.0-dev.43490289639 → 1.0.0-dev.43491051069

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 CHANGED
@@ -166,6 +166,7 @@ M3 那侧的分离要说明白:Material 3 的 `emphasized` 整体是两段首
166
166
 
167
167
  - 覆盖页面上的全部样式表,包括其他插件注入的。首次应用时全量扫描,之后用 `MutationObserver` 监视 `head` 与 `body`;只有当新增节点本身是 `<style>` / `<link>`,或子树里含有时才补扫——聊天流式输出每帧都在改 DOM,无条件补扫会把一次性开销变成每帧开销。
168
168
  - 通过 `document.adoptedStyleSheets` 挂载的构造式样式表不是 DOM 变更,观察者看不到它,只能在下一次全量扫描(切换曲线族、解除减弱动效、重新应用设置)时被读到。
169
+ - 同理,对已挂载 `<style>` 再改 `textContent`、或在它的 `sheet` 上 `insertRule`/`replaceSync`,都不产生新增节点,也要等下一次全量扫描。DSH 自身与插件加载器都是「建 `<style>` → 设文本 → 挂载」,不受影响。
169
170
  - 跨源样式表读不到 `cssRules`,会在浏览器控制台记录一行并跳过——这类表的规则无法改写,静默跳过会让部分界面停留在原生曲线而无迹可循。(这条诊断走控制台而非 `~/.dsh/ui-experience.log`:后者由宿主半写入,浏览器半够不到文件系统。)
170
171
  - 状态会写在 `<html data-dsh-uix-motion="m3|m3e">` 上,便于区分曲线来源。
171
172
 
package/lib/client.js CHANGED
@@ -295,6 +295,7 @@
295
295
  return changed;
296
296
  }
297
297
  function scan() {
298
+ if (wantsReduced()) return;
298
299
  const active = settings;
299
300
  if (active === void 0 || active.mode === "off") return;
300
301
  const sheets = readableSheets();
@@ -432,11 +433,7 @@
432
433
  document.documentElement.setAttribute(MOTION_ATTRIBUTE, next.mode);
433
434
  realize();
434
435
  },
435
- refresh,
436
- restore,
437
- dispose() {
438
- restore();
439
- }
436
+ restore
440
437
  };
441
438
  }
442
439
 
@@ -1243,7 +1240,7 @@
1243
1240
  return () => {
1244
1241
  disposed = true;
1245
1242
  teardown();
1246
- motion.dispose();
1243
+ motion.restore();
1247
1244
  };
1248
1245
  }, "ui-experience: page-level layers");
1249
1246
  void poll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plugin/dsh-ui-experience",
3
- "version": "1.0.0-dev.43490289639",
3
+ "version": "1.0.0-dev.43491051069",
4
4
  "type": "module",
5
5
  "description": "UI experience enhancements for DeepSeek Harness: follow the system matugen Material You palette as the interface theme, and rewrite interface motion onto Material 3 / Material 3 Expressive curves.",
6
6
  "license": "MIT",