@tbox.cn/app-contracts 0.12.0 → 0.12.1
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/dist/cards.d.ts +8 -0
- package/package.json +1 -1
package/dist/cards.d.ts
CHANGED
|
@@ -38,6 +38,14 @@ export interface CardMeta<TSchema extends ZodTypeAny = ZodTypeAny> {
|
|
|
38
38
|
samples?: CardSample<zInfer<TSchema>>[];
|
|
39
39
|
/** 卡片数据契约版本(一期启用;缺省视为 1) */
|
|
40
40
|
schemaVersion?: number;
|
|
41
|
+
/**
|
|
42
|
+
* 不出卡标记(additive,缺席合法):当前不在任何出卡链路(工具暂停/下线、流水改文本事实等)。
|
|
43
|
+
* - 仅影响 dev 卡片预览目录(/_tbox/api/cards 默认过滤,?includeHidden=true 可见并携带徽标);
|
|
44
|
+
* - 注册态完整(dataSchema/动作/渲染器照常)——非 CardRegistry.disable(provider 能力边界,
|
|
45
|
+
* 物理不注册、破坏 doctor 一致性);与 CardAction.hidden(动作不进按钮条)语义无关;
|
|
46
|
+
* - 标记原因须写明类型:暂停型(工具恢复时移除标记)或永久型(注明决策出处)。
|
|
47
|
+
*/
|
|
48
|
+
hidden?: boolean;
|
|
41
49
|
/** 历史快照 schema 迁移:oldData → 新版本数据(001 §7.4) */
|
|
42
50
|
migrate?: (oldData: unknown, oldVersion: number) => Record<string, unknown>;
|
|
43
51
|
/**
|