dsh-folia 3.0.0 → 3.0.1

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.
@@ -595,7 +595,16 @@ export function registerSkinRoutes(webServer, c) {
595
595
  id,
596
596
  name: typeof doc.name === 'string' ? doc.name : id,
597
597
  backgroundMedia: media ? { light: shape(media.light), dark: shape(media.dark) } : null,
598
- hooks: typeof c.hooks === 'string' ? c.hooks : '',
598
+ // ⚠️ hooks 的声明位置是 **`facets.client.entry`**,不是 `contributes.hooks`
599
+ //(契约见皮肤中心 contracts/hooks-api.d.ts:`facets.client.entry (hooks.mjs)`)。
600
+ // 之前读 contributes.hooks ⇒ 28 套带动效的皮肤全部"无动效",而那正是它们
601
+ // 看起来"显示不全"的部分(粒子/漂浮/交互)。这里两个位置都认,以 facets 为准。
602
+ hooks: (() => {
603
+ const facets = (doc && doc.facets) || null;
604
+ const client = facets && facets.client;
605
+ if (client && typeof client.entry === 'string' && client.entry) return client.entry;
606
+ return typeof c.hooks === 'string' ? c.hooks : '';
607
+ })(),
599
608
  });
600
609
  },
601
610
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-folia",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Folia 壁纸引擎:把本机 Wallpaper Engine 壁纸搬进 DSH 界面(场景实时渲染 / 视频 / 网页),内置液态玻璃与 Folia 吉祥物,并可从自建站点拉取壁纸。单包形态(组件已合并)。",
5
5
  "type": "module",
6
6
  "engines": {