react-player
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -93,3 +93,3 @@ import * as React from 'react'; | ||
config?: Config; | ||
onReady?(): void; | ||
onReady?(player: ReactPlayer): void; | ||
onStart?(): void; | ||
@@ -96,0 +96,0 @@ onPlay?(): void; |
@@ -59,3 +59,5 @@ "use strict"; | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./YouTube'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerYouTube' */ | ||
'./YouTube'); | ||
}) | ||
@@ -68,3 +70,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./SoundCloud'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerSoundCloud' */ | ||
'./SoundCloud'); | ||
}) | ||
@@ -77,3 +81,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Vimeo'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerVimeo' */ | ||
'./Vimeo'); | ||
}) | ||
@@ -86,3 +92,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Facebook'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerFacebook' */ | ||
'./Facebook'); | ||
}) | ||
@@ -95,3 +103,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Streamable'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerStreamable' */ | ||
'./Streamable'); | ||
}) | ||
@@ -104,3 +114,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Wistia'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerWistia' */ | ||
'./Wistia'); | ||
}) | ||
@@ -113,3 +125,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Twitch'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerTwitch' */ | ||
'./Twitch'); | ||
}) | ||
@@ -122,3 +136,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./DailyMotion'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerDailyMotion' */ | ||
'./DailyMotion'); | ||
}) | ||
@@ -131,3 +147,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Mixcloud'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerMixcloud' */ | ||
'./Mixcloud'); | ||
}) | ||
@@ -140,3 +158,5 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./Vidyard'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerVidyard' */ | ||
'./Vidyard'); | ||
}) | ||
@@ -150,5 +170,7 @@ }, { | ||
lazyPlayer: (0, _react.lazy)(function () { | ||
return import('./FilePlayer'); | ||
return import( | ||
/* webpackChunkName: 'reactPlayerFilePlayer' */ | ||
'./FilePlayer'); | ||
}) | ||
}]; | ||
exports["default"] = _default; |
{ | ||
"name": "react-player", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactPlayer.js", |
@@ -12,10 +12,7 @@ <h1 align='center'> | ||
</a> | ||
<a href='https://david-dm.org/CookPete/react-player'> | ||
<img src='https://img.shields.io/david/CookPete/react-player.svg' alt='Dependency Status'> | ||
</a> | ||
<a href='https://codecov.io/gh/CookPete/react-player'> | ||
<img src='https://img.shields.io/codecov/c/github/cookpete/react-player.svg' alt='Test Coverage'> | ||
</a> | ||
<a href='https://paypal.me/ckpt'> | ||
<img src='https://img.shields.io/badge/donate-PayPal-blue.svg' alt='Donate'> | ||
<a href='https://www.patreon.com/cookpete'> | ||
<img src='https://img.shields.io/badge/sponsor-patreon-fa6854.svg' alt='Become a sponsor on Patreon'> | ||
</a> | ||
@@ -333,3 +330,11 @@ </p> | ||
- Many thanks to [Kostya Luchankin](https://github.com/phationmationion) for help overhauling the player inheritance patterns. | ||
- Thanks to anyone who has [contributed](https://github.com/CookPete/react-player/graphs/contributors). | ||
- Huge thanks to my Patreon sponsors: | ||
<table> | ||
<tr> | ||
<td align='center'> | ||
<a href='https://github.com/josephfung'><img src='https://avatars3.githubusercontent.com/u/114566?s=120&v=4' /><br />Joseph Fung</a> | ||
</td> | ||
</tr> | ||
</table> |
Sorry, the diff of this file is too big to display
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
1177395
34
4804
339