@linkdesk/contracts 0.1.28 → 0.1.29
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 +1 -23
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -251,36 +251,14 @@ export interface ColorwayMeta {
|
|
|
251
251
|
bgWindow: string;
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
/**
|
|
255
|
-
* 配方来源——**这张卡片是谁提供的**(2026-09-30 用户实机立案「Dark/Light 指认不明」)。
|
|
256
|
-
* · `host` = 壳内置兜底配方(`registerFallbackThemes` 注册,无提供方插件;卸载全部主题插件后仍在)
|
|
257
|
-
* · `plugin` = 插件贡献的配方;`name` = 该插件显示名(**壳侧已 `t(manifest.name)` 解析**,池侧哑渲染)
|
|
258
|
-
*
|
|
259
|
-
* 🔴 为什么要有这个字段:配方显示名是**自由文本**,两张来自不同提供方的卡(壳兜底 `dark` / 官方插件
|
|
260
|
-
* 的 `light`)在名字上无从分辨,用户只能猜——而名字恰好是唯一会撞车的东西。归属必须进数据。
|
|
261
|
-
*/
|
|
262
|
-
export type RecipeSource = {
|
|
263
|
-
kind: "host";
|
|
264
|
-
} | {
|
|
265
|
-
kind: "plugin";
|
|
266
|
-
pluginId: string;
|
|
267
|
-
name: string;
|
|
268
|
-
};
|
|
269
254
|
/** 配方元数据——theme.listRecipes() 返回(全部可用配方 + 配色变体 + 预览色,06 §2)。
|
|
270
|
-
* domains = 该配方贡献哪些域(混搭来源过滤依据,10 §2);type =
|
|
255
|
+
* domains = 该配方贡献哪些域(混搭来源过滤依据,10 §2);type = 明暗类别。 */
|
|
271
256
|
export interface RecipeMeta {
|
|
272
257
|
id: string;
|
|
273
258
|
name: string;
|
|
274
259
|
type: "light" | "dark";
|
|
275
260
|
colorways: ColorwayMeta[];
|
|
276
261
|
domains: ThemeDomain[];
|
|
277
|
-
/**
|
|
278
|
-
* 提供方——「这张卡片是谁给的」。
|
|
279
|
-
* 🔴 **壳返回的每一条都带它**(宿主兜底 ⇒ `kind:"host"`);类型上写成可选,只为**不打断既有第三方
|
|
280
|
-
* 夹具/桩**(它们造 `RecipeMeta` 字面量时不该因为壳加了个只读标注就编译不过)——消费方若读到缺省,
|
|
281
|
-
* 应**不标注**(⛔ 不许当成「壳自带」:那会把插件配方错标成宿主兜底,正是本件要治的方向)。
|
|
282
|
-
*/
|
|
283
|
-
source?: RecipeSource;
|
|
284
262
|
}
|
|
285
263
|
export interface LinkDeskLanguage {
|
|
286
264
|
id: string;
|