@cosmicdrift/kumiko-types 0.181.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 +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.181.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
@@ -97,6 +97,20 @@ export type ContentCollectionDefinition = {
97
97
  // snippets an admin curates). "user": every user keeps their own (mail
98
98
  // signatures). Defaults to "tenant".
99
99
  readonly ownership?: "tenant" | "user";
100
+ // Which editor the client renders for this collection's entries — not how
101
+ // the content is stored. "rich" still stores HTML, because mail and PDF
102
+ // rendering want HTML either way. "markdown" stores markdown text, not
103
+ // HTML. Defaults to "plain" (textarea).
104
+ readonly contentFormat?: "plain" | "rich" | "markdown";
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>>;
100
114
  readonly nav: {
101
115
  readonly label: string;
102
116
  readonly icon?: string;