Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-youtube-lite

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-youtube-lite - npm Package Compare versions

Comparing version 2.0.0-canary.4 to 2.0.0

README.md

12

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc