@micromag/screen-audio 0.3.295 → 0.3.310

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.
package/es/index.js CHANGED
@@ -44,7 +44,7 @@ var defaultProps = {
44
44
  active: true,
45
45
  transitions: null,
46
46
  mediaRef: null,
47
- showWave: false,
47
+ showWave: true,
48
48
  className: null
49
49
  };
50
50
 
@@ -109,6 +109,8 @@ var AudioScreen = function AudioScreen(_ref) {
109
109
  autoPlay = _ref3$autoPlay === void 0 ? true : _ref3$autoPlay,
110
110
  _ref3$closedCaptions = _ref3.closedCaptions,
111
111
  closedCaptions = _ref3$closedCaptions === void 0 ? null : _ref3$closedCaptions,
112
+ _ref3$withWave = _ref3.withWave,
113
+ withWave = _ref3$withWave === void 0 ? false : _ref3$withWave,
112
114
  _ref3$withControls = _ref3.withControls,
113
115
  withControls = _ref3$withControls === void 0 ? false : _ref3$withControls,
114
116
  _ref3$withSeekBar = _ref3.withSeekBar,
@@ -257,7 +259,7 @@ var AudioScreen = function AudioScreen(_ref) {
257
259
  onDurationChange: onDurationChange,
258
260
  onSeeked: onSeeked,
259
261
  onEnded: onEnded,
260
- withWave: showWave
262
+ withWave: showWave && withWave
261
263
  })))), /*#__PURE__*/React.createElement(Spacer, {
262
264
  key: "spacer-middle"
263
265
  }), !isPlaceholder ? /*#__PURE__*/React.createElement("div", {
@@ -281,7 +283,8 @@ var AudioScreen = function AudioScreen(_ref) {
281
283
  openWebView: openWebView
282
284
  })) : null) : null].filter(function (el) {
283
285
  return el !== null;
284
- });
286
+ }); // console.log('finalAudio', finalAudio);
287
+
285
288
  return /*#__PURE__*/React.createElement("div", {
286
289
  className: classNames([styles.container, (_ref8 = {}, _defineProperty(_ref8, className, className !== null), _defineProperty(_ref8, styles.placeholder, isPlaceholder), _defineProperty(_ref8, styles.isPreview, isPreview), _ref8)]),
287
290
  "data-screen-ready": ready
package/lib/index.js CHANGED
@@ -64,7 +64,7 @@ var defaultProps = {
64
64
  active: true,
65
65
  transitions: null,
66
66
  mediaRef: null,
67
- showWave: false,
67
+ showWave: true,
68
68
  className: null
69
69
  };
70
70
 
@@ -129,6 +129,8 @@ var AudioScreen = function AudioScreen(_ref) {
129
129
  autoPlay = _ref3$autoPlay === void 0 ? true : _ref3$autoPlay,
130
130
  _ref3$closedCaptions = _ref3.closedCaptions,
131
131
  closedCaptions = _ref3$closedCaptions === void 0 ? null : _ref3$closedCaptions,
132
+ _ref3$withWave = _ref3.withWave,
133
+ withWave = _ref3$withWave === void 0 ? false : _ref3$withWave,
132
134
  _ref3$withControls = _ref3.withControls,
133
135
  withControls = _ref3$withControls === void 0 ? false : _ref3$withControls,
134
136
  _ref3$withSeekBar = _ref3.withSeekBar,
@@ -277,7 +279,7 @@ var AudioScreen = function AudioScreen(_ref) {
277
279
  onDurationChange: onDurationChange,
278
280
  onSeeked: onSeeked,
279
281
  onEnded: onEnded,
280
- withWave: showWave
282
+ withWave: showWave && withWave
281
283
  })))), /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
282
284
  key: "spacer-middle"
283
285
  }), !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -301,7 +303,8 @@ var AudioScreen = function AudioScreen(_ref) {
301
303
  openWebView: openWebView
302
304
  })) : null) : null].filter(function (el) {
303
305
  return el !== null;
304
- });
306
+ }); // console.log('finalAudio', finalAudio);
307
+
305
308
  return /*#__PURE__*/React__default["default"].createElement("div", {
306
309
  className: classNames__default["default"]([styles.container, (_ref8 = {}, _defineProperty__default["default"](_ref8, className, className !== null), _defineProperty__default["default"](_ref8, styles.placeholder, isPlaceholder), _defineProperty__default["default"](_ref8, styles.isPreview, isPreview), _ref8)]),
307
310
  "data-screen-ready": ready
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-audio",
3
- "version": "0.3.295",
3
+ "version": "0.3.310",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,15 +49,15 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.295",
53
- "@micromag/element-audio": "^0.3.295",
54
- "@micromag/element-background": "^0.3.295",
55
- "@micromag/element-call-to-action": "^0.3.295",
56
- "@micromag/element-closed-captions": "^0.3.295",
57
- "@micromag/element-container": "^0.3.295",
58
- "@micromag/element-layout": "^0.3.295",
59
- "@micromag/element-media-controls": "^0.3.295",
60
- "@micromag/transforms": "^0.3.295",
52
+ "@micromag/core": "^0.3.307",
53
+ "@micromag/element-audio": "^0.3.310",
54
+ "@micromag/element-background": "^0.3.307",
55
+ "@micromag/element-call-to-action": "^0.3.310",
56
+ "@micromag/element-closed-captions": "^0.3.307",
57
+ "@micromag/element-container": "^0.3.307",
58
+ "@micromag/element-layout": "^0.3.307",
59
+ "@micromag/element-media-controls": "^0.3.307",
60
+ "@micromag/transforms": "^0.3.307",
61
61
  "classnames": "^2.2.6",
62
62
  "lodash": "^4.17.21",
63
63
  "prop-types": "^15.7.2",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "0bcd099c7e697bc4ebb858e7fd63fad111d052b8"
70
+ "gitHead": "c2f4fbfcf0f643737a77f99dccf4d353f7856c2c"
71
71
  }