@linkdesk/contracts 0.1.51 → 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.
Files changed (2) hide show
  1. package/linkdesk.d.ts +4 -0
  2. package/package.json +1 -1
package/linkdesk.d.ts CHANGED
@@ -269,6 +269,8 @@ export interface ColorwayMeta {
269
269
  accent: string;
270
270
  bgWindow: string;
271
271
  };
272
+ /** 派生极性(2026-11-24)——该配色生效 token 算出的 light/dark;跨明暗标签读它,不读配方声明 */
273
+ polarity: "light" | "dark";
272
274
  }
273
275
  /** recipe metadata — returned by theme.listRecipes() (all available recipes + colorways + preview colors, spec 06 §2).
274
276
  * domains = which domains the recipe contributes (basis for mash-up source filtering, spec 10 §2); type = light/dark category. */
@@ -276,6 +278,8 @@ export interface RecipeMeta {
276
278
  id: string;
277
279
  name: string;
278
280
  type: "light" | "dark";
281
+ /** 派生极性(首配色)——`type` 为作者 hint;UI 分组/标签一律读它 */
282
+ polarity: "light" | "dark";
279
283
  colorways: ColorwayMeta[];
280
284
  domains: ThemeDomain[];
281
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",