@page-speed/lightbox 0.0.1 → 0.0.2

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.
@@ -1,14 +1,15 @@
1
- import { LightboxItem, LightboxLayoutType } from "../types";
1
+ import type { LightboxItem, LightboxLayoutType, LightboxOptixFlowConfig } from "../types";
2
2
  interface ImageRendererProps {
3
3
  item: LightboxItem;
4
4
  layout: LightboxLayoutType;
5
+ optixFlowConfig?: LightboxOptixFlowConfig;
5
6
  }
6
7
  /**
7
- * Basic image renderer.
8
+ * Basic image renderer using @page-speed/img for optimized delivery.
8
9
  *
9
- * This intentionally uses a plain <img> tag so consuming apps can decide
10
- * whether to wrap or replace it with @opensite/img when used inside the
11
- * Semantic Site Builder.
10
+ * Consuming apps can still swap this out by providing a custom renderer
11
+ * via the Semantic Site Builder, but the default integrates the shared
12
+ * <Img /> component and OptixFlow configuration.
12
13
  */
13
- export declare function ImageRenderer({ item }: ImageRendererProps): import("react/jsx-runtime").JSX.Element | null;
14
+ export declare function ImageRenderer({ item, optixFlowConfig }: ImageRendererProps): import("react/jsx-runtime").JSX.Element | null;
14
15
  export {};