@linkdesk/plugin-sdk 0.1.65 → 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.
@@ -38,10 +38,12 @@
38
38
  * · 主题数据文件自己的 `name` / `colorways[].name`(配方名 / 配色下拉名)。
39
39
  * 两处都得进判域——否则双语字面量在数据文件里照样溜过去(旧判据正是漏在这:本表原先把
40
40
  * `themes[].label` 列为豁免,主题数据文件**从不读**)。
41
- * ⛔ **图标主题不进本判域**(`contributes.iconThemes[].label` + 图标数据文件):图标主题的显示面还没
42
- * 打通——`app.iconTheme` 下拉当前列的是**原始 id**(`updateConfigurationEnum` 只写 enum、没有
43
- * `enumDescriptions`),`RegisteredIconTheme.label` **零消费方**,即那条标签今天用户看不到、看到的是 id。
44
- * 判一条**没人渲染**的串 = 给作者派假活。显示面打通时**同笔**把 `iconThemes[].label` 纳入本表。
41
+ * ✅ **图标主题已进本判域**(2026-10-01 接线,`contributes.iconThemes[].label`):此前显示面没打通
42
+ * (`app.iconTheme` 下拉列的是**原始 id**——`updateConfigurationEnum` 只写 enum 没有 `enumDescriptions`,
43
+ * `RegisteredIconTheme.label` 零消费方),判它 = 给作者派假活。现在壳侧把 label 当**枚举显示名**推给
44
+ * 设置页(`IconRegistry.iconThemeEnumOptions` → `syncIconThemeEnum` → 设置页 `t(enumDescriptions[i])`),
45
+ * 那条 label 就是用户在下拉里看到的字——按原计划**同笔纳入本表**(本文件上方那条撤销条件已兑现)。
46
+ * ⛔ 图标**数据文件**仍不进判域:那里是 mappings(class/imagePath),没有显示名字段。
45
47
  *
46
48
  * ═══ 消费方(两轴同一份实现,⛔ 不许各写一份)═══
47
49
  * · 作者侧:`create-linkdesk-plugin` 模板的 `scripts/ci-verify.mjs` ③ 段——插件仓 CI 判红
@@ -80,7 +82,6 @@ const CJK_RE = /[\u4e00-\u9fff]/;
80
82
  * / `params[].description`——2026-09-28 裁决:消费方 = 契约 → AI,零渲染消费方)塞进来;
81
83
  * 撤销条件 = 那些说明一旦进 UI。
82
84
  * ⛔ 故意**不在表内**的专名/元数据(各有理由,与壳侧旧名单同一口径):
83
- * `contributes.iconThemes[].label`(显示面未打通,见上「为什么判到主题数据文件里」末段)、
84
85
  * `languages[].label` / `langDefs[].aliases`(语言自称/`English`/`English (US)` 这种自称形式)、
85
86
  * `icons.*.description`(作者面元数据,消费方是**别的作者**不是用户)、以及一切路径/ID/上下文键
86
87
  * (`entry` / `icon` / `render` / `path` / `sidebar` / `when` / `key` / 菜单 `group` 槽位 / `cssVars` /
@@ -135,6 +136,11 @@ export const RENDERABLE_MANIFEST_FIELDS = [
135
136
  field: "label",
136
137
  consumer: "主题配方名(主题数据文件缺 name 时的兜底显示名——主题卡片 / 设置页「主题」项)",
137
138
  },
139
+ {
140
+ steps: ["contributes", "iconThemes", "[]"],
141
+ field: "label",
142
+ consumer: "图标主题显示名(设置页 app.iconTheme 下拉——壳把 label 当 enumDescriptions 推,设置页 t() 解析)",
143
+ },
138
144
  ];
139
145
 
140
146
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/plugin-sdk",
3
- "version": "0.1.65",
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-view-skeleton-breath"
1171
+ "ldk-toast-in",
1172
+ "ldk-toast-out",
1173
+ "ldk-view-skeleton-breath",
1174
+ "ldk-welcome-skeleton-breath"
1160
1175
  ],
1161
- "reservedKeyframeCount": 9
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
+ }