@linkdesk/plugin-sdk 0.1.66 → 0.1.67
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/plugin-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "@linkdesk/plugin-sdk——LinkDesk 插件作者 SDK(对标 @types/vscode):window.linkdesk.* 类型 + 一键 build(.linkdesk-plugin) + dev 宿主 + plugin.json 验证 + eslint 门禁(E6#54d)。作者 npm i 后零壳源码依赖。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -778,6 +778,7 @@
|
|
|
778
778
|
"ldk-group-tab-plus-btn",
|
|
779
779
|
"ldk-group-tab-plus-menu",
|
|
780
780
|
"ldk-group-tab-plus-menu-item",
|
|
781
|
+
"ldk-group-tab-plus-menu-sep",
|
|
781
782
|
"ldk-group-tab-scroll-arrow",
|
|
782
783
|
"ldk-hamburger-btn",
|
|
783
784
|
"ldk-hint-card",
|
|
@@ -1067,6 +1068,11 @@
|
|
|
1067
1068
|
"ldk-titlebar-menu-btn",
|
|
1068
1069
|
"ldk-titlebar-menus",
|
|
1069
1070
|
"ldk-titlebar-slot-btn",
|
|
1071
|
+
"ldk-toast",
|
|
1072
|
+
"ldk-toast--leaving",
|
|
1073
|
+
"ldk-toast-host",
|
|
1074
|
+
"ldk-toast-icon",
|
|
1075
|
+
"ldk-toast-msg",
|
|
1070
1076
|
"ldk-toggle",
|
|
1071
1077
|
"ldk-view-skeleton",
|
|
1072
1078
|
"ldk-view-skeleton-card",
|
|
@@ -1090,10 +1096,16 @@
|
|
|
1090
1096
|
"ldk-welcome-hero",
|
|
1091
1097
|
"ldk-welcome-logo-bg",
|
|
1092
1098
|
"ldk-welcome-page",
|
|
1099
|
+
"ldk-welcome-recent-badge",
|
|
1093
1100
|
"ldk-welcome-recent-icon",
|
|
1094
1101
|
"ldk-welcome-recent-item",
|
|
1102
|
+
"ldk-welcome-recent-item--missing",
|
|
1095
1103
|
"ldk-welcome-recent-label",
|
|
1096
1104
|
"ldk-welcome-recent-list",
|
|
1105
|
+
"ldk-welcome-recent-remove",
|
|
1106
|
+
"ldk-welcome-recent-skeleton",
|
|
1107
|
+
"ldk-welcome-recent-subtitle",
|
|
1108
|
+
"ldk-welcome-recent-unavailable",
|
|
1097
1109
|
"ldk-welcome-recent-workspace",
|
|
1098
1110
|
"ldk-welcome-scroll",
|
|
1099
1111
|
"ldk-welcome-section",
|
|
@@ -1156,7 +1168,10 @@
|
|
|
1156
1168
|
"ldk-notif-progress-scan",
|
|
1157
1169
|
"ldk-rn-spin",
|
|
1158
1170
|
"ldk-selectbox-in",
|
|
1159
|
-
"ldk-
|
|
1171
|
+
"ldk-toast-in",
|
|
1172
|
+
"ldk-toast-out",
|
|
1173
|
+
"ldk-view-skeleton-breath",
|
|
1174
|
+
"ldk-welcome-skeleton-breath"
|
|
1160
1175
|
],
|
|
1161
|
-
"reservedKeyframeCount":
|
|
1176
|
+
"reservedKeyframeCount": 12
|
|
1162
1177
|
}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"iconBar": { "type": "string", "enum": ["top", "bottom"], "description": "Icon Bar position; omitted = no icon shown" },
|
|
41
41
|
"sidePanel": { "type": "boolean", "description": "Has a Sidebar view container. Default false." },
|
|
42
42
|
"tabBar": { "type": "boolean", "description": "Can be opened as a tab. Default false." },
|
|
43
|
+
"standaloneOpenable": { "type": "boolean", "default": false, "description": "Has a standalone surface worth opening on its own — declaring true is what admits the plugin to the Welcome page's Start card and the [+] create menu (both render the same filtered list). ⚠️ This gates those two menus ONLY: absent or false hides the plugin from them, but it does not make the plugin unopenable — commands, recents, session restore, and a floating panel's open-in action all still key off appearsIn.tabBar. Declare it when the plugin has content of its own to show; leave it off for plugins whose tab form is a per-resource editor (opening one with no resource has nothing to display). Default false." },
|
|
43
44
|
"statusBar": { "type": "string", "description": "File path of a self-drawn (code) Status Bar component, relative to the plugin root, .tsx, e.g. \"src/components/statusBar.tsx\" — the pool renders it from the declared URL, replacing static statusBar contributions; omit it when you only contribute static entries." }
|
|
44
45
|
}
|
|
45
46
|
},
|
|
@@ -1,42 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "宿主保留的 CSS 全局名——单一真相源(硬约束 23 / E6#109)。插件**不得给自有元素裸定义**这些名字(裸定义 = 选择器主体就是这个类名本身、无祖先,如 `.badge { }`);scoped 调优(如 `.control-bar .combobox { }`)是合法消费,不在本表管辖。消费方:① 壳仓门禁 `scripts/check-css-namespace.mjs`(读本文件 + 反向核对实况)② `@linkdesk/plugin-sdk` 的 check-css-namespace 腿(随包下发,插件仓 CI 用)。改本表 = 一次公共面决策:新增前先问「这是公共面还是漏网的借用」并写明 why。⚠️ E6#109l-b:`classes` 整块已删——宿主与共享组件的类名规则都是**结构性的**(「自己定义的类名一律 `ldk-` 开头」),都不再查任何登记表;本表只剩 `keyframes` 段(关键帧名同样是全局的,且它仍是作者面 §12 那张关键帧表的对账真相源)。",
|
|
3
|
-
"version": 2,
|
|
4
|
-
"keyframes": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ldk-selectbox-in",
|
|
7
|
-
"why": "共享组件 SelectBox 下拉入场动画"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "ldk-drop-zone-in",
|
|
11
|
-
"why": "宿主拖放区入场动画"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "ldk-dropdown-card-in",
|
|
15
|
-
"why": "宿主下拉卡片入场动画"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "ldk-floating-panel-in",
|
|
19
|
-
"why": "宿主浮动面板入场动画"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "ldk-notif-icon-spin",
|
|
23
|
-
"why": "宿主通知图标旋转"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "ldk-notif-progress-scan",
|
|
27
|
-
"why": "宿主通知进度扫描"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "ldk-rn-spin",
|
|
31
|
-
"why": "宿主发行说明页刷新图标旋转(04「发行说明刷新按钮」)"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "ldk-boot-mark-breath",
|
|
35
|
-
"why": "宿主池首帧品牌过场呼吸(04「启动过场」④B)"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "ldk-view-skeleton-breath",
|
|
39
|
-
"why": "宿主内容加载骨架呼吸(04「启动过场」④C)"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
{
|
|
2
|
+
"$comment": "宿主保留的 CSS 全局名——单一真相源(硬约束 23 / E6#109)。插件**不得给自有元素裸定义**这些名字(裸定义 = 选择器主体就是这个类名本身、无祖先,如 `.badge { }`);scoped 调优(如 `.control-bar .combobox { }`)是合法消费,不在本表管辖。消费方:① 壳仓门禁 `scripts/check-css-namespace.mjs`(读本文件 + 反向核对实况)② `@linkdesk/plugin-sdk` 的 check-css-namespace 腿(随包下发,插件仓 CI 用)。改本表 = 一次公共面决策:新增前先问「这是公共面还是漏网的借用」并写明 why。⚠️ E6#109l-b:`classes` 整块已删——宿主与共享组件的类名规则都是**结构性的**(「自己定义的类名一律 `ldk-` 开头」),都不再查任何登记表;本表只剩 `keyframes` 段(关键帧名同样是全局的,且它仍是作者面 §12 那张关键帧表的对账真相源)。",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"keyframes": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ldk-selectbox-in",
|
|
7
|
+
"why": "共享组件 SelectBox 下拉入场动画"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "ldk-drop-zone-in",
|
|
11
|
+
"why": "宿主拖放区入场动画"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "ldk-dropdown-card-in",
|
|
15
|
+
"why": "宿主下拉卡片入场动画"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "ldk-floating-panel-in",
|
|
19
|
+
"why": "宿主浮动面板入场动画"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "ldk-notif-icon-spin",
|
|
23
|
+
"why": "宿主通知图标旋转"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "ldk-notif-progress-scan",
|
|
27
|
+
"why": "宿主通知进度扫描"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "ldk-rn-spin",
|
|
31
|
+
"why": "宿主发行说明页刷新图标旋转(04「发行说明刷新按钮」)"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "ldk-boot-mark-breath",
|
|
35
|
+
"why": "宿主池首帧品牌过场呼吸(04「启动过场」④B)"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "ldk-view-skeleton-breath",
|
|
39
|
+
"why": "宿主内容加载骨架呼吸(04「启动过场」④C)"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "ldk-toast-in",
|
|
43
|
+
"why": "宿主池轻提示卡入场动画"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "ldk-toast-out",
|
|
47
|
+
"why": "宿主池轻提示卡退场动画"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "ldk-welcome-skeleton-breath",
|
|
51
|
+
"why": "宿主欢迎页最近列表加载骨架呼吸(04「启动过场」④C 同语言)"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|