@desynova-digital/player 4.0.63 → 4.0.64

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 (70) hide show
  1. package/Manager.js +8 -9
  2. package/actions/player.js +1 -1
  3. package/components/AudioMeter.js +27 -28
  4. package/components/BigPlayButton.js +16 -17
  5. package/components/ImageViewer.js +16 -17
  6. package/components/MarkerBar.js +16 -17
  7. package/components/Menu.js +2 -2
  8. package/components/Player.js +45 -46
  9. package/components/PlayerHeader.js +23 -24
  10. package/components/Playlist.js +14 -15
  11. package/components/PointersBar.js +19 -20
  12. package/components/PosterImage.js +1 -1
  13. package/components/SDOutline.js +2 -2
  14. package/components/Shortcut.js +69 -70
  15. package/components/Slider.js +33 -33
  16. package/components/TagsBar.js +15 -16
  17. package/components/Video.js +119 -122
  18. package/components/control-bar/AudioTracksMenuButton.js +14 -15
  19. package/components/control-bar/CameraButton.js +15 -16
  20. package/components/control-bar/CaptionControlMenuButton.js +19 -20
  21. package/components/control-bar/CommentsButton.js +16 -17
  22. package/components/control-bar/ControlBar.js +17 -18
  23. package/components/control-bar/EditorControlMenuButton.js +16 -17
  24. package/components/control-bar/ForwardControl.js +1 -1
  25. package/components/control-bar/ForwardReplayControl.js +15 -16
  26. package/components/control-bar/FullscreenToggle.js +15 -16
  27. package/components/control-bar/PlayToggle.js +15 -16
  28. package/components/control-bar/ReplayControl.js +1 -1
  29. package/components/control-bar/SettingsMenuButton.js +4 -4
  30. package/components/control-bar/SubtitleLanguagesMenuButton.js +14 -15
  31. package/components/control-bar/SubtitleMovementMenu.js +16 -17
  32. package/components/control-bar/VolumeMenuButton.js +16 -17
  33. package/components/control-bar/ZoomMenuButton.js +16 -17
  34. package/components/marking-controls/MarkInControl.js +15 -16
  35. package/components/marking-controls/MarkOutControl.js +15 -16
  36. package/components/marking-controls/MarkingAddButton.js +15 -16
  37. package/components/marking-controls/MarkingControl.js +2 -2
  38. package/components/marking-controls/MarkingDeleteButton.js +15 -16
  39. package/components/marking-controls/MarkingDuration.js +2 -2
  40. package/components/marking-controls/MarkingPreview.js +15 -16
  41. package/components/marking-controls/TimecodeFormatSelector.js +7 -7
  42. package/components/progress-bar/AudioWaveform.js +15 -16
  43. package/components/progress-bar/LoadProgressBar.js +1 -1
  44. package/components/progress-bar/MouseTimeDisplay.js +1 -1
  45. package/components/progress-bar/PlayProgressBar.js +2 -2
  46. package/components/progress-bar/ProgressControl.js +19 -20
  47. package/components/progress-bar/SeekBar.js +27 -28
  48. package/components/progress-bar/Timeline.js +14 -15
  49. package/components/settings-menu-control/CameraControl.js +3 -3
  50. package/components/settings-menu-control/ChildMenuComponent.js +28 -29
  51. package/components/settings-menu-control/ParentMenuComponent.js +17 -18
  52. package/components/settings-menu-control/PlaybackRateControl.js +15 -16
  53. package/components/settings-menu-control/SafeAreaControl.js +15 -16
  54. package/components/settings-menu-control/SettingsMenu.js +12 -12
  55. package/components/time-controls/CurrentTimeDisplay.js +7 -7
  56. package/components/time-controls/DurationDisplay.js +2 -2
  57. package/components/time-controls/TimeDivider.js +2 -2
  58. package/components/volume-control/VolumeBar.js +24 -25
  59. package/components/volume-control/VolumeControl.js +1 -1
  60. package/components/volume-control/VolumeLevel.js +2 -2
  61. package/components/zoom-control/ZoomBar.js +23 -24
  62. package/components/zoom-control/ZoomLevel.js +2 -2
  63. package/index.js +2 -2
  64. package/package.json +1 -1
  65. package/reducers/operation.js +2 -2
  66. package/reducers/player.js +2 -2
  67. package/utils/browser.js +14 -14
  68. package/utils/dom.js +18 -18
  69. package/utils/fullscreen.js +5 -6
  70. package/utils/index.js +54 -54
@@ -9,8 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _colors = _interopRequireDefault(require("../../colors"));
11
11
  var _templateObject;
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
14
14
  var propTypes = {
15
15
  playerType: _propTypes.PropTypes.oneOf(['dubbing_review', 'clipping_default', 'default', 'tagging', 'qc', 'subtitle', 'snp_edit', 'archive', 'restore', 'clipping', 'storyboard', 'panel']),
16
16
  assetType: _propTypes.PropTypes.oneOf(['fc', 'rc']),
@@ -11,23 +11,23 @@ var _propTypes = require("prop-types");
11
11
  var _Slider = _interopRequireDefault(require("../Slider"));
12
12
  var _ZoomLevel = _interopRequireDefault(require("./ZoomLevel"));
13
13
  var _templateObject;
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
19
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
20
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
22
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
23
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
25
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
25
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
27
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
28
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
29
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
30
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
31
31
  var ZoomControlBar = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n position: relative;\n cursor: pointer;\n z-index: 1;\n width: 100%;\n"])));
32
32
  var propTypes = {
33
33
  actions: _propTypes.PropTypes.instanceOf(Object),
@@ -37,7 +37,6 @@ var propTypes = {
37
37
  onBlur: _propTypes.PropTypes.func
38
38
  };
39
39
  var ZoomBar = /*#__PURE__*/function (_Component) {
40
- _inherits(ZoomBar, _Component);
41
40
  function ZoomBar(props, context) {
42
41
  var _this;
43
42
  _classCallCheck(this, ZoomBar);
@@ -45,17 +44,18 @@ var ZoomBar = /*#__PURE__*/function (_Component) {
45
44
  _this.state = {
46
45
  percentage: '0%'
47
46
  };
48
- _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));
49
- _this.handlePercentageChange = _this.handlePercentageChange.bind(_assertThisInitialized(_this));
50
- _this.getPercent = _this.getPercent.bind(_assertThisInitialized(_this));
51
- _this.stepForward = _this.stepForward.bind(_assertThisInitialized(_this));
52
- _this.stepBack = _this.stepBack.bind(_assertThisInitialized(_this));
53
- _this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_this));
54
- _this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
55
- _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
47
+ _this.handleMouseMove = _this.handleMouseMove.bind(_this);
48
+ _this.handlePercentageChange = _this.handlePercentageChange.bind(_this);
49
+ _this.getPercent = _this.getPercent.bind(_this);
50
+ _this.stepForward = _this.stepForward.bind(_this);
51
+ _this.stepBack = _this.stepBack.bind(_this);
52
+ _this.handleFocus = _this.handleFocus.bind(_this);
53
+ _this.handleBlur = _this.handleBlur.bind(_this);
54
+ _this.handleClick = _this.handleClick.bind(_this);
56
55
  return _this;
57
56
  }
58
- _createClass(ZoomBar, [{
57
+ _inherits(ZoomBar, _Component);
58
+ return _createClass(ZoomBar, [{
59
59
  key: "componentDidMount",
60
60
  value: function componentDidMount() {}
61
61
  }, {
@@ -148,7 +148,6 @@ var ZoomBar = /*#__PURE__*/function (_Component) {
148
148
  }, this.props))));
149
149
  }
150
150
  }]);
151
- return ZoomBar;
152
151
  }(_react.Component);
153
152
  ZoomBar.displayName = 'ZoomBar';
154
153
  ZoomBar.propTypes = propTypes;
@@ -9,8 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _colors = _interopRequireDefault(require("../../colors"));
11
11
  var _templateObject;
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
14
14
  var propTypes = {
15
15
  playerType: _propTypes.PropTypes.oneOf(['dubbing_review', 'clipping_default', 'default', 'tagging', 'qc', 'subtitle', 'snp_edit', 'archive', 'restore', 'clipping', 'storyboard', 'panel']),
16
16
  percentage: _propTypes.PropTypes.string,
package/index.js CHANGED
@@ -206,5 +206,5 @@ var videoActions = _interopRequireWildcard(require("./actions/video"));
206
206
  exports.videoActions = videoActions;
207
207
  var _reducers = require("./reducers");
208
208
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
209
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
210
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
209
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
210
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.0.63",
3
+ "version": "4.0.64",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,8 +9,8 @@ var _player = require("../actions/player");
9
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  var initialState = {
16
16
  count: 0,
@@ -10,8 +10,8 @@ var _player = require("../actions/player");
10
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
16
  var initialState = {
17
17
  currentSrc: null,
package/utils/browser.js CHANGED
@@ -5,25 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.IS_IPOD = exports.IS_IPHONE = exports.IS_IPAD = exports.IS_IOS = void 0;
7
7
  var USER_AGENT = typeof window !== 'undefined' && window.navigator ? window.navigator.userAgent : '';
8
- /*
9
- * const webkitVersionMap = (/AppleWebKit\/([\d.]+)/i).exec(USER_AGENT);
10
- * const appleWebkitVersion = webkitVersionMap ?
11
- * parseFloat(webkitVersionMap.pop()) : null;
8
+ /*
9
+ * const webkitVersionMap = (/AppleWebKit\/([\d.]+)/i).exec(USER_AGENT);
10
+ * const appleWebkitVersion = webkitVersionMap ?
11
+ * parseFloat(webkitVersionMap.pop()) : null;
12
12
  */
13
13
 
14
- /*
15
- * Device is an iPhone
16
- *
17
- * @type {Boolean}
18
- * @constant
19
- * @private
14
+ /*
15
+ * Device is an iPhone
16
+ *
17
+ * @type {Boolean}
18
+ * @constant
19
+ * @private
20
20
  */
21
21
  var IS_IPAD = exports.IS_IPAD = /iPad/i.test(USER_AGENT);
22
22
 
23
- /*
24
- * The Facebook app's UIWebView identifies as both an iPhone and iPad, so
25
- * to identify iPhones, we need to exclude iPads.
26
- * http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/
23
+ /*
24
+ * The Facebook app's UIWebView identifies as both an iPhone and iPad, so
25
+ * to identify iPhones, we need to exclude iPads.
26
+ * http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/
27
27
  */
28
28
  var IS_IPHONE = exports.IS_IPHONE = /iPhone/i.test(USER_AGENT) && !IS_IPAD;
29
29
  var IS_IPOD = exports.IS_IPOD = /iPod/i.test(USER_AGENT);
package/utils/dom.js CHANGED
@@ -8,14 +8,14 @@ exports.findElPosition = findElPosition;
8
8
  exports.getPointerPosition = getPointerPosition;
9
9
  exports.hasClass = hasClass;
10
10
  var _reactDom = require("react-dom");
11
- /**
12
- * Offset Left
13
- * getBoundingClientRect technique from
14
- * John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
15
- *
16
- * @function findElPosition
17
- * @param {Element} el Element from which to get offset
18
- * @return {Object}
11
+ /**
12
+ * Offset Left
13
+ * getBoundingClientRect technique from
14
+ * John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
15
+ *
16
+ * @function findElPosition
17
+ * @param {Element} el Element from which to get offset
18
+ * @return {Object}
19
19
  */
20
20
  function findElPosition(el) {
21
21
  var box;
@@ -44,16 +44,16 @@ function findElPosition(el) {
44
44
  };
45
45
  }
46
46
 
47
- /**
48
- * Get pointer position in element
49
- * Returns an object with x and y coordinates.
50
- * The base on the coordinates are the bottom left of the element.
51
- *
52
- * @function getPointerPosition
53
- * @param {Element} el Element on which to get the pointer position on
54
- * @param {Event} event Event object
55
- * @return {Object} This object will have x and y
56
- * coordinates corresponding to the mouse position
47
+ /**
48
+ * Get pointer position in element
49
+ * Returns an object with x and y coordinates.
50
+ * The base on the coordinates are the bottom left of the element.
51
+ *
52
+ * @function getPointerPosition
53
+ * @param {Element} el Element on which to get the pointer position on
54
+ * @param {Event} event Event object
55
+ * @return {Object} This object will have x and y
56
+ * coordinates corresponding to the mouse position
57
57
  */
58
58
  function getPointerPosition(el, event) {
59
59
  var position = {};
@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
12
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  var Fullscreen = /*#__PURE__*/function () {
14
14
  function Fullscreen() {
15
15
  _classCallCheck(this, Fullscreen);
16
16
  }
17
- _createClass(Fullscreen, [{
17
+ return _createClass(Fullscreen, [{
18
18
  key: "request",
19
19
  value: function request(elm) {
20
20
  if (elm.requestFullscreen) {
@@ -67,6 +67,5 @@ var Fullscreen = /*#__PURE__*/function () {
67
67
  document.removeEventListener('MSFullscreenChange', handler);
68
68
  }
69
69
  }]);
70
- return Fullscreen;
71
70
  }();
72
71
  var _default = exports["default"] = new Fullscreen();
package/utils/index.js CHANGED
@@ -13,32 +13,32 @@ exports.secondsToTime = secondsToTime;
13
13
  exports.throttle = throttle;
14
14
  exports.timeToSeconds = timeToSeconds;
15
15
  var _react = _interopRequireDefault(require("react"));
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
17
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
18
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
19
19
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
22
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
21
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
22
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
23
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24
24
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
25
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
26
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
28
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
29
- /**
30
- * @file seconds-to-time.js
31
- *
32
- * Format seconds as a time string, HH:MM:SS:FF
33
- * Supplying a guide (in seconds) will force a number of leading zeros
34
- * to cover the length of the guide
35
- *
36
- * @param {Number} _seconds Number of seconds to be turned into a string
37
- * @param {Number} frameRate Number of frames per second
38
- * @param {Number} initialTime Start time of a video
39
- * @return {String} Time formatted as H:MM:SS or M:SS
40
- * @private
41
- * @function secondsToTime
29
+ /**
30
+ * @file seconds-to-time.js
31
+ *
32
+ * Format seconds as a time string, HH:MM:SS:FF
33
+ * Supplying a guide (in seconds) will force a number of leading zeros
34
+ * to cover the length of the guide
35
+ *
36
+ * @param {Number} _seconds Number of seconds to be turned into a string
37
+ * @param {Number} frameRate Number of frames per second
38
+ * @param {Number} initialTime Start time of a video
39
+ * @return {String} Time formatted as H:MM:SS or M:SS
40
+ * @private
41
+ * @function secondsToTime
42
42
  */
43
43
  function secondsToTime() {
44
44
  var seconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -99,18 +99,18 @@ function timeToSeconds() {
99
99
  return seconds;
100
100
  }
101
101
 
102
- /**
103
- * @file format-time.js
104
- *
105
- * Format seconds as a time string, H:MM:SS or M:SS
106
- * Supplying a guide (in seconds) will force a number of leading zeros
107
- * to cover the length of the guide
108
- *
109
- * @param {Number} seconds Number of seconds to be turned into a string
110
- * @param {Number} guide Number (in seconds) to model the string after
111
- * @return {String} Time formatted as H:MM:SS or M:SS
112
- * @private
113
- * @function formatTime
102
+ /**
103
+ * @file format-time.js
104
+ *
105
+ * Format seconds as a time string, H:MM:SS or M:SS
106
+ * Supplying a guide (in seconds) will force a number of leading zeros
107
+ * to cover the length of the guide
108
+ *
109
+ * @param {Number} seconds Number of seconds to be turned into a string
110
+ * @param {Number} guide Number (in seconds) to model the string after
111
+ * @return {String} Time formatted as H:MM:SS or M:SS
112
+ * @private
113
+ * @function formatTime
114
114
  */
115
115
  function formatTime() {
116
116
  var seconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -123,9 +123,9 @@ function formatTime() {
123
123
 
124
124
  // handle invalid times
125
125
  if (isNaN(seconds) || seconds === Infinity) {
126
- /*
127
- * '-' is false for all relational operators (e.g. <, >=) so this setting
128
- * will add the minimum number of fields specified by the guide
126
+ /*
127
+ * '-' is false for all relational operators (e.g. <, >=) so this setting
128
+ * will add the minimum number of fields specified by the guide
129
129
  */
130
130
  s = '-';
131
131
  h = s;
@@ -135,9 +135,9 @@ function formatTime() {
135
135
  // Check if we need to show hours
136
136
  h = h > 0 || gh > 0 ? "".concat(h, ":") : '';
137
137
 
138
- /*
139
- * If hours are showing, we may need to add a leading zero.
140
- * Always show at least one digit of minutes.
138
+ /*
139
+ * If hours are showing, we may need to add a leading zero.
140
+ * Always show at least one digit of minutes.
141
141
  */
142
142
  m = "".concat((h || gm >= 10) && m < 10 ? "0".concat(m) : m, ":");
143
143
 
@@ -146,11 +146,11 @@ function formatTime() {
146
146
  return h + m + s;
147
147
  }
148
148
 
149
- /*
150
- * Check if the element belongs to a video element
151
- * only accept <source />, <track />,
152
- * <MyComponent isVideoChild />
153
- * elements
149
+ /*
150
+ * Check if the element belongs to a video element
151
+ * only accept <source />, <track />,
152
+ * <MyComponent isVideoChild />
153
+ * elements
154
154
  */
155
155
  function isVideoChild(c) {
156
156
  if (c.props && c.props.isVideoChild) {
@@ -175,10 +175,10 @@ var isTypeEqual = function isTypeEqual(component1, component2) {
175
175
  return false;
176
176
  };
177
177
 
178
- /*
179
- * merge default children
180
- * sort them by `order` property
181
- * filter them by `disabled` property
178
+ /*
179
+ * merge default children
180
+ * sort them by `order` property
181
+ * filter them by `disabled` property
182
182
  */
183
183
  function mergeAndSortChildren(defaultChildren, _children, _parentProps) {
184
184
  var defaultOrder = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
@@ -205,8 +205,8 @@ function mergeAndSortChildren(defaultChildren, _children, _parentProps) {
205
205
  });
206
206
  }
207
207
 
208
- /**
209
- * Temporary utility for generating the warnings
208
+ /**
209
+ * Temporary utility for generating the warnings
210
210
  */
211
211
  function deprecatedWarning(oldMethodCall, newMethodCall) {
212
212
  // eslint-disable-next-line no-console
@@ -227,10 +227,10 @@ function throttle(callback, limit) {
227
227
  }
228
228
  var mediaProperties = exports.mediaProperties = ['error', 'src', 'srcObject', 'currentSrc', 'crossOrigin', 'networkState', 'preload', 'buffered', 'readyState', 'seeking', 'currentTime', 'duration', 'paused', 'defaultPlaybackRate', 'playbackRate', 'played', 'seekable', 'ended', 'autoplay', 'loop', 'mediaGroup', 'controller', 'controls', 'volume', 'muted', 'defaultMuted', 'audioTracks', 'videoTracks', 'textTracks', 'width', 'height', 'videoWidth', 'videoHeight', 'poster'];
229
229
 
230
- /**
231
- *
232
- * @param {Number} currentTime current time of video
233
- * @returns adjusting the current time to the nearest frame
230
+ /**
231
+ *
232
+ * @param {Number} currentTime current time of video
233
+ * @returns adjusting the current time to the nearest frame
234
234
  */
235
235
  function handleAdjustingVideoAsPerFrame(currentTime) {
236
236
  var frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 25;