dsh-theme-escook 1.0.5 → 1.0.6
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/README.md +2 -1
- package/README.zh.md +2 -1
- package/client/client.bundle.js +2 -1
- package/client/client.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,8 @@ The official desktop application needs this plugin to add these choices.
|
|
|
14
14
|
|
|
15
15
|
## Requirements
|
|
16
16
|
|
|
17
|
-
Version `1.0.
|
|
17
|
+
Version `1.0.6` requires `@deepseek-ai/dsh-client-ui-theme >=0.2.0-rc.2 <0.3.0-0`.
|
|
18
|
+
Version `1.0.5` has a default-export defect affecting activation and cleanup; upgrade to `1.0.6`.
|
|
18
19
|
Update older applications or continue using an earlier plugin version.
|
|
19
20
|
|
|
20
21
|
Themes use the official theme service to synchronize tokens and light/dark mode.
|
package/README.zh.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
## 兼容要求
|
|
16
16
|
|
|
17
|
-
`1.0.
|
|
17
|
+
`1.0.6` 使用官方主题与插槽服务,要求 `@deepseek-ai/dsh-client-ui-theme >=0.2.0-rc.2 <0.3.0-0`。
|
|
18
|
+
`1.0.5` 存在默认导出导致的启动与卸载问题,请升级至 `1.0.6`。
|
|
18
19
|
旧内核请先升级应用,或继续使用旧版插件。
|
|
19
20
|
|
|
20
21
|
## 配色与生命周期
|
package/client/client.bundle.js
CHANGED
|
@@ -27,7 +27,7 @@ var client_exports = {};
|
|
|
27
27
|
__export(client_exports, {
|
|
28
28
|
THEME_SCHEMES: () => THEME_SCHEMES,
|
|
29
29
|
apply: () => apply,
|
|
30
|
-
default: () =>
|
|
30
|
+
default: () => client_default,
|
|
31
31
|
inject: () => inject
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(client_exports);
|
|
@@ -303,6 +303,7 @@ var apply = (ctx) => {
|
|
|
303
303
|
const controller = activate(ctx);
|
|
304
304
|
return () => controller.dispose();
|
|
305
305
|
};
|
|
306
|
+
var client_default = { inject, apply };
|
|
306
307
|
|
|
307
308
|
return module.exports;
|
|
308
309
|
}
|
package/client/client.js
CHANGED
|
@@ -5,7 +5,7 @@ export { THEME_SCHEMES };
|
|
|
5
5
|
export const inject = ['theme', 'slots'];
|
|
6
6
|
const STORAGE_KEY = 'dsh_theme_escook_scheme';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function activate(ctx) {
|
|
9
9
|
const cleanups = [];
|
|
10
10
|
const listeners = new Set();
|
|
11
11
|
const previousPreference = ctx.theme.getTheme().preference;
|
|
@@ -85,3 +85,6 @@ export const apply = (ctx) => {
|
|
|
85
85
|
const controller = activate(ctx);
|
|
86
86
|
return () => controller.dispose();
|
|
87
87
|
};
|
|
88
|
+
|
|
89
|
+
// 宿主 Loader 优先选择 default,依赖声明和激活入口必须在同一对象上。
|
|
90
|
+
export default { inject, apply };
|