@cosmicdrift/kumiko-renderer 0.123.2 → 0.124.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.123.2",
3
+ "version": "0.124.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.123.2",
19
- "@cosmicdrift/kumiko-headless": "0.123.2",
18
+ "@cosmicdrift/kumiko-framework": "0.124.0",
19
+ "@cosmicdrift/kumiko-headless": "0.124.0",
20
20
  "react": "^19.2.6"
21
21
  },
22
22
  "devDependencies": {
@@ -37,6 +37,7 @@ const testPrimitives: CorePrimitives = {
37
37
  Text: noop,
38
38
  Heading: noop,
39
39
  Dialog: noop,
40
+ Lightbox: noop,
40
41
  ConfigSourceBadge: noop,
41
42
  ConfigCascadeView: noop,
42
43
  };
package/src/index.ts CHANGED
@@ -108,6 +108,7 @@ export type {
108
108
  GridProps,
109
109
  HeadingProps,
110
110
  InputProps,
111
+ LightboxProps,
111
112
  PrimitivesProviderProps,
112
113
  PrimitivesRegistry,
113
114
  RuntimeRenderer,
@@ -581,6 +581,16 @@ export type DialogProps = {
581
581
  readonly testId?: string;
582
582
  };
583
583
 
584
+ /** Image lightbox — full-size preview on click. Web renders Radix overlay;
585
+ * trigger (thumbnail) and open state live in the app. */
586
+ export type LightboxProps = {
587
+ readonly open: boolean;
588
+ readonly onOpenChange: (open: boolean) => void;
589
+ readonly src: string;
590
+ readonly alt: string;
591
+ readonly testId?: string;
592
+ };
593
+
584
594
  /** Source-badge for one cascade step (User / Tenant / System / …).
585
595
  * Used inline next to a config value to indicate where it came from.
586
596
  * Requires a LocaleProvider above it (labels run through useTranslation)
@@ -661,6 +671,7 @@ export type CorePrimitives = {
661
671
  readonly Text: ComponentType<TextProps>;
662
672
  readonly Heading: ComponentType<HeadingProps>;
663
673
  readonly Dialog: ComponentType<DialogProps>;
674
+ readonly Lightbox: ComponentType<LightboxProps>;
664
675
  readonly ConfigSourceBadge: ComponentType<ConfigSourceBadgeProps>;
665
676
  readonly ConfigCascadeView: ComponentType<ConfigCascadeViewProps>;
666
677
  };