react-jplaylist
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -34,3 +34,3 @@ 'use strict'; | ||
); | ||
}; | ||
}; /* eslint-disable react/forbid-prop-types */ | ||
@@ -37,0 +37,0 @@ JPlaylist.defaultProps = { |
@@ -17,2 +17,4 @@ 'use strict'; | ||
/* eslint-disable react/forbid-prop-types */ | ||
var KeyControl = function KeyControl(_ref) { | ||
@@ -19,0 +21,0 @@ var keyBindings = _ref.keyBindings, |
{ | ||
"name": "react-jplaylist", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Html5 audio and video playlist library for React that implements react-jPlayer", | ||
@@ -140,9 +140,7 @@ "author": "Martin Dawson <u1356770@gmail.com>", | ||
"react": "^15.4.1", | ||
"react-dom": "^15.4.1", | ||
"react-jplayer": "latest", | ||
"react-jplayer-utils": "latest", | ||
"react-redux": "^5.0.2", | ||
"recompose": "^0.25.0", | ||
"redux": "^3.6.0" | ||
"recompose": "^0.25.0" | ||
} | ||
} |
@@ -14,2 +14,4 @@ [![Build Status](https://travis-ci.org/jplayer/react-jPlaylist.svg?branch=master)](https://travis-ci.org/jplayer/react-jPlaylist) | ||
* [Installation](#installation) | ||
+ [NPM](#npm) | ||
+ [UMD](#umd) | ||
* [Features](#features) | ||
@@ -55,4 +57,10 @@ * [Supported Browsers](#supported-browsers) | ||
### Installation | ||
#### NPM | ||
`npm install --save react-jplaylist` | ||
#### UMD | ||
The recommended way to use this package is through npm and webpack. However if you insist on including the .js and .css files manually then both the unminified and minified versions are available from the `/dist/` folder. The dependencies of this package have been excluded for the UMD build so you will need to include them manually as shown in the react-jPlayer-example's [UMDPlaylist](https://github.com/jplayer/react-jPlayer-examples/tree/master/jPlaylists/UMDPlaylist). | ||
This module is exported to a variable called `ReactJPlaylist`. | ||
### Features | ||
@@ -59,0 +67,0 @@ * Cross compatible with many legacy different Html5 browsers |
@@ -0,1 +1,3 @@ | ||
/* eslint-disable react/forbid-prop-types */ | ||
import React from 'react'; | ||
@@ -2,0 +4,0 @@ import PropTypes from 'prop-types'; |
@@ -0,1 +1,3 @@ | ||
/* eslint-disable react/forbid-prop-types */ | ||
import React from 'react'; | ||
@@ -2,0 +4,0 @@ import PropTypes from 'prop-types'; |
@@ -12,3 +12,3 @@ import React from 'react'; | ||
const mockKeyControl = ({ keyBindings }) => | ||
<div onKeyDown={() => onKeyDown(keyBindings)} />; | ||
<button onKeyDown={() => onKeyDown(keyBindings)} />; | ||
const keyControlContainer = proxyquire('./keyControlContainer', { | ||
@@ -15,0 +15,0 @@ './keyControl': mockKeyControl, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockMediaLink = ({ play }) => | ||
<div onClick={play} />; | ||
<button onClick={play} />; | ||
const MediaLinkContainer = proxyquire('./mediaLinkContainer', { | ||
@@ -14,0 +14,0 @@ './mediaLink': mockMediaLink, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockNext = ({ next }) => | ||
<div onClick={next} />; | ||
<button onClick={next} />; | ||
const NextContainer = proxyquire('./nextContainer', { | ||
@@ -14,0 +14,0 @@ './next': mockNext, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockPrevious = ({ previous }) => | ||
<div onClick={previous} />; | ||
<button onClick={previous} />; | ||
const PreviousContainer = proxyquire('./previousContainer', { | ||
@@ -14,0 +14,0 @@ './previous': mockPrevious, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockRemove = ({ remove }) => | ||
<div onClick={remove} />; | ||
<button onClick={remove} />; | ||
const RemoveContainer = proxyquire('./removeContainer', { | ||
@@ -14,0 +14,0 @@ './remove': mockRemove, |
@@ -9,3 +9,3 @@ import React from 'react'; | ||
const mockRepeat = ({ loop }) => | ||
<div onClick={loop} />; | ||
<button onClick={loop} />; | ||
const RepeatContainer = proxyquire('./repeatContainer', { | ||
@@ -12,0 +12,0 @@ 'react-jplayer': { RepeatComponent: mockRepeat }, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockShuffle = ({ shuffle }) => | ||
<div onClick={shuffle} />; | ||
<button onClick={shuffle} />; | ||
const ShuffleContainer = proxyquire('./shuffleContainer', { | ||
@@ -14,0 +14,0 @@ './shuffle': mockShuffle, |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
const mockTogglePlaylist = ({ togglePlaylist }) => | ||
<div onClick={togglePlaylist} />; | ||
<button onClick={togglePlaylist} />; | ||
const TogglePlaylistContainer = proxyquire('./togglePlaylistContainer', { | ||
@@ -14,0 +14,0 @@ './togglePlaylist': mockTogglePlaylist, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9
283
0
209536
4841
+ Addedredux@4.2.1(transitive)
- Removedreact-dom@^15.4.1
- Removedredux@^3.6.0
- Removedlodash@4.17.21(transitive)
- Removedlodash-es@4.17.21(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedredux@3.7.2(transitive)