@cosmicdrift/kumiko-types 0.181.0 → 0.182.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/package.json +1 -1
- package/src/nav.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.182.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/nav.ts
CHANGED
|
@@ -97,6 +97,18 @@ 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
|
+
// (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>;
|
|
100
112
|
readonly nav: {
|
|
101
113
|
readonly label: string;
|
|
102
114
|
readonly icon?: string;
|