@dsh-fly/dsh-plugin-fly-engagement 0.1.4 → 0.1.5
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 +5 -27
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @dsh-fly/dsh-plugin-fly-engagement — browser half, built by scripts/build-plugin-client.mjs.
|
|
2
|
-
* src-hash:
|
|
2
|
+
* src-hash: 5e18fb2b6824fa812a98815cbc64cf270b64da44d6608ffd0d04db1eb8f26f15
|
|
3
3
|
* Factory-form CJS: the loader calls the factory with its platform `require`
|
|
4
4
|
* and memoizes the returned exports. Keep the banner so the loader id and the
|
|
5
5
|
* package that produced the bundle stay greppable in a live page. */
|
|
@@ -31,32 +31,10 @@ const PANEL_CSS = `/*
|
|
|
31
31
|
* 实现时一律 'var(--dsw-alias-*, 兜底)' —— 真宿主会给出 token,兜底只在 mock/降级时生效。
|
|
32
32
|
* 面板框(rail 8px / desk 12px / 3px 亮缘)照 '.fly-panel' 的结构,不再发明第二套。
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
--dsw-alias-fg-primary: #e8eef8;
|
|
39
|
-
--dsw-alias-fg-secondary: #9fb0c6;
|
|
40
|
-
--dsw-alias-fg-muted: #6b7d95;
|
|
41
|
-
--dsw-alias-border-l1: rgba(255, 255, 255, 0.10);
|
|
42
|
-
--fly-accent: #f0a55a;
|
|
43
|
-
--fly-accent-dim: rgba(240, 165, 90, 0.16);
|
|
44
|
-
--fly-critical: #ff5f6d;
|
|
45
|
-
--fly-high: #ff9b52;
|
|
46
|
-
--fly-medium: #e8c54a;
|
|
47
|
-
--fly-low: #6fc2ff;
|
|
48
|
-
--fly-info: #8fa3bd;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
* { box-sizing: border-box; }
|
|
52
|
-
body {
|
|
53
|
-
margin: 0;
|
|
54
|
-
padding: var(--fly-desk, 12px);
|
|
55
|
-
background: #05080d;
|
|
56
|
-
font: 13px/1.5 -apple-system, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
|
|
57
|
-
color: var(--dsw-alias-fg-primary);
|
|
58
|
-
}
|
|
59
|
-
|
|
34
|
+
/* 2026-10-19:这三条**只属于独立效果图页**(body padding / 全页重置 / token 兜底),
|
|
35
|
+
不能注入宿主 —— 它们把宿主页面挤了 12px 并刷成不透明底,症状是"侧栏卡片与 App 边缘
|
|
36
|
+
之间多出一条黑边、发光顶不到边"(用户判词)。宿主里每一条声明都自带 var() 兜底,
|
|
37
|
+
不需要这里的 :root。留注释备查,mock 页仍按原样式表渲染。 */
|
|
60
38
|
/* ── 面板框:照 .fly-panel 的结构(rail 8px / 3px 亮缘 / 底部关系型亮缘) ── */
|
|
61
39
|
.fly-eg-panel {
|
|
62
40
|
--fly-rail: 8px;
|