@linkdesk/contracts 0.1.44 → 0.1.45
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/linkdesk.d.ts +9 -4
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export type LinkDeskConfigurationContribution = [
|
|
|
106
106
|
string,
|
|
107
107
|
{
|
|
108
108
|
title: string;
|
|
109
|
+
/** 04 内置配置组图标(2026-11-18): group icon = **IconRegistry shared-icon name** (host defaults `app.group-*`; third-party plugins may reference their own contributes.icons name). Optional; absent = nav row renders text only. */
|
|
110
|
+
icon?: string;
|
|
109
111
|
/** (P-3 decision A): one-line subtitle under the section's main title (optional; undeclared = not rendered, zero intrusion) */
|
|
110
112
|
subtitle?: string;
|
|
111
113
|
/** (P-3 decision A): one-line small text under each group heading — key = the group's original text (optional, zero intrusion) */
|
|
@@ -894,7 +896,7 @@ export interface CreatableViewMeta {
|
|
|
894
896
|
pluginId: string;
|
|
895
897
|
label: string;
|
|
896
898
|
icon?: string;
|
|
897
|
-
iconSource?: "codicon" | "svg" | "url" | "lucide"; // union identical to plugin.schema.json iconSource (contract generation source)
|
|
899
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared"; // union identical to plugin.schema.json iconSource (contract generation source)
|
|
898
900
|
}
|
|
899
901
|
/** Bottom panel view metadata — serialized from the panel view registry */
|
|
900
902
|
export interface PanelViewMeta {
|
|
@@ -2113,7 +2115,9 @@ export interface PluginManifest {
|
|
|
2113
2115
|
name: string;
|
|
2114
2116
|
version: string;
|
|
2115
2117
|
icon?: string;
|
|
2116
|
-
|
|
2118
|
+
/** 🔴 "shared"(04 内置配置组图标 2026-11-18):按名引用 IconRegistry 共享图标(contributes.icons
|
|
2119
|
+
* 登记面或宿主默认项)——渲染需调用方注入 sharedIcons 快照(PluginIcon 同名 prop)。 */
|
|
2120
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
2117
2121
|
/** Marketplace display art (cover art, archive 14's dual-icon model ) — relative path of an svg asset, may be drawn elaborately and complex
|
|
2118
2122
|
* (semantically separate from icon's "monochrome small UI icon": the shell's icon bar/tab bar read only icon). Omitted → the marketplace falls back to icon.
|
|
2119
2123
|
* Convention: value = a relative path into package resources (e.g. "resources/cover.svg"); iconSource omitted → inferred as a linkdesk:// path. */
|
|
@@ -2344,7 +2348,8 @@ export interface PluginInfoEntry {
|
|
|
2344
2348
|
updatable?: boolean;
|
|
2345
2349
|
/** small UI icon (Type-1 silhouette for icon-bar plugins / Type-2 identity art for the rest) */
|
|
2346
2350
|
icon?: string;
|
|
2347
|
-
|
|
2351
|
+
/** 🔴 "shared"(04 内置配置组图标 2026-11-18):按名引用 IconRegistry 共享图标——渲染需注入 sharedIcons 快照 */
|
|
2352
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
2348
2353
|
/** plugin identity color art (Type-2) — first candidate for row/detail display positions */
|
|
2349
2354
|
marketIcon?: string;
|
|
2350
2355
|
marketIconSource?: "codicon" | "svg" | "url" | "lucide";
|
|
@@ -3155,7 +3160,7 @@ export interface OpenWithHandler {
|
|
|
3155
3160
|
/** Icon manifest subset — produced by the shell with the shared helper `pickIdentityArt()` (same source as the settings page/tab bar) */
|
|
3156
3161
|
manifest?: {
|
|
3157
3162
|
icon?: string;
|
|
3158
|
-
iconSource?: "codicon" | "svg" | "url" | "lucide";
|
|
3163
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
3159
3164
|
};
|
|
3160
3165
|
/** Whether this handler is the current default */
|
|
3161
3166
|
isDefault: boolean;
|