@linkdesk/contracts 0.1.47 → 0.1.49

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 +7 -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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",