@cosmicdrift/kumiko-renderer 0.191.0 → 0.192.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.192.0",
|
|
4
4
|
"description": "Platform-agnostic React renderer for Kumiko screens. Contains the shared logic — primitives-contract, hooks, KumikoScreen, navigation & SSE abstractions — that any platform-specific renderer (web, native) composes. No DOM, no EventSource, no react-dom.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
19
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
18
|
+
"@cosmicdrift/kumiko-framework": "0.192.0",
|
|
19
|
+
"@cosmicdrift/kumiko-headless": "0.192.0",
|
|
20
20
|
"react": "^19.2.6",
|
|
21
21
|
"temporal-polyfill": "^0.3.2",
|
|
22
22
|
"zod": "^4.4.3"
|
|
@@ -462,6 +462,7 @@ function renderInput({
|
|
|
462
462
|
{...(field.maxSize !== undefined && { maxSize: field.maxSize })}
|
|
463
463
|
{...(field.entityType !== undefined && { entityType: field.entityType })}
|
|
464
464
|
{...(field.fieldName !== undefined && { fieldName: field.fieldName })}
|
|
465
|
+
{...(field.imageVariant !== undefined && { imageVariant: field.imageVariant })}
|
|
465
466
|
/>
|
|
466
467
|
);
|
|
467
468
|
}
|
package/src/primitives.tsx
CHANGED
|
@@ -264,6 +264,9 @@ export type InputProps =
|
|
|
264
264
|
* gegen die Field-Def von (entityType, fieldName). */
|
|
265
265
|
readonly entityType?: string;
|
|
266
266
|
readonly fieldName?: string;
|
|
267
|
+
/** Only for kind:"image" — variant name for the preview
|
|
268
|
+
* (`/api/files/:id/variant/:name`). Absent → the original. */
|
|
269
|
+
readonly imageVariant?: string;
|
|
267
270
|
}
|
|
268
271
|
| {
|
|
269
272
|
readonly kind: "date";
|