@cosmicdrift/kumiko-types 0.258.0 → 0.259.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 +19 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.258.0",
3
+ "version": "0.259.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
@@ -709,6 +709,23 @@ export type DashboardCustomPanel = {
709
709
  readonly component: PlatformComponent;
710
710
  };
711
711
 
712
+ // Live query, so a write that flips `field` swaps panels without reload; hidden while loading.
713
+ export type DashboardPanelVisibility = {
714
+ readonly query: string;
715
+ readonly field: string;
716
+ readonly eq: string | number | boolean | null;
717
+ };
718
+
719
+ // Embedded redirect/cancelTarget navigate away from the dashboard — targets meant for tiles omit both.
720
+ export type DashboardScreenPanel = {
721
+ readonly kind: "screen";
722
+ readonly id: string;
723
+ /** Same-feature short id or cross-feature QN `<feature>:screen:<id>`. */
724
+ readonly screen: string;
725
+ readonly label?: string;
726
+ readonly visibleWhen?: DashboardPanelVisibility;
727
+ };
728
+
712
729
  export type DashboardPanelDefinition =
713
730
  | DashboardStatPanel
714
731
  | DashboardStatGroupPanel
@@ -716,7 +733,8 @@ export type DashboardPanelDefinition =
716
733
  | DashboardListPanel
717
734
  | DashboardFeedPanel
718
735
  | DashboardProgressListPanel
719
- | DashboardCustomPanel;
736
+ | DashboardCustomPanel
737
+ | DashboardScreenPanel;
720
738
 
721
739
  // Screen-weiter Picker (Combobox), dessen gewählter Wert unter `id` in JEDE
722
740
  // Panel-Query dieses Screens gemerged wird (Query-Handler validieren den Wert