@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.
- package/README.md +2 -0
- package/dist/components/LightboxContent.d.ts +3 -2
- package/dist/components/index.js +794 -128
- package/dist/index.cjs +799 -133
- package/dist/index.js +799 -133
- package/dist/renderers/ImageRenderer.d.ts +7 -6
- package/dist/renderers/index.js +746 -94
- package/dist/types.d.ts +21 -0
- package/package.json +2 -1
|
@@ -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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
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 {};
|