@cosmicdrift/kumiko-renderer 0.218.0 → 0.220.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.218.0",
3
+ "version": "0.220.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.218.0",
19
- "@cosmicdrift/kumiko-headless": "0.218.0",
18
+ "@cosmicdrift/kumiko-framework": "0.220.0",
19
+ "@cosmicdrift/kumiko-headless": "0.220.0",
20
20
  "react": "^19.2.6",
21
21
  "temporal-polyfill": "^0.3.2",
22
22
  "zod": "^4.4.3"
@@ -25,7 +25,7 @@
25
25
  "@testing-library/react": "^16.3.2",
26
26
  "@types/react": "^19.2.14",
27
27
  "jsdom": "^29.1.1",
28
- "@cosmicdrift/kumiko-locale-de": "0.218.0"
28
+ "@cosmicdrift/kumiko-locale-de": "0.220.0"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -2202,7 +2202,11 @@ function ActionFormBody({
2202
2202
  // Author entscheidet bewusst ob "stay on form" (default) oder
2203
2203
  // "back to list" (typisch bei Create-style Aktionen).
2204
2204
  if (screen.redirect !== undefined) {
2205
- nav.navigate({ screenId: lastSegment(screen.redirect) });
2205
+ const entityId = extractCreatedId(result.data);
2206
+ nav.navigate({
2207
+ screenId: lastSegment(screen.redirect),
2208
+ ...(entityId !== undefined && { entityId }),
2209
+ });
2206
2210
  }
2207
2211
  },
2208
2212
  [nav, screen.redirect, onSuccess],
@@ -699,9 +699,9 @@ export type FormProps = {
699
699
  readonly subtitle?: ReactNode;
700
700
  readonly actions?: ReactNode;
701
701
  readonly testId?: string;
702
- /** Max width of the form container. Default "3xl" — see FormWidth
703
- * (`packages/types/src/screen.ts`, EditLayout.width, #1676). Native
704
- * impls may ignore this prop (no width constraint there). */
702
+ /** Max width of the form container. Default "full" — see FormWidth
703
+ * (`packages/types/src/screen.ts`, EditLayout.width). Native impls may
704
+ * ignore this prop (no width constraint there). */
705
705
  readonly width?: FormWidth;
706
706
  /** Pins `actions` to the viewport bottom on narrow screens (`<640px`)
707
707
  * instead of normal document flow, so it stays reachable when a virtual