@bettercms-ai/types 1.46.0 → 1.48.0
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/index.d.ts +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -364,8 +364,12 @@ type ContentModelFieldPlacement = "cover" | "title" | "excerpt" | "body" | "inli
|
|
|
364
364
|
*/
|
|
365
365
|
interface ShowIfRule {
|
|
366
366
|
field: string;
|
|
367
|
-
/**
|
|
368
|
-
|
|
367
|
+
/**
|
|
368
|
+
* `notEmpty` ≡ `isSet`; `empty` passes while the source holds nothing. Neither reads `value`.
|
|
369
|
+
* `notIn` is `in` negated. `gt` / `lt` compare numbers: `value` is one number as a string, and a
|
|
370
|
+
* source that holds no number fails the rule.
|
|
371
|
+
*/
|
|
372
|
+
op: "eq" | "neq" | "in" | "notIn" | "gt" | "lt" | "isSet" | "notEmpty" | "empty";
|
|
369
373
|
value?: string | string[];
|
|
370
374
|
}
|
|
371
375
|
interface ShowIf {
|
|
@@ -2323,6 +2327,16 @@ interface ComponentPropDef {
|
|
|
2323
2327
|
name: string;
|
|
2324
2328
|
label?: string;
|
|
2325
2329
|
fields: ComponentSubField[];
|
|
2330
|
+
/** How a row of this type reads collapsed: title/subtitle/media name THIS type's fields (dotted ok, e.g. `table.caption`). */
|
|
2331
|
+
preview?: {
|
|
2332
|
+
title?: string;
|
|
2333
|
+
subtitle?: string;
|
|
2334
|
+
media?: string;
|
|
2335
|
+
fallback?: string;
|
|
2336
|
+
icon?: DockIconName;
|
|
2337
|
+
};
|
|
2338
|
+
/** The row icon for this type, a dock icon name. */
|
|
2339
|
+
icon?: DockIconName;
|
|
2326
2340
|
}>;
|
|
2327
2341
|
/**
|
|
2328
2342
|
* `select` / `multiselect` — the choices. Required, and a default must be one of them. `{ label, value }`
|
|
@@ -2550,6 +2564,8 @@ interface Component {
|
|
|
2550
2564
|
props: ComponentPropDef[];
|
|
2551
2565
|
/** How an instance reads as a row in a parent's slot list. Null/absent = unset. @see ComponentPreview */
|
|
2552
2566
|
preview?: ComponentPreview | null;
|
|
2567
|
+
/** The block icon (a /kit schema's document-level `icon`): root crumb, slot rows, slot child frames. Null/absent = unset. */
|
|
2568
|
+
icon?: DockIconName | null;
|
|
2553
2569
|
status: ComponentStatus;
|
|
2554
2570
|
/** When it left the working set, or null/absent while active. @see ComponentStatus */
|
|
2555
2571
|
archivedAt?: string | Date | null;
|