react-youtube-lite
Advanced tools
Comparing version 2.0.0-canary.4 to 2.0.0
@@ -28,3 +28,3 @@ var $8zHUo$reactjsxruntime = require("react/jsx-runtime"); | ||
$parcel$export($1b18d507509e793d$exports, "ReactYouTubeLite", () => $1b18d507509e793d$export$686192f19a1deef8); | ||
$parcel$export($1b18d507509e793d$exports, "YouTubeLite", () => $1b18d507509e793d$export$c9d7f92e282245c6); | ||
@@ -138,3 +138,3 @@ | ||
function $1b18d507509e793d$var$RenderReactYouTubeLite({ url: url , aspectRatio: aspectRatio = 16 / 9 , css: css , customThumbnail: customThumbnail , iframeProps: iframeProps , noCookie: noCookie , playerParameters: playerParameters , playlist: playlist , poster: poster = 'hqdefault' , title: title , ...props }, ref) { | ||
function $1b18d507509e793d$var$RenderYouTubeLite({ url: url , adNetwork: adNetwork , aspectRatio: aspectRatio = 16 / 9 , css: css , customThumbnail: customThumbnail , iframeProps: iframeProps , noCookie: noCookie = true , playerParameters: playerParameters , playlist: playlist , poster: poster = 'hqdefault' , title: title , ...props }, ref) { | ||
let [preconnected, setPreconnected] = $8zHUo$react.useState(false); | ||
@@ -153,4 +153,6 @@ let [iframe, setIframe] = $8zHUo$react.useState(false); | ||
// These ad-related domains may or may not be on the critical path. Domain-specific throttling could be used to confirm. | ||
$be82188f9cc48f84$export$c11e62fdf1cb07d0('preconnect', 'https://googleads.g.doubleclick.net'); | ||
$be82188f9cc48f84$export$c11e62fdf1cb07d0('preconnect', 'https://static.doubleclick.net'); | ||
if (adNetwork) { | ||
$be82188f9cc48f84$export$c11e62fdf1cb07d0('preconnect', 'https://googleads.g.doubleclick.net'); | ||
$be82188f9cc48f84$export$c11e62fdf1cb07d0('preconnect', 'https://static.doubleclick.net'); | ||
} | ||
setPreconnected(true); | ||
@@ -189,3 +191,3 @@ }; | ||
} | ||
const $1b18d507509e793d$export$686192f19a1deef8 = /*#__PURE__*/ $8zHUo$react.forwardRef($1b18d507509e793d$var$RenderReactYouTubeLite); | ||
const $1b18d507509e793d$export$c9d7f92e282245c6 = /*#__PURE__*/ $8zHUo$react.forwardRef($1b18d507509e793d$var$RenderYouTubeLite); | ||
@@ -192,0 +194,0 @@ |
{ | ||
"name": "react-youtube-lite", | ||
"version": "2.0.0-canary.4", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import * as React from "react"; | ||
import * as Stitches from "@stitches/react"; | ||
import * as YouTube from "youtube-player/dist/types"; | ||
type PosterQuality = 'maxresdefault' | '0' | '1' | '2' | '3' | 'default' | 'hqdefault' | 'mqdefault' | 'sddefault'; | ||
interface IframeProps extends React.ComponentPropsWithoutRef<'iframe'> { | ||
@@ -10,3 +11,3 @@ /** | ||
} | ||
interface ReactYouTubeLiteProps extends React.ComponentPropsWithoutRef<'div'> { | ||
interface YouTubeLiteProps extends React.ComponentPropsWithoutRef<'div'> { | ||
/** | ||
@@ -17,2 +18,8 @@ * This can be either an url to a video or a video ID. | ||
/** | ||
* Preconnect or not doubleclick ads, this is the adnetwork from Google. | ||
* | ||
* @default false | ||
*/ | ||
adNetwork?: boolean; | ||
/** | ||
* The aspect ratio of the video. | ||
@@ -67,3 +74,3 @@ * | ||
*/ | ||
poster?: 'maxresdefault' | '0' | '1' | '2' | '3' | 'default' | 'hqdefault' | 'mqdefault' | 'sddefault'; | ||
poster?: PosterQuality; | ||
/** | ||
@@ -76,4 +83,4 @@ * The `data-title` to insert in the `iframe` | ||
} | ||
export const ReactYouTubeLite: React.ForwardRefExoticComponent<ReactYouTubeLiteProps & React.RefAttributes<HTMLDivElement>>; | ||
export const YouTubeLite: React.ForwardRefExoticComponent<YouTubeLiteProps & React.RefAttributes<HTMLDivElement>>; | ||
//# sourceMappingURL=index.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
47771
9
407
0
1
101