@bettercms-ai/types 1.21.0 → 1.22.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -771,6 +771,8 @@ interface ContentModelFieldUi {
771
771
  preview?: {
772
772
  /** Child field key whose value titles the row. */
773
773
  title?: string;
774
+ /** Child field key whose value is the row's second line. */
775
+ subtitle?: string;
774
776
  /** Child field key whose value is the row's thumbnail. Type is not constrained. */
775
777
  media?: string;
776
778
  };
@@ -792,6 +794,12 @@ interface ContentModelFieldUi {
792
794
  * from the keyboard.
793
795
  */
794
796
  reorderable?: boolean;
797
+ /**
798
+ * Which editor control a LEAF renders with. ABSENT ≡ the type's default (a dropdown for a
799
+ * `select`, a plain input for a `number`). `segmented` is valid on a single-choice `select`;
800
+ * `slider` on a `number` whose config.min < config.max.
801
+ */
802
+ control?: "segmented" | "slider";
795
803
  }
796
804
  /**
797
805
  * A field inside an array zone — identical to a top-level {@link ContentModelField}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bettercms-ai/types",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",