@linkdesk/plugin-sdk 0.1.11 → 0.1.13

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Encaron
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "@linkdesk/plugin-sdk",
3
- "version": "0.1.11",
4
- "description": "@linkdesk/plugin-sdk——LinkDesk 插件作者 SDK(对标 @types/vscode):window.linkdesk.* 类型 + 一键 build(.linkdesk-plugin) + dev 宿主 + plugin.json 验证 + eslint 门禁(E6#54d)。作者 npm i 后零壳源码依赖。",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "default": "./dist/index.js"
12
- },
13
- "./eslint": {
14
- "types": "./dist/eslint/index.d.ts",
15
- "default": "./dist/eslint/index.js"
16
- },
17
- "./package.json": "./package.json"
18
- },
19
- "files": [
20
- "dist",
21
- "schemas",
22
- "dev-host"
23
- ],
24
- "sideEffects": false,
25
- "bin": {
26
- "linkdesk-plugin-sdk": "./dist/bin.js"
27
- },
28
- "publishConfig": {
29
- "access": "public"
30
- },
31
- "engines": {
32
- "node": ">=20.0.0"
33
- },
34
- "scripts": {
35
- "build": "tsc -p tsconfig.build.json",
36
- "typecheck": "tsc -p tsconfig.json --noEmit",
37
- "prepack": "tsc -p tsconfig.build.json"
38
- },
39
- "dependencies": {
40
- "@linkdesk/contracts": "^0.1.1",
41
- "@typescript-eslint/eslint-plugin": "^8.0.0",
42
- "@typescript-eslint/parser": "^8.0.0",
43
- "@vitejs/plugin-react": "^4.3.4",
44
- "ajv": "^8.17.1",
45
- "eslint": "^9.0.0",
46
- "eslint-import-resolver-typescript": "^4.4.5",
47
- "eslint-plugin-import-x": "^4.17.1",
48
- "eslint-plugin-react-hooks": "^7.1.1",
49
- "i18next": "^26.3.6",
50
- "jsonc-parser": "^3.3.1",
51
- "jszip": "^3.10.1",
52
- "react": "^18.3.1",
53
- "react-dom": "^18.3.1",
54
- "react-i18next": "^17.0.10",
55
- "vite": "^6.0.0"
56
- },
57
- "devDependencies": {
58
- "@types/node": "^24.0.0",
59
- "typescript": "^5.9.0"
60
- },
61
- "keywords": [
62
- "linkdesk",
63
- "plugin",
64
- "sdk",
65
- "vite"
66
- ],
67
- "license": "MIT"
68
- }
1
+ {
2
+ "name": "@linkdesk/plugin-sdk",
3
+ "version": "0.1.13",
4
+ "description": "@linkdesk/plugin-sdk——LinkDesk 插件作者 SDK(对标 @types/vscode):window.linkdesk.* 类型 + 一键 build(.linkdesk-plugin) + dev 宿主 + plugin.json 验证 + eslint 门禁(E6#54d)。作者 npm i 后零壳源码依赖。",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./eslint": {
14
+ "types": "./dist/eslint/index.d.ts",
15
+ "default": "./dist/eslint/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "schemas",
22
+ "dev-host"
23
+ ],
24
+ "sideEffects": false,
25
+ "bin": {
26
+ "linkdesk-plugin-sdk": "./dist/bin.js"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "engines": {
32
+ "node": ">=20.0.0"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc -p tsconfig.build.json",
36
+ "typecheck": "tsc -p tsconfig.json --noEmit",
37
+ "prepack": "tsc -p tsconfig.build.json"
38
+ },
39
+ "dependencies": {
40
+ "@linkdesk/contracts": "^0.1.1",
41
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
42
+ "@typescript-eslint/parser": "^8.0.0",
43
+ "@vitejs/plugin-react": "^4.3.4",
44
+ "ajv": "^8.17.1",
45
+ "eslint": "^9.0.0",
46
+ "eslint-import-resolver-typescript": "^4.4.5",
47
+ "eslint-plugin-import-x": "^4.17.1",
48
+ "eslint-plugin-react-hooks": "^7.1.1",
49
+ "i18next": "^26.3.6",
50
+ "jsonc-parser": "^3.3.1",
51
+ "jszip": "^3.10.1",
52
+ "react": "^18.3.1",
53
+ "react-dom": "^18.3.1",
54
+ "react-i18next": "^17.0.10",
55
+ "vite": "^6.0.0"
56
+ },
57
+ "devDependencies": {
58
+ "@types/node": "^24.0.0",
59
+ "typescript": "^5.9.0"
60
+ },
61
+ "keywords": [
62
+ "linkdesk",
63
+ "plugin",
64
+ "sdk",
65
+ "vite"
66
+ ],
67
+ "license": "MIT"
68
+ }
@@ -470,7 +470,7 @@
470
470
  },
471
471
  "titleBar": {
472
472
  "type": "object",
473
- "description": "顶栏按钮声明——对标 VS Code titleBar。声明标题栏左侧/右侧的图标按钮。",
473
+ "description": "顶栏按钮声明——对标 VS Code titleBar。声明标题栏左侧/右侧的按钮:图标按钮(icon)或全文字按钮(label),二者填一个。",
474
474
  "properties": {
475
475
  "left": {
476
476
  "type": "array",
@@ -481,6 +481,7 @@
481
481
  "properties": {
482
482
  "command": { "type": "string", "description": "点击执行的命令 ID" },
483
483
  "icon": { "type": "string", "description": "codicon 图标名(如 codicon-settings)或图片路径" },
484
+ "label": { "type": "string", "description": "按钮文字(E6#57.11)——填了就不渲染 icon。'$键名' = 取该 context key 的值当文字(如 $updateButtonLabel);否则当 i18n key(本仓 i18n key = 中文原文)" },
484
485
  "when": { "type": "string", "description": "context key when 条件——不满足时按钮隐藏" }
485
486
  },
486
487
  "additionalProperties": false
@@ -495,6 +496,7 @@
495
496
  "properties": {
496
497
  "command": { "type": "string", "description": "点击执行的命令 ID" },
497
498
  "icon": { "type": "string", "description": "codicon 图标名(如 codicon-settings)或图片路径" },
499
+ "label": { "type": "string", "description": "按钮文字(E6#57.11)——填了就不渲染 icon。'$键名' = 取该 context key 的值当文字(如 $updateButtonLabel);否则当 i18n key(本仓 i18n key = 中文原文)" },
498
500
  "when": { "type": "string", "description": "context key when 条件——不满足时按钮隐藏" }
499
501
  },
500
502
  "additionalProperties": false