yet-another-react-lightbox
Advanced tools
Comparing version 3.10.1 to 3.10.2
@@ -13,2 +13,4 @@ import { PluginProps } from '../../types.js'; | ||
interface SlideVideo extends GenericSlide { | ||
/** video slide type */ | ||
type: "video"; | ||
/** video placeholder image */ | ||
@@ -15,0 +17,0 @@ poster?: string; |
@@ -97,4 +97,5 @@ import * as React from 'react'; | ||
slide: ({ slide, offset, rect }) => { | ||
var _a; | ||
if (isVideoSlide(slide)) { | ||
return (React.createElement(VideoSlide, { key: `${slide.sources.map((source) => source.src).join(" ")}`, slide: slide, offset: offset })); | ||
return (React.createElement(VideoSlide, { key: `${(_a = slide.sources) === null || _a === void 0 ? void 0 : _a.map((source) => source.src).join(" ")}`, slide: slide, offset: offset })); | ||
} | ||
@@ -101,0 +102,0 @@ return renderSlide === null || renderSlide === void 0 ? void 0 : renderSlide({ slide, offset, rect }); |
@@ -105,2 +105,4 @@ import * as React from 'react'; | ||
interface SlideImage extends GenericSlide { | ||
/** image slide type */ | ||
type?: "image"; | ||
/** image URL */ | ||
@@ -107,0 +109,0 @@ src: string; |
{ | ||
"name": "yet-another-react-lightbox", | ||
"version": "3.10.1", | ||
"version": "3.10.2", | ||
"description": "Modern React lightbox component", | ||
@@ -5,0 +5,0 @@ "author": "Igor Danchenko", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
214726
3996