@linkdesk/contracts 0.1.48 → 0.1.50

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.
Files changed (2) hide show
  1. package/linkdesk.d.ts +13 -2
  2. package/package.json +1 -1
package/linkdesk.d.ts CHANGED
@@ -208,9 +208,14 @@ export interface ThemeSurface {
208
208
  saturate?: number;
209
209
  /** Color layered over the glass surface */
210
210
  tint?: string;
211
- /** Glass surface opacity (the compositing-layer baseline)—1 = opaque / 0 = fully see-through to the background. Writes the --glass-opacity token (consumed by the tint overlay's
212
- * opacity) + seeds a back-computed compositing alpha ( the recipe's surface baseline; takes priority when the user's app.glassOpacity overrides) */
211
+ /** Glass surface opacity (the compositing-layer baseline)—1 = opaque / 0 = fully see-through to the background.
212
+ * Written to --glass-opacity and used by the engine as the surface alpha in follow-theme mode; a user-written
213
+ * app.glassOpacity overrides it in custom mode. Surface colors are treated as opaque base colors (their own
214
+ * alpha is ignored once glass is declared); themes without glass keep their per-surface alpha as authored. */
213
215
  opacity?: number;
216
+ /** Tint overlay opacity (the glass tint layer)—defaults to `opacity`. Decouple the tint thickness from the
217
+ * surface alpha: e.g. surface 0.55 + tintOpacity 0.275 keeps a strong glass but a light tint. */
218
+ tintOpacity?: number;
214
219
  /** Liquid-glass top highlight intensity—0 = off */
215
220
  specular?: number;
216
221
  /** top highlight base color (the hairline-light edge color)—omitted = white; alpha still goes through specular */
@@ -1433,6 +1438,12 @@ export interface DialogOpenOptions {
1433
1438
  name: string;
1434
1439
  extensions: string[];
1435
1440
  }[];
1441
+ /**
1442
+ * 2026-11-23:初始目录的**已知文件夹令牌**(⚠️ 不接受插件给绝对路径)。
1443
+ * `"appearance"` = userData/appearance(受控外观图缓存,背景图选择用)——主进程解析并建目录。
1444
+ * 旧壳忽略本字段(无初始目录),插件可安全传入。
1445
+ */
1446
+ defaultPathKind?: "appearance";
1436
1447
  }
1437
1448
  /** rich-content confirm dialog open params—pool plugin → shell DialogService (addressed by content view declaration).
1438
1449
  * title/message are fallbacks—when the content view fails to resolve, the shell falls back to a plain-text confirm (the dialog still shows; it does not silently die). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",