@cosmicdrift/kumiko-types 0.243.4 → 0.245.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/package.json +1 -1
  2. package/src/fields.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.243.4",
3
+ "version": "0.245.0",
4
4
  "description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
package/src/fields.ts CHANGED
@@ -316,6 +316,12 @@ export type SelectFieldDef<TOptions extends readonly string[] = readonly string[
316
316
  readonly sensitive?: boolean;
317
317
  readonly default?: TOptions[number];
318
318
  readonly access?: FieldAccess;
319
+ /** Renderer metadata: `"radio"` always renders the option set as a visible
320
+ * radio group, `"dropdown"` always renders the combobox. Omitted = the
321
+ * renderer's own heuristic picks (radio group for a few short labels,
322
+ * dropdown otherwise). A `"radio"` group with many or long labels wraps —
323
+ * the author owns that trade-off, the renderer does not override it. */
324
+ readonly display?: "radio" | "dropdown";
319
325
  } & ResolvedPiiFlags;
320
326
 
321
327
  // Mehrere Werte aus einer festen Options-Liste — UI rendert als