react-lite-youtube-embed
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -1,2 +0,2 @@ | ||
declare type imgResolution = "default" | "mqdefault" | "hqdefault" | "sddefault" | "maxresdefault"; | ||
export declare type imgResolution = "default" | "mqdefault" | "hqdefault" | "sddefault" | "maxresdefault"; | ||
interface LiteYouTube { | ||
@@ -3,0 +3,0 @@ announce?: string; |
/** | ||
* react-lite-youtube-embed v2.2.1 | ||
* react-lite-youtube-embed v2.2.2 | ||
* https://github.com/ibrahimcesar/react-lite-youtube-embed.git | ||
@@ -80,5 +80,9 @@ * | ||
return; | ||
onIframeAdded(); | ||
setIframe(true); | ||
}; | ||
React.useEffect(function () { | ||
if (iframe) { | ||
onIframeAdded(); | ||
} | ||
}, [iframe]); | ||
return (React.createElement(React.Fragment, null, | ||
@@ -85,0 +89,0 @@ React.createElement("link", { rel: "preload", href: posterUrl, as: "image" }), |
/** | ||
* react-lite-youtube-embed v2.2.1 | ||
* react-lite-youtube-embed v2.2.2 | ||
* https://github.com/ibrahimcesar/react-lite-youtube-embed.git | ||
@@ -102,5 +102,9 @@ * | ||
return; | ||
onIframeAdded(); | ||
setIframe(true); | ||
}; | ||
React__namespace.useEffect(function () { | ||
if (iframe) { | ||
onIframeAdded(); | ||
} | ||
}, [iframe]); | ||
return (React__namespace.createElement(React__namespace.Fragment, null, | ||
@@ -107,0 +111,0 @@ React__namespace.createElement("link", { rel: "preload", href: posterUrl, as: "image" }), |
{ | ||
"name": "react-lite-youtube-embed", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A private by default, faster and cleaner YouTube embed component for React applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.jsx", |
@@ -6,6 +6,7 @@ <div align="center"> | ||
[![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://github.com/ellerbrock/typescript-badges/) | ||
[![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://www.typescriptlang.org/) | ||
[![Version](https://img.shields.io/npm/v/react-lite-youtube-embed?label=latest%20version)](https://www.npmjs.com/package/react-lite-youtube-embed) [![License](https://badgen.net/github/license/ibrahimcesar/react-lite-youtube-embed)](./LICENSE) ![GitHub issues by-label](https://img.shields.io/github/issues/ibrahimcesar/react-lite-youtube-embed/bug) | ||
[![Version](https://img.shields.io/npm/v/react-lite-youtube-embed?label=latest%20version)](https://www.npmjs.com/package/react-lite-youtube-embed) ![Total Downloads](https://img.shields.io/npm/dt/react-lite-youtube-embed?color=%23FF0000&logo=npm) [![License](https://badgen.net/github/license/ibrahimcesar/react-lite-youtube-embed)](./LICENSE) ![GitHub issues by-label](https://img.shields.io/github/issues/ibrahimcesar/react-lite-youtube-embed/bug) | ||
<p>Developed in π§π· <span role="img" aria-label="Flag for Brazil">Brazil</p> | ||
@@ -17,3 +18,3 @@ | ||
## [View Demo](https://react-lite-youtube-embed.ibrahimcesar.cloud/) | ||
## [View Demo](https://main.d36j4m8wacytqv.amplifyapp.com) | ||
@@ -20,0 +21,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2673198
307
298