react-lite-youtube-embed
Advanced tools
Comparing version 0.2.32 to 0.3.0
@@ -11,2 +11,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
title = _ref.title, | ||
noCookie = _ref.noCookie, | ||
activatedClass = _ref.activatedClass, | ||
@@ -30,3 +31,4 @@ iframeClass = _ref.iframeClass, | ||
var posterUrl = "https://i.ytimg.com/vi/".concat(videoId, "/").concat(poster, ".jpg"); | ||
var iframeSrc = !playlist ? "https://www.youtube.com/embed/".concat(videoId, "?autoplay=1") : "https://www.youtube.com/embed/videoseries?list=".concat(videoId); | ||
var ytUrl = noCookie ? "https://www.youtube-nocookie.com" : "https://www.youtube.com"; | ||
var iframeSrc = !playlist ? "".concat(ytUrl, "/embed/").concat(videoId, "?autoplay=1") : "".concat(ytUrl, "/embed/videoseries?list=").concat(videoId); | ||
var refVideo = useRef(); | ||
@@ -60,3 +62,3 @@ | ||
rel: "preconnect", | ||
href: "https://www.youtube.com" | ||
href: ytUrl | ||
}), React.createElement("link", { | ||
@@ -95,2 +97,3 @@ rel: "preconnect", | ||
title: "YouTube Embed", | ||
noCookie: false, | ||
activatedClass: "lyt-activated", | ||
@@ -97,0 +100,0 @@ iframeClass: "", |
{ | ||
"name": "react-lite-youtube-embed", | ||
"version": "0.2.32", | ||
"version": "0.3.0", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "module": "dist/index", |
@@ -52,2 +52,3 @@ # React Lite YouTube Embed | ||
title="YouTube Embed" // a11y, always provide a title for iFrames: https://dequeuniversity.com/tips/provide-iframe-titles Help the web be accessible ;) | ||
noCookie={true} //Default false, connect to YouTube via the Privacy-Enhanced Mode using https://www.youtube-nocookie.com | ||
/> | ||
@@ -54,0 +55,0 @@ </div> |
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
11870
167
97