@linkdesk/contracts 0.1.50 → 0.1.52
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 +7 -0
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -86,6 +86,9 @@ export interface LinkDeskConfigProperty {
|
|
|
86
86
|
* (returns a string; the display wording is assembled on the command side). The value comes from the command, not from config storage — a general capability any plugin can use.
|
|
87
87
|
* Settings row case 2.1: **companion declaration** — coexists with any primary control ⇒ the companion read-only to the right of the primary control (reuses the read-only base's polling). */
|
|
88
88
|
statusCommand?: string;
|
|
89
|
+
/** 2026-11-23: color capability — true = the ColorPicker may edit alpha and emit rgba (glass tints);
|
|
90
|
+
* false/omitted = opaque only, emits hex (accents etc.). Only meaningful for renderHint "color". */
|
|
91
|
+
allowAlpha?: boolean;
|
|
89
92
|
/** disable condition for renderHint "action" buttons — disabled when all {key,value} pairs match the current config values */
|
|
90
93
|
actionDisabledAll?: Array<{
|
|
91
94
|
key: string;
|
|
@@ -266,6 +269,8 @@ export interface ColorwayMeta {
|
|
|
266
269
|
accent: string;
|
|
267
270
|
bgWindow: string;
|
|
268
271
|
};
|
|
272
|
+
/** 派生极性(2026-11-24)——该配色生效 token 算出的 light/dark;跨明暗标签读它,不读配方声明 */
|
|
273
|
+
polarity: "light" | "dark";
|
|
269
274
|
}
|
|
270
275
|
/** recipe metadata — returned by theme.listRecipes() (all available recipes + colorways + preview colors, spec 06 §2).
|
|
271
276
|
* domains = which domains the recipe contributes (basis for mash-up source filtering, spec 10 §2); type = light/dark category. */
|
|
@@ -273,6 +278,8 @@ export interface RecipeMeta {
|
|
|
273
278
|
id: string;
|
|
274
279
|
name: string;
|
|
275
280
|
type: "light" | "dark";
|
|
281
|
+
/** 派生极性(首配色)——`type` 为作者 hint;UI 分组/标签一律读它 */
|
|
282
|
+
polarity: "light" | "dark";
|
|
276
283
|
colorways: ColorwayMeta[];
|
|
277
284
|
domains: ThemeDomain[];
|
|
278
285
|
}
|