@cosmicdrift/kumiko-types 0.182.0 → 0.182.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/nav.ts +9 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.182.0",
3
+ "version": "0.182.1",
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/nav.ts CHANGED
@@ -102,13 +102,15 @@ export type ContentCollectionDefinition = {
102
102
  // rendering want HTML either way. "markdown" stores markdown text, not
103
103
  // HTML. Defaults to "plain" (textarea).
104
104
  readonly contentFormat?: "plain" | "rich" | "markdown";
105
- // Fixed variable names the collection's editor offers as insertable chips
106
- // (e.g. `{ customerName: {}, orderId: {} }` for an ai-prompt collection).
107
- // Declared once per collection, not per entry a collection-set write
108
- // always persists an entry's own `variableSchema` as `{}` (collections
109
- // never let a user redefine the variable set), so this is the only place
110
- // the client can learn which variables exist.
111
- readonly variableSchema?: Record<string, unknown>;
105
+ // Fixed variable names the collection's editor offers as insertable chips,
106
+ // mapped to an example value the Preview substitutes in for `{{name}}`
107
+ // (e.g. `{ customerName: "Max Mustermann", orderId: "A-1042" }` for an
108
+ // ai-prompt collection). Declared once per collection, not per entry — a
109
+ // collection-set write always persists an entry's own `variableSchema` as
110
+ // `{}` (collections never let a user redefine the variable set), so this
111
+ // is the only place the client can learn which variables exist and what
112
+ // their preview values are.
113
+ readonly variableSchema?: Readonly<Record<string, string>>;
112
114
  readonly nav: {
113
115
  readonly label: string;
114
116
  readonly icon?: string;