@cosmicdrift/kumiko-headless 0.226.0 → 0.228.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-headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.228.0",
|
|
4
4
|
"description": "Headless UI logic for Kumiko — Dispatcher contract, Form-Controller, View-Model, Nav-Resolver. Plattform- und React-frei; jeder Renderer (renderer, renderer-web, renderer-native, …) komponiert darauf.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
39
|
+
"@cosmicdrift/kumiko-framework": "0.228.0",
|
|
40
40
|
"temporal-polyfill": "^0.3.2",
|
|
41
41
|
"zod": "^4.4.3"
|
|
42
42
|
},
|
package/src/view-model/edit.ts
CHANGED
|
@@ -73,6 +73,7 @@ export function computeEditViewModel<
|
|
|
73
73
|
title: translate(sectionSpec.title),
|
|
74
74
|
component: sectionSpec.component,
|
|
75
75
|
contributesToFormSubmit: sectionSpec.contributesToFormSubmit === true,
|
|
76
|
+
...(sectionSpec.entityName !== undefined && { entityName: sectionSpec.entityName }),
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
if (!isFieldsEditSection(sectionSpec)) {
|
package/src/view-model/types.ts
CHANGED
|
@@ -264,6 +264,8 @@ export type EditExtensionSectionViewModel = {
|
|
|
264
264
|
readonly title: string;
|
|
265
265
|
readonly component: PlatformComponent;
|
|
266
266
|
readonly contributesToFormSubmit: boolean;
|
|
267
|
+
/** Section-declared override — see `EditExtensionSection.entityName`. */
|
|
268
|
+
readonly entityName?: string;
|
|
267
269
|
};
|
|
268
270
|
|
|
269
271
|
// Mirrors EditRelatedListSection verbatim — no per-row/query resolution
|