dsh-oort-theme-plugin 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.i18n.yaml +37 -0
- package/README.md +84 -2
- package/README.zh.md +85 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +1255 -0
- package/lib/index.js +11 -0
- package/package.json +73 -4
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Host 半侧标记插件:真正的行为都在浏览器侧导出里。
|
|
4
|
+
*
|
|
5
|
+
* client-modules 按 Loader specifier 解析到本包的 package.json,读取
|
|
6
|
+
* dsh.client 声明,把 lib/client.js 作为浏览器模块提供;Host 侧不需要额外接线。
|
|
7
|
+
*/
|
|
8
|
+
/** Host 侧插件体:空实现,仅作为该包在 Loader 图中的存在标记。 */
|
|
9
|
+
function apply() {}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { apply };
|
package/package.json
CHANGED
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-oort-theme-plugin",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"description": "主题插件:为 DSH Web 客户端注册多套自定义外观主题,并提供「外观」主题选择弹窗",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./client": {
|
|
12
|
+
"default": "./lib/client.js"
|
|
13
|
+
},
|
|
14
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"dsh": {
|
|
18
|
+
"bundle": {
|
|
19
|
+
"patch": "./cordis.patch.yml"
|
|
20
|
+
},
|
|
21
|
+
"client": {
|
|
22
|
+
"inject": [
|
|
23
|
+
"@deepseek-ai/dsh-client-locale",
|
|
24
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
25
|
+
"@deepseek-ai/dsh-client-ui-primitives",
|
|
26
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
27
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
28
|
+
"@deepseek-ai/dsh-client-ui-theme"
|
|
29
|
+
],
|
|
30
|
+
"platform": "web"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"lib/index.js",
|
|
35
|
+
"lib/client.js",
|
|
36
|
+
"cordis.patch.yml"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsdown --config-loader tsx",
|
|
41
|
+
"bundle": "npm run build",
|
|
42
|
+
"prepack": "npm run build",
|
|
43
|
+
"watch": "tsdown --config-loader tsx --watch"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@deepseek-ai/cordis": "*",
|
|
47
|
+
"@deepseek-ai/dsh-client-locale": "*",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-conversation": "*",
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-primitives": "*",
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-renderer": "*",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-slots": "*",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-theme": "*"
|
|
53
|
+
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"@deepseek-ai/cordis": { "optional": true },
|
|
56
|
+
"@deepseek-ai/dsh-client-locale": { "optional": true },
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-conversation": { "optional": true },
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-primitives": { "optional": true },
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-renderer": { "optional": true },
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-slots": { "optional": true },
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-theme": { "optional": true }
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@deepseek-ai/cordis": "workspace:~",
|
|
65
|
+
"@deepseek-ai/dsh-client-locale": "workspace:*",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-conversation": "workspace:*",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-primitives": "workspace:*",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-renderer": "workspace:*",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-slots": "workspace:*",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-theme": "workspace:*",
|
|
71
|
+
"@types/react": "~18.3.1",
|
|
72
|
+
"clsx": "^2.0.0",
|
|
73
|
+
"react": "^18.2.0"
|
|
74
|
+
}
|
|
75
|
+
}
|