dsh-motion-ui 0.8.0 → 0.8.2
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 +35 -0
- package/README.md +10 -2
- package/VERIFICATION.md +14 -0
- package/client.js +254 -95
- package/lib/build-info.js +1 -1
- package/lib/canvas-source.js +27 -0
- package/lib/export-runtime-bundle.js +1 -1
- package/lib/sandbox.js +2 -1
- package/package.json +8 -7
package/lib/sandbox.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {canvasSource} from './canvas-source.js';
|
|
1
2
|
import {MECHANISM_RUNTIME} from './mechanism-runtime-bundle.js';
|
|
2
3
|
import { measureVisual } from './visual-audit.js';
|
|
3
4
|
import { formatNumber } from './format-number.js';
|
|
@@ -20,7 +21,7 @@ export function sandboxDocument(node, channel, nonce) {
|
|
|
20
21
|
const json = value => JSON.stringify(value).replace(/</g, '\\u003c').replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');
|
|
21
22
|
// Only bootstrap/generated script elements receive a nonce. Markup scripts/handlers stay inert.
|
|
22
23
|
return `<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'nonce-${nonce}'; style-src 'unsafe-inline'; img-src data:; font-src 'none'; connect-src 'none'; media-src 'none'; object-src 'none'; frame-src 'none'; worker-src 'none'; base-uri 'none'; form-action 'none'"><meta name="viewport" content="width=device-width,initial-scale=1"><style>${CANVAS_SYSTEM_CSS}</style></head><body><main id="canvas"></main><script nonce="${nonce}">(()=>{
|
|
23
|
-
const channel=${json(channel)}, source=${json(
|
|
24
|
+
const channel=${json(channel)}, source=${json(canvasSource(node))};
|
|
24
25
|
let snapshot={state:{},data:{},derived:{},disabled:true,theme:{}}, started=false;
|
|
25
26
|
const listeners=new Set(), send=(type,payload)=>parent.postMessage({dshCanvas:1,channel,type,payload},'*');
|
|
26
27
|
const report=e=>send('error',String(e?.message??e).slice(0,1000));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-motion-ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Readable conversational UI, interactive HTML/SVG, editable motion and local MP4 production for DeepSeek Harness.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"platform": "web"
|
|
38
38
|
},
|
|
39
39
|
"compatibility": {
|
|
40
|
-
"dsh": "0.2.0-rc.2 || 0.2.1-rc.1",
|
|
40
|
+
"dsh": "0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
41
41
|
"node": ">=22.19",
|
|
42
42
|
"profiles": [
|
|
43
43
|
"web",
|
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dshReleases": {
|
|
47
47
|
"0.2.0-rc.2": "compatible",
|
|
48
|
-
"0.2.1-rc.1": "compatible"
|
|
48
|
+
"0.2.1-rc.1": "compatible",
|
|
49
|
+
"0.2.1-rc.2": "compatible"
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.2 || 0.2.1-rc.1",
|
|
54
|
-
"@deepseek-ai/dsh-tools": "0.2.0-rc.2 || 0.2.1-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
|
|
55
56
|
"react": "^18.2.0 || ^19.0.0",
|
|
56
57
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
57
58
|
},
|
|
@@ -65,8 +66,8 @@
|
|
|
65
66
|
"react": "^18.3.1",
|
|
66
67
|
"react-dom": "^18.3.1",
|
|
67
68
|
"three": "^0.180.0",
|
|
68
|
-
"@deepseek-ai/dsh-tools": "0.2.1-rc.
|
|
69
|
-
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.
|
|
69
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.2"
|
|
70
71
|
},
|
|
71
72
|
"dependencies": {
|
|
72
73
|
"@deepseek-ai/schemastery": "^3.18.4",
|