Socket
Socket
Sign inDemoInstall

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 3.0.0-canary.2 to 3.0.0-canary.3

2

dist/base.d.ts

@@ -8,3 +8,3 @@ import {

} from 'react'
import ReactPlayer from './'
import ReactPlayer from './index.js'

@@ -11,0 +11,0 @@ interface SourceProps {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface DailyMotionConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface FacebookConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface TrackProps {

@@ -1,13 +0,13 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'
import { DailyMotionConfig } from './dailymotion'
import { FacebookConfig } from './facebook'
import { FileConfig } from './file'
import { MixcloudConfig } from './mixcloud'
import { SoundCloudConfig } from './soundcloud'
import { TwitchConfig } from './twitch'
import { VidyardConfig } from './vidyard'
import { VimeoConfig } from './vimeo'
import { WistiaConfig } from './wistia'
import { YouTubeConfig } from './youtube'
import { DailyMotionConfig } from './dailymotion.js'
import { FacebookConfig } from './facebook.js'
import { FileConfig } from './file.js'
import { MixcloudConfig } from './mixcloud.js'
import { SoundCloudConfig } from './soundcloud.js'
import { TwitchConfig } from './twitch.js'
import { VidyardConfig } from './vidyard.js'
import { VimeoConfig } from './vimeo.js'
import { WistiaConfig } from './wistia.js'
import { YouTubeConfig } from './youtube.js'

@@ -14,0 +14,0 @@ export interface Config {

@@ -1,3 +0,3 @@

import players from "./players";
import { createReactPlayer } from "./ReactPlayer";
import players from "./players/index.js";
import { createReactPlayer } from "./ReactPlayer.js";
const fallback = players[players.length - 1];

@@ -4,0 +4,0 @@ var src_default = createReactPlayer(players, fallback);

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface KalturaPlayerProps extends BaseReactPlayerProps {}

@@ -1,2 +0,2 @@

export * from '../'
export { default } from '../'
export * from '../index.js'
export { default } from '../index.js'

@@ -1,3 +0,3 @@

import players from "./players";
import { createReactPlayer } from "./ReactPlayer";
import players from "./players/index.js";
import { createReactPlayer } from "./ReactPlayer.js";
const fallback = players[players.length - 1];

@@ -4,0 +4,0 @@ var src_default = createReactPlayer(players, fallback);

@@ -9,4 +9,4 @@ var __defProp = Object.defineProperty;

import isEqual from "react-fast-compare";
import { propTypes, defaultProps } from "./props";
import { isMediaStream } from "./utils";
import { propTypes, defaultProps } from "./props.js";
import { isMediaStream } from "./utils.js";
const SEEK_ON_PLAY_EXPIRY = 5e3;

@@ -13,0 +13,0 @@ class Player extends Component {

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime } from "../utils";
import { canPlay, MATCH_URL_DAILYMOTION } from "../patterns";
import { callPlayer, getSDK, parseStartTime } from "../utils.js";
import { canPlay, MATCH_URL_DAILYMOTION } from "../patterns.js";
const SDK_URL = "https://api.dmcdn.net/all.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "DM";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, randomString } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK, randomString } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://connect.facebook.net/en_US/sdk.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "FB";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { getSDK, isMediaStream, supportsWebKitPresentationMode } from "../utils";
import { canPlay, AUDIO_EXTENSIONS, HLS_EXTENSIONS, DASH_EXTENSIONS, FLV_EXTENSIONS } from "../patterns";
import { getSDK, isMediaStream, supportsWebKitPresentationMode } from "../utils.js";
import { canPlay, AUDIO_EXTENSIONS, HLS_EXTENSIONS, DASH_EXTENSIONS, FLV_EXTENSIONS } from "../patterns.js";
const HAS_NAVIGATOR = typeof navigator !== "undefined";

@@ -12,0 +12,0 @@ const IS_IPAD_PRO = HAS_NAVIGATOR && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;

@@ -10,3 +10,3 @@ import { lazy, supportsWebKitPresentationMode } from "../utils.js";

/* webpackChunkName: 'reactPlayerYouTube' */
"./YouTube"
"./YouTube.js"
))

@@ -20,3 +20,3 @@ },

/* webpackChunkName: 'reactPlayerSoundCloud' */
"./SoundCloud"
"./SoundCloud.js"
))

@@ -30,3 +30,3 @@ },

/* webpackChunkName: 'reactPlayerVimeo' */
"./Vimeo"
"./Vimeo.js"
))

@@ -40,3 +40,3 @@ },

/* webpackChunkName: 'reactPlayerMux' */
"./Mux"
"./Mux.js"
))

@@ -50,3 +50,3 @@ },

/* webpackChunkName: 'reactPlayerFacebook' */
"./Facebook"
"./Facebook.js"
))

@@ -60,3 +60,3 @@ },

/* webpackChunkName: 'reactPlayerStreamable' */
"./Streamable"
"./Streamable.js"
))

@@ -70,3 +70,3 @@ },

/* webpackChunkName: 'reactPlayerWistia' */
"./Wistia"
"./Wistia.js"
))

@@ -80,3 +80,3 @@ },

/* webpackChunkName: 'reactPlayerTwitch' */
"./Twitch"
"./Twitch.js"
))

@@ -90,3 +90,3 @@ },

/* webpackChunkName: 'reactPlayerDailyMotion' */
"./DailyMotion"
"./DailyMotion.js"
))

@@ -100,3 +100,3 @@ },

/* webpackChunkName: 'reactPlayerMixcloud' */
"./Mixcloud"
"./Mixcloud.js"
))

@@ -110,3 +110,3 @@ },

/* webpackChunkName: 'reactPlayerVidyard' */
"./Vidyard"
"./Vidyard.js"
))

@@ -120,3 +120,3 @@ },

/* webpackChunkName: 'reactPlayerKaltura' */
"./Kaltura"
"./Kaltura.js"
))

@@ -133,3 +133,3 @@ },

/* webpackChunkName: 'reactPlayerFilePlayer' */
"./FilePlayer"
"./FilePlayer.js"
))

@@ -136,0 +136,0 @@ }

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "playerjs";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, queryString } from "../utils";
import { canPlay, MATCH_URL_MIXCLOUD } from "../patterns";
import { callPlayer, getSDK, queryString } from "../utils.js";
import { canPlay, MATCH_URL_MIXCLOUD } from "../patterns.js";
const SDK_URL = "https://widget.mixcloud.com/media/js/widgetApi.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Mixcloud";

@@ -8,3 +8,3 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { canPlay, MATCH_URL_MUX } from "../patterns";
import { canPlay, MATCH_URL_MUX } from "../patterns.js";
const SDK_URL = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";

@@ -11,0 +11,0 @@ class Mux extends Component {

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://w.soundcloud.com/player/api.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "SC";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay, MATCH_URL_STREAMABLE } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay, MATCH_URL_STREAMABLE } from "../patterns.js";
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "playerjs";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime, randomString } from "../utils";
import { canPlay, MATCH_URL_TWITCH_CHANNEL, MATCH_URL_TWITCH_VIDEO } from "../patterns";
import { callPlayer, getSDK, parseStartTime, randomString } from "../utils.js";
import { canPlay, MATCH_URL_TWITCH_CHANNEL, MATCH_URL_TWITCH_VIDEO } from "../patterns.js";
const SDK_URL = "https://player.twitch.tv/js/embed/v1.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Twitch";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay, MATCH_URL_VIDYARD } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay, MATCH_URL_VIDYARD } from "../patterns.js";
const SDK_URL = "https://play.vidyard.com/embed/v4.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "VidyardV4";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://player.vimeo.com/api/player.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Vimeo";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, randomString } from "../utils";
import { canPlay, MATCH_URL_WISTIA } from "../patterns";
import { callPlayer, getSDK, randomString } from "../utils.js";
import { canPlay, MATCH_URL_WISTIA } from "../patterns.js";
const SDK_URL = "https://fast.wistia.com/assets/external/E-v1.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Wistia";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime, parseEndTime } from "../utils";
import { canPlay, MATCH_URL_YOUTUBE } from "../patterns";
import { callPlayer, getSDK, parseStartTime, parseEndTime } from "../utils.js";
import { canPlay, MATCH_URL_YOUTUBE } from "../patterns.js";
const SDK_URL = "https://www.youtube.com/iframe_api";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "YT";

@@ -11,8 +11,8 @@ var __defProp = Object.defineProperty;

import isEqual from "react-fast-compare";
import { propTypes, defaultProps } from "./props";
import { omit, lazy } from "./utils";
import Player from "./Player";
import { propTypes, defaultProps } from "./props.js";
import { omit, lazy } from "./utils.js";
import Player from "./Player.js";
const Preview = lazy(() => import(
/* webpackChunkName: 'reactPlayerPreview' */
"./Preview"
"./Preview.js"
));

@@ -19,0 +19,0 @@ const SUPPORTED_PROPS = Object.keys(propTypes);

import React from "react";
import { render } from "react-dom";
import ReactPlayer from "./index";
import ReactPlayer from "./index.js";
function renderReactPlayer(container, props) {

@@ -5,0 +5,0 @@ render(/* @__PURE__ */ React.createElement(ReactPlayer, { ...props }), container);

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface MixcloudConfig {

@@ -9,4 +9,4 @@ var __defProp = Object.defineProperty;

import isEqual from "react-fast-compare";
import { propTypes, defaultProps } from "./props";
import { isMediaStream } from "./utils";
import { propTypes, defaultProps } from "./props.js";
import { isMediaStream } from "./utils.js";
const SEEK_ON_PLAY_EXPIRY = 5e3;

@@ -13,0 +13,0 @@ class Player extends Component {

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime } from "../utils";
import { canPlay, MATCH_URL_DAILYMOTION } from "../patterns";
import { callPlayer, getSDK, parseStartTime } from "../utils.js";
import { canPlay, MATCH_URL_DAILYMOTION } from "../patterns.js";
const SDK_URL = "https://api.dmcdn.net/all.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "DM";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, randomString } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK, randomString } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://connect.facebook.net/en_US/sdk.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "FB";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { getSDK, isMediaStream, supportsWebKitPresentationMode } from "../utils";
import { canPlay, AUDIO_EXTENSIONS, HLS_EXTENSIONS, DASH_EXTENSIONS, FLV_EXTENSIONS } from "../patterns";
import { getSDK, isMediaStream, supportsWebKitPresentationMode } from "../utils.js";
import { canPlay, AUDIO_EXTENSIONS, HLS_EXTENSIONS, DASH_EXTENSIONS, FLV_EXTENSIONS } from "../patterns.js";
const HAS_NAVIGATOR = typeof navigator !== "undefined";

@@ -12,0 +12,0 @@ const IS_IPAD_PRO = HAS_NAVIGATOR && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;

@@ -10,3 +10,3 @@ import { lazy, supportsWebKitPresentationMode } from "../utils.js";

/* webpackChunkName: 'reactPlayerYouTube' */
"./YouTube"
"./YouTube.js"
))

@@ -20,3 +20,3 @@ },

/* webpackChunkName: 'reactPlayerSoundCloud' */
"./SoundCloud"
"./SoundCloud.js"
))

@@ -30,3 +30,3 @@ },

/* webpackChunkName: 'reactPlayerVimeo' */
"./Vimeo"
"./Vimeo.js"
))

@@ -40,3 +40,3 @@ },

/* webpackChunkName: 'reactPlayerMux' */
"./Mux"
"./Mux.js"
))

@@ -50,3 +50,3 @@ },

/* webpackChunkName: 'reactPlayerFacebook' */
"./Facebook"
"./Facebook.js"
))

@@ -60,3 +60,3 @@ },

/* webpackChunkName: 'reactPlayerStreamable' */
"./Streamable"
"./Streamable.js"
))

@@ -70,3 +70,3 @@ },

/* webpackChunkName: 'reactPlayerWistia' */
"./Wistia"
"./Wistia.js"
))

@@ -80,3 +80,3 @@ },

/* webpackChunkName: 'reactPlayerTwitch' */
"./Twitch"
"./Twitch.js"
))

@@ -90,3 +90,3 @@ },

/* webpackChunkName: 'reactPlayerDailyMotion' */
"./DailyMotion"
"./DailyMotion.js"
))

@@ -100,3 +100,3 @@ },

/* webpackChunkName: 'reactPlayerMixcloud' */
"./Mixcloud"
"./Mixcloud.js"
))

@@ -110,3 +110,3 @@ },

/* webpackChunkName: 'reactPlayerVidyard' */
"./Vidyard"
"./Vidyard.js"
))

@@ -120,3 +120,3 @@ },

/* webpackChunkName: 'reactPlayerKaltura' */
"./Kaltura"
"./Kaltura.js"
))

@@ -133,3 +133,3 @@ },

/* webpackChunkName: 'reactPlayerFilePlayer' */
"./FilePlayer"
"./FilePlayer.js"
))

@@ -136,0 +136,0 @@ }

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "playerjs";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, queryString } from "../utils";
import { canPlay, MATCH_URL_MIXCLOUD } from "../patterns";
import { callPlayer, getSDK, queryString } from "../utils.js";
import { canPlay, MATCH_URL_MIXCLOUD } from "../patterns.js";
const SDK_URL = "https://widget.mixcloud.com/media/js/widgetApi.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Mixcloud";

@@ -8,3 +8,3 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { canPlay, MATCH_URL_MUX } from "../patterns";
import { canPlay, MATCH_URL_MUX } from "../patterns.js";
const SDK_URL = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";

@@ -11,0 +11,0 @@ class Mux extends Component {

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://w.soundcloud.com/player/api.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "SC";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay, MATCH_URL_STREAMABLE } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay, MATCH_URL_STREAMABLE } from "../patterns.js";
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "playerjs";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime, randomString } from "../utils";
import { canPlay, MATCH_URL_TWITCH_CHANNEL, MATCH_URL_TWITCH_VIDEO } from "../patterns";
import { callPlayer, getSDK, parseStartTime, randomString } from "../utils.js";
import { canPlay, MATCH_URL_TWITCH_CHANNEL, MATCH_URL_TWITCH_VIDEO } from "../patterns.js";
const SDK_URL = "https://player.twitch.tv/js/embed/v1.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Twitch";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay, MATCH_URL_VIDYARD } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay, MATCH_URL_VIDYARD } from "../patterns.js";
const SDK_URL = "https://play.vidyard.com/embed/v4.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "VidyardV4";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK } from "../utils";
import { canPlay } from "../patterns";
import { callPlayer, getSDK } from "../utils.js";
import { canPlay } from "../patterns.js";
const SDK_URL = "https://player.vimeo.com/api/player.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Vimeo";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, randomString } from "../utils";
import { canPlay, MATCH_URL_WISTIA } from "../patterns";
import { callPlayer, getSDK, randomString } from "../utils.js";
import { canPlay, MATCH_URL_WISTIA } from "../patterns.js";
const SDK_URL = "https://fast.wistia.com/assets/external/E-v1.js";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "Wistia";

@@ -8,4 +8,4 @@ var __defProp = Object.defineProperty;

import React, { Component } from "react";
import { callPlayer, getSDK, parseStartTime, parseEndTime } from "../utils";
import { canPlay, MATCH_URL_YOUTUBE } from "../patterns";
import { callPlayer, getSDK, parseStartTime, parseEndTime } from "../utils.js";
import { canPlay, MATCH_URL_YOUTUBE } from "../patterns.js";
const SDK_URL = "https://www.youtube.com/iframe_api";

@@ -12,0 +12,0 @@ const SDK_GLOBAL = "YT";

@@ -11,8 +11,8 @@ var __defProp = Object.defineProperty;

import isEqual from "react-fast-compare";
import { propTypes, defaultProps } from "./props";
import { omit, lazy } from "./utils";
import Player from "./Player";
import { propTypes, defaultProps } from "./props.js";
import { omit, lazy } from "./utils.js";
import Player from "./Player.js";
const Preview = lazy(() => import(
/* webpackChunkName: 'reactPlayerPreview' */
"./Preview"
"./Preview.js"
));

@@ -19,0 +19,0 @@ const SUPPORTED_PROPS = Object.keys(propTypes);

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface SoundCloudConfig {

import React from "react";
import { render } from "react-dom";
import ReactPlayer from "./index";
import ReactPlayer from "./index.js";
function renderReactPlayer(container, props) {

@@ -5,0 +5,0 @@ render(/* @__PURE__ */ React.createElement(ReactPlayer, { ...props }), container);

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface StreamablePlayerProps extends BaseReactPlayerProps {}

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface TwitchConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface VidyardConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface VimeoConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface WistiaConfig {

@@ -1,2 +0,2 @@

import BaseReactPlayer, { BaseReactPlayerProps } from './base'
import BaseReactPlayer, { BaseReactPlayerProps } from './base.js'

@@ -3,0 +3,0 @@ export interface YouTubeConfig {

{
"name": "react-player",
"version": "3.0.0-canary.2",
"version": "3.0.0-canary.3",
"description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion",

@@ -21,5 +21,14 @@ "author": "Pete Cook (https://github.com/cookpete)",

"exports": {
".": "./dist/index.js",
"./lazy": "./dist/lazy/index.js",
"./*": "./dist/*.js"
".": {
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./lazy": {
"default": "./dist/lazy/index.js",
"types": "./dist/lazy/index.d.ts"
},
"./*": {
"default": "./dist/*.js",
"types": "./dist/*.d.ts"
}
},

@@ -47,7 +56,9 @@ "scripts": {

"peerDependencies": {
"react": ">=16.6.0"
"@types/react": "^17.0.0 || ^18",
"react": "^17.0.2 || ^18",
"react-dom": "^17.0.2 || ^18"
},
"devDependencies": {
"@types/node": "^14.0.24",
"@types/react": "^17.0.0",
"@types/react": "^18.2.79",
"auto-changelog": "^2.0.0",

@@ -60,5 +71,5 @@ "builder": "file:./scripts/builder",

"npm-run-all": "^4.1.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",

@@ -71,3 +82,3 @@ "screenfull": "^5.0.2",

"ts-standard": "^12.0.2",
"typescript": "^4.1.2",
"typescript": "^5.4.5",
"zora": "^5.2.0"

@@ -74,0 +85,0 @@ },

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