apm-react-audio-player 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -10
  2. package/package.json +1 -3
package/dist/index.js CHANGED
@@ -207,7 +207,6 @@ var ReactAudioPlayer = function ReactAudioPlayer(props) {
207
207
  volumeCtrl = props.volumeCtrl,
208
208
  playBtnClass = props.playBtnClass,
209
209
  customHtml = props.customHtml,
210
- customProps = props.customProps,
211
210
  isLive = props.isLive;
212
211
 
213
212
  // hooks
@@ -259,15 +258,7 @@ var ReactAudioPlayer = function ReactAudioPlayer(props) {
259
258
  onClick: togglePlaying,
260
259
  className: playBtnClass,
261
260
  style: customStyles && customStyles.playPause
262
- }, isPlaying ? /*#__PURE__*/React__default.createElement(Pause, null) : /*#__PURE__*/React__default.createElement(Play, null)))), customHtml && customHtml, customProps.audioThumbnailSrc && /*#__PURE__*/React__default.createElement("div", {
263
- className: "player-thumb-and-text"
264
- }, /*#__PURE__*/React__default.createElement("div", {
265
- className: "player-thumbnail"
266
- }, /*#__PURE__*/React__default.createElement("img", {
267
- className: "player-thumbnail",
268
- src: customProps.audioThumbnailSrc,
269
- alt: customProps.audioThumbnailAlt
270
- }))), !isLive && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
261
+ }, isPlaying ? /*#__PURE__*/React__default.createElement(Pause, null) : /*#__PURE__*/React__default.createElement(Play, null)))), customHtml && customHtml, !isLive && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
271
262
  className: "player-currentTime"
272
263
  }, calculateTime(currentTime)), /*#__PURE__*/React__default.createElement("div", {
273
264
  className: "player-timeline"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apm-react-audio-player",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "author": "Jason Phan <jphan@mpr.org>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -33,13 +33,11 @@
33
33
  "rollup-plugin-babel": "^4.3.3"
34
34
  },
35
35
  "devDependencies": {
36
- "babel-eslint": "^10.0.3",
37
36
  "@babel/plugin-proposal-class-properties": "^7.5.5",
38
37
  "@babel/plugin-proposal-optional-chaining": "^7.2.0",
39
38
  "@babel/plugin-syntax-dynamic-import": "^7.2.0",
40
39
  "@babel/preset-env": "^7.5.5",
41
40
  "@babel/preset-react": "^7.0.0",
42
- "babel-polyfill": "^6.26.0",
43
41
  "@testing-library/react": "^8.0.5",
44
42
  "cross-env": "^7.0.2",
45
43
  "eslint": "^6.8.0",