@cosmicdrift/kumiko-types 0.201.0 → 0.202.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 +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.201.0",
3
+ "version": "0.202.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
@@ -806,6 +806,13 @@ export type ScreenNavSugar = {
806
806
  readonly order?: number;
807
807
  };
808
808
 
809
+ // `detailFor` sits on the intersection, not on one variant, because any
810
+ // screen kind can be the detail view for an entity — including `custom`:
811
+ // in app repos, detail screens are overwhelmingly custom screens today
812
+ // (projectionDetail doesn't carry entity semantics). Value is an entity
813
+ // name in the same (unqualified, globally-unique) form as `entity` on
814
+ // `EntityListScreenDefinition` (screen.ts:259-262) — entities are never
815
+ // feature-prefixed, so there's no separate qualification step.
809
816
  export type ScreenDefinition = (
810
817
  | EntityListScreenDefinition
811
818
  | ProjectionListScreenDefinition
@@ -815,4 +822,4 @@ export type ScreenDefinition = (
815
822
  | ActionFormScreenDefinition
816
823
  | ConfigEditScreenDefinition
817
824
  | CustomScreenDefinition
818
- ) & { readonly nav?: ScreenNavSugar };
825
+ ) & { readonly nav?: ScreenNavSugar; readonly detailFor?: string };