randmarcomps 1.321.0 → 1.322.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/dist/randmarcomps.d.ts +12 -0
- package/dist/randmarcomps.js +180 -173
- package/dist/randmarcomps.umd.cjs +45 -40
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -605,12 +605,24 @@ export declare interface ProductCardProps {
|
|
|
605
605
|
customAction?: default_2.ReactNode;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
+
/**
|
|
609
|
+
* Renders a product image that, if a corresponding video exists,
|
|
610
|
+
* can be clicked to open a video player in a dialog.
|
|
611
|
+
* It efficiently lazy-loads all assets and displays skeleton loaders.
|
|
612
|
+
*/
|
|
608
613
|
export declare function ProductImage({ randmarSKU, size, alt, secondaryContent }: ProductImageProps): JSX.Element;
|
|
609
614
|
|
|
615
|
+
/**
|
|
616
|
+
* Props for the ProductImage component.
|
|
617
|
+
*/
|
|
610
618
|
export declare interface ProductImageProps {
|
|
619
|
+
/** The Randmar SKU used to fetch the product image and video. */
|
|
611
620
|
randmarSKU: string;
|
|
621
|
+
/** Defines the size of the image component. Defaults to 'md'. */
|
|
612
622
|
size?: "sm" | "md" | "lg" | "xl";
|
|
623
|
+
/** Alt text for the image. Defaults to a generic description. */
|
|
613
624
|
alt?: string;
|
|
625
|
+
/** Optional React node to display as secondary content next to the video in the dialog. */
|
|
614
626
|
secondaryContent?: React_2.ReactNode;
|
|
615
627
|
}
|
|
616
628
|
|