@dsh-plugin/dsh-ui-experience 1.0.0-dev.43488816373 → 1.0.0-dev.43488936935
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/lib/client.js +8 -3
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
];
|
|
196
196
|
function createMotion() {
|
|
197
197
|
const patches = /* @__PURE__ */ new Map();
|
|
198
|
+
const durationBase = /* @__PURE__ */ new Map();
|
|
198
199
|
const unreadable = /* @__PURE__ */ new Set();
|
|
199
200
|
const media = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
200
201
|
let settings;
|
|
@@ -317,10 +318,14 @@
|
|
|
317
318
|
const root = document.documentElement;
|
|
318
319
|
const computed = window.getComputedStyle(root);
|
|
319
320
|
for (const token of DURATION_TOKENS) {
|
|
320
|
-
|
|
321
|
+
let base = durationBase.get(token);
|
|
321
322
|
if (base === void 0) {
|
|
322
|
-
|
|
323
|
-
|
|
323
|
+
base = parseDurationMs(computed.getPropertyValue(token).trim());
|
|
324
|
+
if (base === void 0) {
|
|
325
|
+
console.error(`ui-experience: motion cannot read ${token}; durations using it keep their shipped value`);
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
durationBase.set(token, base);
|
|
324
329
|
}
|
|
325
330
|
root.style.setProperty(token, `${Math.round(base * active.durationScale)}ms`);
|
|
326
331
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plugin/dsh-ui-experience",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.43488936935",
|
|
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",
|