dsh-plugin-core-demo 0.2.9 → 0.2.10
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/dist/client.js +6 -4
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -3461,10 +3461,12 @@ function DemoPage() {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
const cs = getComputedStyle(el);
|
|
3463
3463
|
let rule = "no-rule";
|
|
3464
|
+
let sheets = 0;
|
|
3464
3465
|
for (const sh of Array.from(document.styleSheets)) {
|
|
3465
3466
|
let rules;
|
|
3466
3467
|
try {
|
|
3467
3468
|
rules = sh.cssRules;
|
|
3469
|
+
sheets++;
|
|
3468
3470
|
} catch {
|
|
3469
3471
|
continue;
|
|
3470
3472
|
}
|
|
@@ -3474,8 +3476,8 @@ function DemoPage() {
|
|
|
3474
3476
|
}
|
|
3475
3477
|
}
|
|
3476
3478
|
}
|
|
3477
|
-
setDiag(`seg ${cs.backgroundColor} gap ${cs.gap}
|
|
3478
|
-
rule: ${rule}`);
|
|
3479
|
+
setDiag(`seg ${cs.backgroundColor} gap ${cs.gap} display ${cs.display}
|
|
3480
|
+
rule(${sheets} sheets): ${rule}`);
|
|
3479
3481
|
}, [active]);
|
|
3480
3482
|
const dark = typeof document !== "undefined" && document.body.hasAttribute("data-ds-dark-theme");
|
|
3481
3483
|
return (0, import_react31.createElement)(
|
|
@@ -3534,8 +3536,8 @@ rule: ${rule}`);
|
|
|
3534
3536
|
fontFamily: "var(--dshpc-font-mono)"
|
|
3535
3537
|
}
|
|
3536
3538
|
},
|
|
3537
|
-
(0, import_react31.createElement)("div", null, `core v${"0.2.
|
|
3538
|
-
(0, import_react31.createElement)("div", null, `demo v${"0.2.
|
|
3539
|
+
(0, import_react31.createElement)("div", null, `core v${"0.2.10"}`),
|
|
3540
|
+
(0, import_react31.createElement)("div", null, `demo v${"0.2.10"}`),
|
|
3539
3541
|
(0, import_react31.createElement)("div", { title: "body[data-ds-dark-theme]" }, `dark: ${dark ? "yes" : "no"}`),
|
|
3540
3542
|
(0, import_react31.createElement)("div", { title: "\u5B9E\u6D4B\u9875\u9762\u4E0A\u7B2C\u4E00\u4E2A .dshpc-seg \u7684\u8F68\u9053\u5E95\u8272\u4E0E\u95F4\u8DDD" }, diag)
|
|
3541
3543
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-core-demo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "dsh-plugin-core 的组件预览插件:装进 DSH 宿主后,在真实宿主环境里预览控件与业务组件",
|
|
5
5
|
"keywords": ["deepseek", "harness", "dsh", "dsh-plugin", "dsh-plugin-core"],
|
|
6
6
|
"homepage": "https://github.com/cq-guojia/dsh-plugin-core/tree/main/packages/demo",
|