@cosmicdrift/kumiko-types 0.261.0 → 0.263.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/screen.ts +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.261.0",
3
+ "version": "0.263.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/screen.ts CHANGED
@@ -995,6 +995,10 @@ export type EntityEditScreenDefinition = {
995
995
  readonly detailFor?: string;
996
996
  readonly description?: string;
997
997
  readonly agent?: AgentHandlerHints;
998
+ /** Derived by buildAppSchema from the navigate `params` targeting this
999
+ * screen — the only URL query keys the create form prefills. An authored
1000
+ * value is overwritten. */
1001
+ readonly urlPrefillFields?: readonly string[];
998
1002
  readonly entity: string;
999
1003
  readonly layout: EditLayout;
1000
1004
  /** Optionaler i18n-Key (oder Roh-String) für den Submit-Button. Default
@@ -1035,7 +1039,9 @@ export type EntityEditScreenDefinition = {
1035
1039
  * The object form additionally names the success-payload field the
1036
1040
  * navigation id comes from (`ActionFormRedirect.idFrom`) — needed when
1037
1041
  * the edited record is a child and the target screen is the parent's
1038
- * detail screen. */
1042
+ * detail screen. Update falls back to the loaded record when the
1043
+ * success payload doesn't carry that field flatly; create falls back
1044
+ * to the submitted form values. */
1039
1045
  readonly redirect?: string | ActionFormRedirect;
1040
1046
  /** Parent list screen (short id) for breadcrumb + nav highlighting when
1041
1047
  * this screen has no nav entry of its own. Same field/semantics as on
@@ -1086,6 +1092,8 @@ export type ActionFormScreenDefinition = {
1086
1092
  readonly detailFor?: string;
1087
1093
  readonly description?: string;
1088
1094
  readonly agent?: AgentHandlerHints;
1095
+ /** Derived by buildAppSchema — see EntityEditScreenDefinition.urlPrefillFields. */
1096
+ readonly urlPrefillFields?: readonly string[];
1089
1097
  /** Write-Handler-QN der bei Submit gerufen wird. Form-Object landet
1090
1098
  * 1:1 als payload — Handler-Schema (Zod) validiert weiter. */
1091
1099
  readonly handler: string;
@@ -1215,6 +1223,8 @@ export type SecretMintScreenDefinition = {
1215
1223
  readonly detailFor?: string;
1216
1224
  readonly description?: string;
1217
1225
  readonly agent?: AgentHandlerHints;
1226
+ /** Derived by buildAppSchema — see EntityEditScreenDefinition.urlPrefillFields. */
1227
+ readonly urlPrefillFields?: readonly string[];
1218
1228
  /** Write-handler QN dispatched on submit. */
1219
1229
  readonly handler: string;
1220
1230
  readonly fields: Readonly<Record<string, FieldDefinition>>;