@iasiv5/dsh-skins 1.5.17 → 1.5.19
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 +17 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +4 -2
package/lib/client.js
CHANGED
|
@@ -446,6 +446,18 @@
|
|
|
446
446
|
}
|
|
447
447
|
return lines.join("\n");
|
|
448
448
|
}
|
|
449
|
+
function buildFullscreenBaseCss(bodyAttribute, opaqueFills) {
|
|
450
|
+
if (opaqueFills === null) return "";
|
|
451
|
+
const body = `body[${datasetAttribute(bodyAttribute)}]`;
|
|
452
|
+
const column = ' [data-rightbar-fullscreen] [class*="_rightbarCol"]';
|
|
453
|
+
const dockPanel = ' [data-sidebar-right-panel="fullscreen"]';
|
|
454
|
+
const dockPane = ' [data-sidebar-right-panel="fullscreen"] [data-dockkit-pane]';
|
|
455
|
+
return [
|
|
456
|
+
"/* dsh-skins fullscreen base (ADR-0020): solid skin-tone base while data-rightbar-fullscreen is set — the fullscreen dockkit PANE paints a translucent bg token where the official theme paints opaque white (DOM-dump evidence), so the pane is the bleed surface; solid matches the official look. Docked column untouched */",
|
|
457
|
+
`${body}${column},${body}${dockPanel},${body}${dockPane}{background-color:${opaqueFills.light}!important}`,
|
|
458
|
+
`${body}[data-ds-dark-theme]${column},${body}[data-ds-dark-theme]${dockPanel},${body}[data-ds-dark-theme]${dockPane}{background-color:${opaqueFills.dark}!important}`
|
|
459
|
+
].join("\n");
|
|
460
|
+
}
|
|
449
461
|
var PRODUCTION_FIELDS = /* @__PURE__ */ new Set([
|
|
450
462
|
"id",
|
|
451
463
|
"label",
|
|
@@ -693,6 +705,11 @@ ${darkSelector}{${dark.join(";")}}`;
|
|
|
693
705
|
buildShellAlignmentCss(effects.bodyAttribute, opaqueFills, backdrop2)
|
|
694
706
|
);
|
|
695
707
|
stops.push(() => tag.remove());
|
|
708
|
+
const fullscreenCss = buildFullscreenBaseCss(effects.bodyAttribute, opaqueFills);
|
|
709
|
+
if (fullscreenCss !== "") {
|
|
710
|
+
const fullscreenTag = styleTag(`dsh-skins/${skin.id}.fullscreen.css`, fullscreenCss);
|
|
711
|
+
stops.push(() => fullscreenTag.remove());
|
|
712
|
+
}
|
|
696
713
|
}
|
|
697
714
|
const backdrop = backdropCss(effects);
|
|
698
715
|
if (backdrop !== null) {
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iasiv5/dsh-skins",
|
|
3
3
|
"description": "DSH Web 皮肤插件:多套品牌皮肤侧栏热切换。",
|
|
4
4
|
"icon": "./icon.svg",
|
|
5
|
-
"version": "1.5.
|
|
5
|
+
"version": "1.5.19",
|
|
6
6
|
"homepage": "https://github.com/iasiv5/dsh-skins#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -29,11 +29,13 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": "./lib/index.js",
|
|
31
31
|
"./client": "./lib/client.js",
|
|
32
|
+
"./locale/*.json": "./locale/*.json",
|
|
32
33
|
"./package.json": "./package.json"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"lib",
|
|
36
37
|
"cordis.patch.yml",
|
|
38
|
+
"locale",
|
|
37
39
|
"README.md",
|
|
38
40
|
"README.en.md",
|
|
39
41
|
"LICENSE",
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
"scripts": {
|
|
80
82
|
"build": "node scripts/build-client.mjs",
|
|
81
83
|
"watch": "node scripts/build-client.mjs --watch",
|
|
82
|
-
"check:lockfile": "pnpm install --frozen-lockfile
|
|
84
|
+
"check:lockfile": "pnpm install --frozen-lockfile",
|
|
83
85
|
"test": "pnpm run build && node smoke-test.cjs && node --test tests/*.test.mjs",
|
|
84
86
|
"verify:readme": "node scripts/verify-readme-pairing.mjs",
|
|
85
87
|
"verify:bundle": "node scripts/verify-bundle-guard.mjs",
|