@desynova-digital/player 3.9.7 → 4.0.1
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/Player.js +945 -0
- package/control/AudioTracksMenuButton.js +91 -0
- package/control/AudioTracksMenuButton.jsx +80 -0
- package/control/ControlBar.js +303 -0
- package/control/ControlBar.jsx +264 -0
- package/control/CurrentTimeDisplay.js +34 -0
- package/control/CurrentTimeDisplay.jsx +35 -0
- package/control/DurationDisplay.js +38 -0
- package/control/DurationDisplay.jsx +48 -0
- package/control/ForwardBackwardControl.js +76 -0
- package/control/ForwardBackwardControl.jsx +79 -0
- package/control/FullscreenToggle.js +82 -0
- package/control/FullscreenToggle.jsx +83 -0
- package/control/MarkInControl.js +124 -0
- package/control/MarkInControl.jsx +109 -0
- package/control/MarkOutControl.js +137 -0
- package/control/MarkOutControl.jsx +131 -0
- package/control/MarkerBar.js +127 -0
- package/control/MarkerBar.jsx +107 -0
- package/control/MarkingControl.js +82 -0
- package/control/MarkingControl.jsx +143 -0
- package/control/MarkingDuration.js +44 -0
- package/control/MarkingPreview.js +49 -0
- package/control/MarkingPreview.jsx +60 -0
- package/control/PlayBackRateControl.js +106 -0
- package/control/PlayBackRateControl.jsx +106 -0
- package/control/PlayProgressBar.js +61 -0
- package/control/PlayProgressBar.jsx +92 -0
- package/control/PlayToggle.js +56 -0
- package/control/PlayToggle.jsx +57 -0
- package/control/PointersBar.js +231 -0
- package/control/PointersBar.jsx +286 -0
- package/control/ProgressControl.js +127 -0
- package/control/ProgressControl.jsx +155 -0
- package/control/SeekBar.js +204 -0
- package/control/SeekBar.jsx +229 -0
- package/control/SettingsMenuButton.js +63 -0
- package/control/SettingsMenuButton.jsx +69 -0
- package/control/Slider.js +274 -0
- package/control/Slider.jsx +243 -0
- package/control/Timeline.js +118 -0
- package/control/Timeline.jsx +131 -0
- package/control/VolumeBar.js +198 -0
- package/control/VolumeBar.jsx +174 -0
- package/control/VolumeLevel.js +61 -0
- package/control/VolumeLevel.jsx +66 -0
- package/control/VolumneMenuButton.js +112 -0
- package/control/VolumneMenuButton.jsx +111 -0
- package/header/Header.js +309 -0
- package/header/Header.jsx +479 -0
- package/index.js +9 -151
- package/media/AudioMeter.js +381 -0
- package/media/AudioMeter.jsx +411 -0
- package/media/SDOutline.js +82 -0
- package/media/SDOutline.jsx +90 -0
- package/media/Video.js +684 -0
- package/media/Video.jsx +714 -0
- package/package.json +5 -1
- package/playlist/Playlist.js +67 -0
- package/playlist/Playlist.jsx +91 -0
- package/playlist/index.js +13 -0
- package/shortcuts/Shortcut.js +662 -0
- package/utils/Menu.js +50 -0
- package/utils/Menu.jsx +105 -0
- package/{colors.js → utils/colors.js} +13 -13
- package/utils/dom.js +6 -16
- package/utils/index.js +52 -122
- package/Manager.js +0 -124
- package/actions/player.js +0 -375
- package/actions/video.js +0 -230
- package/components/AudioMeter.js +0 -414
- package/components/BigPlayButton.js +0 -110
- package/components/ImageViewer.js +0 -318
- package/components/MarkerBar.js +0 -138
- package/components/Menu.js +0 -77
- package/components/Player.js +0 -821
- package/components/PlayerHeader.js +0 -472
- package/components/Playlist.js +0 -133
- package/components/PointersBar.js +0 -299
- package/components/PosterImage.js +0 -61
- package/components/SDOutline.js +0 -68
- package/components/Shortcut.js +0 -621
- package/components/Slider.js +0 -317
- package/components/TagsBar.js +0 -100
- package/components/Video.js +0 -1431
- package/components/control-bar/AudioTracksMenuButton.js +0 -113
- package/components/control-bar/CameraButton.js +0 -88
- package/components/control-bar/CommentsButton.js +0 -216
- package/components/control-bar/ControlBar.js +0 -260
- package/components/control-bar/EditorControlMenuButton.js +0 -412
- package/components/control-bar/ForwardControl.js +0 -17
- package/components/control-bar/ForwardReplayControl.js +0 -122
- package/components/control-bar/FullscreenToggle.js +0 -101
- package/components/control-bar/PlayToggle.js +0 -98
- package/components/control-bar/ReplayControl.js +0 -17
- package/components/control-bar/SettingsMenuButton.js +0 -43
- package/components/control-bar/SubtitleLanguagesMenuButton.js +0 -174
- package/components/control-bar/VolumeMenuButton.js +0 -134
- package/components/control-bar/ZoomMenuButton.js +0 -116
- package/components/marking-controls/MarkInControl.js +0 -140
- package/components/marking-controls/MarkOutControl.js +0 -155
- package/components/marking-controls/MarkingAddButton.js +0 -94
- package/components/marking-controls/MarkingControl.js +0 -135
- package/components/marking-controls/MarkingDeleteButton.js +0 -84
- package/components/marking-controls/MarkingDuration.js +0 -77
- package/components/marking-controls/MarkingPreview.js +0 -86
- package/components/progress-bar/AudioWaveform.js +0 -144
- package/components/progress-bar/LoadProgressBar.js +0 -90
- package/components/progress-bar/MouseTimeDisplay.js +0 -53
- package/components/progress-bar/PlayProgressBar.js +0 -79
- package/components/progress-bar/ProgressControl.js +0 -222
- package/components/progress-bar/SeekBar.js +0 -261
- package/components/progress-bar/Timeline.js +0 -134
- package/components/settings-menu-control/PlaybackRateControl.js +0 -147
- package/components/settings-menu-control/SafeAreaControl.js +0 -92
- package/components/settings-menu-control/SettingsMenu.js +0 -68
- package/components/settings-menu-control/SubtitleControl.js +0 -1
- package/components/time-controls/CurrentTimeDisplay.js +0 -53
- package/components/time-controls/DurationDisplay.js +0 -51
- package/components/time-controls/TimeDivider.js +0 -41
- package/components/volume-control/VolumeBar.js +0 -216
- package/components/volume-control/VolumeControl.js +0 -35
- package/components/volume-control/VolumeLevel.js +0 -78
- package/components/zoom-control/ZoomBar.js +0 -189
- package/components/zoom-control/ZoomLevel.js +0 -68
- package/reducers/index.js +0 -23
- package/reducers/operation.js +0 -36
- package/reducers/player.js +0 -222
- package/utils/browser.js +0 -29
- package/utils/fullscreen.js +0 -73
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = require("prop-types");
|
|
10
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _components = require("@desynova-digital/components");
|
|
12
|
+
var _templateObject;
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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); }
|
|
25
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
29
|
+
/*
|
|
30
|
+
* import { colors } from '@desynova-digital/tokens';
|
|
31
|
+
* import colors from '../colors';
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
var propTypes = {
|
|
35
|
+
player: _propTypes.PropTypes.instanceOf(Object),
|
|
36
|
+
controlType: _propTypes.PropTypes.string
|
|
37
|
+
};
|
|
38
|
+
var defaultProps = {
|
|
39
|
+
player: {}
|
|
40
|
+
};
|
|
41
|
+
var MarkerBlock = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 30px;\n position: ", ";\n bottom: ", ";\n .marker {\n position: absolute;\n width: 2px;\n height: 20px;\n p {\n font-family: SFUIText-Medium;\n font-size: 10px;\n color: #ffffff;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n ", " {\n position: absolute;\n display: block;\n left: 50%;\n top: 10px;\n transform: translateX(-50%);\n }\n }\n"])), function (props) {
|
|
42
|
+
return props.controlType === 'advanced' && !props.isFullscreen ? 'relative' : 'absolute';
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return props.controlType === 'advanced' && !props.isFullscreen ? '0px' : '5px';
|
|
45
|
+
}, _components.Icon.Element);
|
|
46
|
+
var MarkerBar = /*#__PURE__*/function (_Component) {
|
|
47
|
+
_inherits(MarkerBar, _Component);
|
|
48
|
+
var _super = _createSuper(MarkerBar);
|
|
49
|
+
function MarkerBar(props) {
|
|
50
|
+
var _this;
|
|
51
|
+
_classCallCheck(this, MarkerBar);
|
|
52
|
+
_this = _super.call(this, props);
|
|
53
|
+
_this.getMarkerPosition = _this.getMarkerPosition.bind(_assertThisInitialized(_this));
|
|
54
|
+
_this.getTimePos = _this.getTimePos.bind(_assertThisInitialized(_this));
|
|
55
|
+
return _this;
|
|
56
|
+
}
|
|
57
|
+
_createClass(MarkerBar, [{
|
|
58
|
+
key: "getMarkerPosition",
|
|
59
|
+
value: function getMarkerPosition(timePos) {
|
|
60
|
+
var seconds = this.props.duration.seconds;
|
|
61
|
+
var percent = timePos / seconds;
|
|
62
|
+
return percent >= 1 ? 1 : percent;
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "getTimePos",
|
|
66
|
+
value: function getTimePos(markerPos) {
|
|
67
|
+
var leftMarker = document.getElementsByClassName('marker-left')[0];
|
|
68
|
+
var rightMarker = document.getElementsByClassName('marker-right')[0];
|
|
69
|
+
if (leftMarker && rightMarker) {
|
|
70
|
+
var leftOffset = leftMarker.offsetLeft;
|
|
71
|
+
var rightOffset = rightMarker.offsetLeft;
|
|
72
|
+
var offsetDiff = rightOffset - leftOffset;
|
|
73
|
+
var position = '50%';
|
|
74
|
+
if (offsetDiff < 61) {
|
|
75
|
+
switch (markerPos) {
|
|
76
|
+
case 'left':
|
|
77
|
+
position = '-20px';
|
|
78
|
+
break;
|
|
79
|
+
case 'right':
|
|
80
|
+
position = '20px';
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return position;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
key: "render",
|
|
89
|
+
value: function render() {
|
|
90
|
+
var _this$props = this.props,
|
|
91
|
+
isFullscreen = _this$props.isFullscreen,
|
|
92
|
+
controlType = _this$props.controlType,
|
|
93
|
+
playerSelectedMarker = _this$props.playerSelectedMarker;
|
|
94
|
+
var leftMarkerPosition = "".concat((this.getMarkerPosition(playerSelectedMarker.leftMarker) * 100).toFixed(2), "%");
|
|
95
|
+
var rightMarkerPosition = "".concat((this.getMarkerPosition(playerSelectedMarker.rightMarker) * 100).toFixed(2), "%");
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement(MarkerBlock, {
|
|
97
|
+
controlType: controlType,
|
|
98
|
+
isFullscreen: isFullscreen
|
|
99
|
+
}, playerSelectedMarker.leftMarker > -1 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "marker marker-left",
|
|
101
|
+
style: {
|
|
102
|
+
left: leftMarkerPosition
|
|
103
|
+
}
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.Icon, {
|
|
105
|
+
name: "marker",
|
|
106
|
+
width: 8,
|
|
107
|
+
height: 7,
|
|
108
|
+
color: "#00cec6"
|
|
109
|
+
})) : null, playerSelectedMarker.rightMarker > -1 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
className: "marker marker-right",
|
|
111
|
+
style: {
|
|
112
|
+
left: rightMarkerPosition
|
|
113
|
+
}
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.Icon, {
|
|
115
|
+
name: "marker",
|
|
116
|
+
width: 8,
|
|
117
|
+
height: 7,
|
|
118
|
+
color: "#00cec6"
|
|
119
|
+
})) : null);
|
|
120
|
+
}
|
|
121
|
+
}]);
|
|
122
|
+
return MarkerBar;
|
|
123
|
+
}(_react.Component);
|
|
124
|
+
exports["default"] = MarkerBar;
|
|
125
|
+
MarkerBar.propTypes = propTypes;
|
|
126
|
+
MarkerBar.defaultProps = defaultProps;
|
|
127
|
+
MarkerBar.displayName = 'MarkerBar';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { PropTypes } from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Icon } from '@desynova-digital/components';
|
|
5
|
+
/*
|
|
6
|
+
* import { colors } from '@desynova-digital/tokens';
|
|
7
|
+
* import colors from '../colors';
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const propTypes = {
|
|
11
|
+
player: PropTypes.instanceOf(Object),
|
|
12
|
+
controlType: PropTypes.string
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const defaultProps = {
|
|
16
|
+
player: {}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const MarkerBlock = styled.div`
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 30px;
|
|
22
|
+
position: ${(props) => (props.controlType === 'advanced' && !props.isFullscreen ? 'relative' : 'absolute')};
|
|
23
|
+
bottom: ${(props) => (props.controlType === 'advanced' && !props.isFullscreen ? '0px' : '5px')};
|
|
24
|
+
.marker {
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 2px;
|
|
27
|
+
height: 20px;
|
|
28
|
+
p {
|
|
29
|
+
font-family: SFUIText-Medium;
|
|
30
|
+
font-size: 10px;
|
|
31
|
+
color: #ffffff;
|
|
32
|
+
position: absolute;
|
|
33
|
+
left: 50%;
|
|
34
|
+
transform: translateX(-50%);
|
|
35
|
+
}
|
|
36
|
+
${Icon.Element} {
|
|
37
|
+
position: absolute;
|
|
38
|
+
display: block;
|
|
39
|
+
left: 50%;
|
|
40
|
+
top: 10px;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
export default class MarkerBar extends Component {
|
|
47
|
+
constructor(props) {
|
|
48
|
+
super(props);
|
|
49
|
+
this.getMarkerPosition = this.getMarkerPosition.bind(this);
|
|
50
|
+
this.getTimePos = this.getTimePos.bind(this);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
getMarkerPosition(timePos) {
|
|
54
|
+
const {
|
|
55
|
+
duration: { seconds }
|
|
56
|
+
} = this.props;
|
|
57
|
+
const percent = timePos / seconds;
|
|
58
|
+
return percent >= 1 ? 1 : percent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
getTimePos(markerPos) {
|
|
62
|
+
const leftMarker = document.getElementsByClassName('marker-left')[0];
|
|
63
|
+
const rightMarker = document.getElementsByClassName('marker-right')[0];
|
|
64
|
+
if (leftMarker && rightMarker) {
|
|
65
|
+
const leftOffset = leftMarker.offsetLeft;
|
|
66
|
+
const rightOffset = rightMarker.offsetLeft;
|
|
67
|
+
const offsetDiff = rightOffset - leftOffset;
|
|
68
|
+
let position = '50%';
|
|
69
|
+
if (offsetDiff < 61) {
|
|
70
|
+
switch (markerPos) {
|
|
71
|
+
case 'left':
|
|
72
|
+
position = '-20px';
|
|
73
|
+
break;
|
|
74
|
+
case 'right':
|
|
75
|
+
position = '20px';
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return position;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
render() {
|
|
84
|
+
const { isFullscreen, controlType, playerSelectedMarker } = this.props;
|
|
85
|
+
const leftMarkerPosition = `${(this.getMarkerPosition(playerSelectedMarker.leftMarker) * 100).toFixed(2)}%`;
|
|
86
|
+
const rightMarkerPosition = `${(this.getMarkerPosition(playerSelectedMarker.rightMarker) * 100).toFixed(2)}%`;
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<MarkerBlock controlType={controlType} isFullscreen={isFullscreen}>
|
|
90
|
+
{playerSelectedMarker.leftMarker > -1 ? (
|
|
91
|
+
<div className="marker marker-left" style={{ left: leftMarkerPosition }}>
|
|
92
|
+
<Icon name="marker" width={8} height={7} color="#00cec6" />
|
|
93
|
+
</div>
|
|
94
|
+
) : null}
|
|
95
|
+
{playerSelectedMarker.rightMarker > -1 ? (
|
|
96
|
+
<div className="marker marker-right" style={{ left: rightMarkerPosition }}>
|
|
97
|
+
<Icon name="marker" width={8} height={7} color="#00cec6" />
|
|
98
|
+
</div>
|
|
99
|
+
) : null}
|
|
100
|
+
</MarkerBlock>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
MarkerBar.propTypes = propTypes;
|
|
106
|
+
MarkerBar.defaultProps = defaultProps;
|
|
107
|
+
MarkerBar.displayName = 'MarkerBar';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = MarkingControl;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _propTypes = require("prop-types");
|
|
10
|
+
var _MarkInControl = _interopRequireDefault(require("./MarkInControl"));
|
|
11
|
+
var _MarkOutControl = _interopRequireDefault(require("./MarkOutControl"));
|
|
12
|
+
var _MarkingPreview = _interopRequireDefault(require("./MarkingPreview"));
|
|
13
|
+
var _MarkingDuration = _interopRequireDefault(require("./MarkingDuration"));
|
|
14
|
+
var _templateObject;
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
+
var propTypes = {
|
|
18
|
+
frameRate: _propTypes.PropTypes.number,
|
|
19
|
+
player: _propTypes.PropTypes.instanceOf(Object),
|
|
20
|
+
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
21
|
+
markers: _propTypes.PropTypes.instanceOf(Object),
|
|
22
|
+
controlType: _propTypes.PropTypes.string,
|
|
23
|
+
playerType: _propTypes.PropTypes.oneOf(['dubbing_review', 'clipping_default', 'default', 'tagging', 'qc', 'subtitle', 'snp_edit', 'archive', 'restore', 'clipping', 'storyboard', 'panel']),
|
|
24
|
+
onAddMarker: _propTypes.PropTypes.func,
|
|
25
|
+
onMarkerSelect: _propTypes.PropTypes.func,
|
|
26
|
+
onDeleteMarker: _propTypes.PropTypes.func,
|
|
27
|
+
initialTime: _propTypes.PropTypes.number,
|
|
28
|
+
allowMarkerOverlap: _propTypes.PropTypes.bool
|
|
29
|
+
};
|
|
30
|
+
var defaultProps = {
|
|
31
|
+
frameRate: 0,
|
|
32
|
+
player: {},
|
|
33
|
+
actions: {}
|
|
34
|
+
};
|
|
35
|
+
var MarkingBlock = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-width: 300px;\n margin: 0 15px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"])));
|
|
36
|
+
function MarkingControl(_ref) {
|
|
37
|
+
var player = _ref.player,
|
|
38
|
+
frameRate = _ref.frameRate,
|
|
39
|
+
initialTime = _ref.initialTime,
|
|
40
|
+
actionClick = _ref.actionClick,
|
|
41
|
+
onAddMarker = _ref.onAddMarker,
|
|
42
|
+
onMarkerSelect = _ref.onMarkerSelect,
|
|
43
|
+
onDeleteMarker = _ref.onDeleteMarker,
|
|
44
|
+
markers = _ref.markers,
|
|
45
|
+
controlType = _ref.controlType,
|
|
46
|
+
playerType = _ref.playerType,
|
|
47
|
+
allowMarkerOverlap = _ref.allowMarkerOverlap,
|
|
48
|
+
playerReadOnlyMode = _ref.playerReadOnlyMode,
|
|
49
|
+
_ref$disablePlayerAct = _ref.disablePlayerActions,
|
|
50
|
+
disablePlayerActions = _ref$disablePlayerAct === void 0 ? [] : _ref$disablePlayerAct,
|
|
51
|
+
playerSelectedMarker = _ref.playerSelectedMarker,
|
|
52
|
+
currentTime = _ref.currentTime;
|
|
53
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, playerType !== 'panel' && playerType !== 'default' && playerType !== 'clipping_default' ? /*#__PURE__*/_react["default"].createElement(MarkingBlock, null, (!(playerSelectedMarker.leftMarker > -1) || !(playerSelectedMarker.rightMarker > -1)) && playerType !== 'panel' && playerType !== 'default' && playerType !== 'clipping_default' && !playerReadOnlyMode && !disablePlayerActions.includes('marking_controls') ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_MarkInControl["default"], {
|
|
54
|
+
leftMarker: playerSelectedMarker.leftMarker,
|
|
55
|
+
currentTime: currentTime,
|
|
56
|
+
actionClick: actionClick,
|
|
57
|
+
markers: markers,
|
|
58
|
+
allowMarkerOverlap: allowMarkerOverlap,
|
|
59
|
+
onAddMarker: onAddMarker
|
|
60
|
+
}), /*#__PURE__*/_react["default"].createElement(_MarkOutControl["default"], {
|
|
61
|
+
leftMarker: playerSelectedMarker.leftMarker,
|
|
62
|
+
currentTime: currentTime,
|
|
63
|
+
rightMarker: playerSelectedMarker.rightMarker,
|
|
64
|
+
actionClick: actionClick,
|
|
65
|
+
markers: markers,
|
|
66
|
+
controlType: controlType,
|
|
67
|
+
onMarkerSelect: onMarkerSelect,
|
|
68
|
+
allowMarkerOverlap: allowMarkerOverlap,
|
|
69
|
+
onAddMarker: onAddMarker
|
|
70
|
+
})) : null, playerSelectedMarker.leftMarker > -1 || playerSelectedMarker.rightMarker > -1 ? /*#__PURE__*/_react["default"].createElement(_MarkingDuration["default"], {
|
|
71
|
+
leftMarker: playerSelectedMarker.leftMarker,
|
|
72
|
+
rightMarker: playerSelectedMarker.rightMarker,
|
|
73
|
+
frameRate: frameRate,
|
|
74
|
+
initialTime: initialTime
|
|
75
|
+
}) : null, playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 ? /*#__PURE__*/_react["default"].createElement(_MarkingPreview["default"], {
|
|
76
|
+
actionClick: actionClick,
|
|
77
|
+
leftMarker: playerSelectedMarker.leftMarker
|
|
78
|
+
}) : null) : null);
|
|
79
|
+
}
|
|
80
|
+
MarkingControl.propTypes = propTypes;
|
|
81
|
+
MarkingControl.defaultProps = defaultProps;
|
|
82
|
+
MarkingControl.displayName = 'MarkingControl';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { PropTypes } from 'prop-types';
|
|
4
|
+
|
|
5
|
+
import MarkInControl from './MarkInControl';
|
|
6
|
+
import MarkOutControl from './MarkOutControl';
|
|
7
|
+
// import MarkingAddButton from './MarkingAddButton';
|
|
8
|
+
// import MarkingDeleteButton from './MarkingDeleteButton';
|
|
9
|
+
import MarkingPreviewButton from './MarkingPreview';
|
|
10
|
+
import MarkingDuration from './MarkingDuration';
|
|
11
|
+
|
|
12
|
+
const propTypes = {
|
|
13
|
+
frameRate: PropTypes.number,
|
|
14
|
+
player: PropTypes.instanceOf(Object),
|
|
15
|
+
actions: PropTypes.instanceOf(Object),
|
|
16
|
+
markers: PropTypes.instanceOf(Object),
|
|
17
|
+
controlType: PropTypes.string,
|
|
18
|
+
playerType: PropTypes.oneOf([
|
|
19
|
+
'dubbing_review',
|
|
20
|
+
'clipping_default',
|
|
21
|
+
'default',
|
|
22
|
+
'tagging',
|
|
23
|
+
'qc',
|
|
24
|
+
'subtitle',
|
|
25
|
+
'snp_edit',
|
|
26
|
+
'archive',
|
|
27
|
+
'restore',
|
|
28
|
+
'clipping',
|
|
29
|
+
'storyboard',
|
|
30
|
+
'panel'
|
|
31
|
+
]),
|
|
32
|
+
onAddMarker: PropTypes.func,
|
|
33
|
+
onMarkerSelect: PropTypes.func,
|
|
34
|
+
onDeleteMarker: PropTypes.func,
|
|
35
|
+
initialTime: PropTypes.number,
|
|
36
|
+
allowMarkerOverlap: PropTypes.bool
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const defaultProps = {
|
|
40
|
+
frameRate: 0,
|
|
41
|
+
player: {},
|
|
42
|
+
actions: {}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const MarkingBlock = styled.div`
|
|
46
|
+
min-width: 300px;
|
|
47
|
+
margin: 0 15px;
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
align-items: center;
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export default function MarkingControl({
|
|
54
|
+
player,
|
|
55
|
+
frameRate,
|
|
56
|
+
initialTime,
|
|
57
|
+
actionClick,
|
|
58
|
+
onAddMarker,
|
|
59
|
+
onMarkerSelect,
|
|
60
|
+
onDeleteMarker,
|
|
61
|
+
markers,
|
|
62
|
+
controlType,
|
|
63
|
+
playerType,
|
|
64
|
+
allowMarkerOverlap,
|
|
65
|
+
playerReadOnlyMode,
|
|
66
|
+
disablePlayerActions = [],
|
|
67
|
+
playerSelectedMarker,
|
|
68
|
+
currentTime
|
|
69
|
+
}) {
|
|
70
|
+
return (
|
|
71
|
+
<React.Fragment>
|
|
72
|
+
{playerType !== 'panel' && playerType !== 'default' && playerType !== 'clipping_default' ? (
|
|
73
|
+
<MarkingBlock>
|
|
74
|
+
{(!(playerSelectedMarker.leftMarker > -1) || !(playerSelectedMarker.rightMarker > -1)) &&
|
|
75
|
+
playerType !== 'panel' &&
|
|
76
|
+
playerType !== 'default' &&
|
|
77
|
+
playerType !== 'clipping_default' &&
|
|
78
|
+
!playerReadOnlyMode &&
|
|
79
|
+
!disablePlayerActions.includes('marking_controls') ? (
|
|
80
|
+
<React.Fragment>
|
|
81
|
+
<MarkInControl
|
|
82
|
+
leftMarker={playerSelectedMarker.leftMarker}
|
|
83
|
+
currentTime={currentTime}
|
|
84
|
+
actionClick={actionClick}
|
|
85
|
+
markers={markers}
|
|
86
|
+
allowMarkerOverlap={allowMarkerOverlap}
|
|
87
|
+
onAddMarker={onAddMarker}
|
|
88
|
+
/>
|
|
89
|
+
<MarkOutControl
|
|
90
|
+
leftMarker={playerSelectedMarker.leftMarker}
|
|
91
|
+
currentTime={currentTime}
|
|
92
|
+
rightMarker={playerSelectedMarker.rightMarker}
|
|
93
|
+
actionClick={actionClick}
|
|
94
|
+
markers={markers}
|
|
95
|
+
controlType={controlType}
|
|
96
|
+
onMarkerSelect={onMarkerSelect}
|
|
97
|
+
allowMarkerOverlap={allowMarkerOverlap}
|
|
98
|
+
onAddMarker={onAddMarker}
|
|
99
|
+
/>
|
|
100
|
+
</React.Fragment>
|
|
101
|
+
) : null}
|
|
102
|
+
{playerSelectedMarker.leftMarker > -1 || playerSelectedMarker.rightMarker > -1 ? (
|
|
103
|
+
<MarkingDuration
|
|
104
|
+
leftMarker={playerSelectedMarker.leftMarker}
|
|
105
|
+
rightMarker={playerSelectedMarker.rightMarker}
|
|
106
|
+
frameRate={frameRate}
|
|
107
|
+
initialTime={initialTime}
|
|
108
|
+
/>
|
|
109
|
+
) : null}
|
|
110
|
+
{/* //Commented for CN-632.
|
|
111
|
+
{player.leftMarker > -1 && player.rightMarker > -1 ? (
|
|
112
|
+
<React.Fragment>
|
|
113
|
+
{player.markerType === 'create' &&
|
|
114
|
+
controlType === 'advanced' &&
|
|
115
|
+
player.markerCreate ? (
|
|
116
|
+
<MarkingAddButton
|
|
117
|
+
leftMarker={player.leftMarker}
|
|
118
|
+
rightMarker={player.rightMarker}
|
|
119
|
+
onAddMarker={onAddMarker}
|
|
120
|
+
actions={actions}
|
|
121
|
+
/>
|
|
122
|
+
) : null}
|
|
123
|
+
</React.Fragment>
|
|
124
|
+
) : null} */}
|
|
125
|
+
{playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 ? (
|
|
126
|
+
<MarkingPreviewButton actionClick={actionClick} leftMarker={playerSelectedMarker.leftMarker} />
|
|
127
|
+
) : null}
|
|
128
|
+
{/* {(playerSelectedMarker.leftMarker > -1 || playerSelectedMarker.rightMarker > -1) &&
|
|
129
|
+
playerSelectedMarker.markerType === 'create' &&
|
|
130
|
+
playerSelectedMarker.markerCreate &&
|
|
131
|
+
!playerReadOnlyMode &&
|
|
132
|
+
!disablePlayerActions.includes('marking_controls') ? (
|
|
133
|
+
<MarkingDeleteButton actions={actions} onDeleteMarker={onDeleteMarker} />
|
|
134
|
+
) : null} */}
|
|
135
|
+
</MarkingBlock>
|
|
136
|
+
) : null}
|
|
137
|
+
</React.Fragment>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
MarkingControl.propTypes = propTypes;
|
|
142
|
+
MarkingControl.defaultProps = defaultProps;
|
|
143
|
+
MarkingControl.displayName = 'MarkingControl';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = MarkingDuration;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _propTypes = require("prop-types");
|
|
10
|
+
var _components = require("@desynova-digital/components");
|
|
11
|
+
var _utils = require("../utils");
|
|
12
|
+
var _templateObject;
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
+
var propTypes = {
|
|
16
|
+
leftMarker: _propTypes.PropTypes.number,
|
|
17
|
+
rightMarker: _propTypes.PropTypes.number,
|
|
18
|
+
frameRate: _propTypes.PropTypes.number,
|
|
19
|
+
initialTime: _propTypes.PropTypes.number
|
|
20
|
+
};
|
|
21
|
+
var defaultProps = {
|
|
22
|
+
leftMarker: -1,
|
|
23
|
+
rightMarker: -1,
|
|
24
|
+
frameRate: 0
|
|
25
|
+
};
|
|
26
|
+
var MarkingDurationBlock = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 100px;\n background: rgba(255, 255, 255, 0.3);\n padding: 5px;\n ", " {\n margin: 0 10px;\n box-shadow: 0 0 14px 1px rgba(0, 206, 198, 0.5);\n background: rgba(0, 206, 198, 0.2);\n svg path {\n fill: #00cec6;\n }\n }\n p {\n font-family: SFUIText-Medium;\n font-size: 9px;\n color: #ffffff;\n }\n"])), _components.Icon.Element);
|
|
27
|
+
function MarkingDuration(_ref) {
|
|
28
|
+
var leftMarker = _ref.leftMarker,
|
|
29
|
+
rightMarker = _ref.rightMarker,
|
|
30
|
+
initialTime = _ref.initialTime,
|
|
31
|
+
frameRate = _ref.frameRate;
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, leftMarker > -1 || rightMarker > -1 ? /*#__PURE__*/_react["default"].createElement(MarkingDurationBlock, null, /*#__PURE__*/_react["default"].createElement(_components.Icon, {
|
|
33
|
+
name: "in-marker",
|
|
34
|
+
width: 6,
|
|
35
|
+
height: 18
|
|
36
|
+
}), leftMarker > -1 ? /*#__PURE__*/_react["default"].createElement("p", null, (0, _utils.secondsToTime)(leftMarker, frameRate, initialTime)) : null, leftMarker > -1 && rightMarker > -1 ? /*#__PURE__*/_react["default"].createElement("p", null, '{', " Dur: ", (0, _utils.secondsToTime)(rightMarker - leftMarker, frameRate), '}', " ", (0, _utils.secondsToTime)(rightMarker, frameRate, initialTime)) : null, /*#__PURE__*/_react["default"].createElement(_components.Icon, {
|
|
37
|
+
name: "out-marker",
|
|
38
|
+
width: 6,
|
|
39
|
+
height: 18
|
|
40
|
+
})) : null);
|
|
41
|
+
}
|
|
42
|
+
MarkingDuration.propTypes = propTypes;
|
|
43
|
+
MarkingDuration.defaultProps = defaultProps;
|
|
44
|
+
MarkingDuration.displayName = 'MarkingDuration';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _propTypes = require("prop-types");
|
|
10
|
+
var _components = require("@desynova-digital/components");
|
|
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) } })); }
|
|
14
|
+
var propTypes = {
|
|
15
|
+
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
16
|
+
leftMarker: _propTypes.PropTypes.number
|
|
17
|
+
};
|
|
18
|
+
var PreviewButton = (0, _styledComponents["default"])(_components.Button)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: transparent;\n border-color: #afb2ba;\n border-width: 1px;\n margin: 0 5px 0 5px;\n &:hover,\n &:focus {\n background: transparent;\n border-color: #afb2ba;\n }\n\n ", " {\n svg path {\n fill: #afb2ba;\n }\n }\n"])), _components.Icon.Element);
|
|
19
|
+
var MarkingPreview = function MarkingPreview(_ref) {
|
|
20
|
+
var actionClick = _ref.actionClick,
|
|
21
|
+
leftMarker = _ref.leftMarker;
|
|
22
|
+
var handleClick = function handleClick() {
|
|
23
|
+
actionClick({
|
|
24
|
+
action: 'seek',
|
|
25
|
+
value: parseFloat(leftMarker)
|
|
26
|
+
});
|
|
27
|
+
actionClick({
|
|
28
|
+
action: 'play'
|
|
29
|
+
});
|
|
30
|
+
actionClick({
|
|
31
|
+
action: 'handle_video_preview',
|
|
32
|
+
value: true
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
return /*#__PURE__*/_react["default"].createElement(PreviewButton, {
|
|
36
|
+
display: "rounded",
|
|
37
|
+
appearance: "cta",
|
|
38
|
+
icon: "play",
|
|
39
|
+
iconWidth: 6,
|
|
40
|
+
iconHeight: 8,
|
|
41
|
+
width: 20,
|
|
42
|
+
height: 20,
|
|
43
|
+
onClick: handleClick
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var _default = MarkingPreview;
|
|
47
|
+
exports["default"] = _default;
|
|
48
|
+
MarkingPreview.propTypes = propTypes;
|
|
49
|
+
MarkingPreview.displayName = 'MarkingPreview';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { PropTypes } from 'prop-types';
|
|
4
|
+
import { Button, Icon } from '@desynova-digital/components';
|
|
5
|
+
|
|
6
|
+
const propTypes = {
|
|
7
|
+
actions: PropTypes.instanceOf(Object),
|
|
8
|
+
leftMarker: PropTypes.number
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const PreviewButton = styled(Button)`
|
|
12
|
+
background: transparent;
|
|
13
|
+
border-color: #afb2ba;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
margin: 0 5px 0 5px;
|
|
16
|
+
&:hover,
|
|
17
|
+
&:focus {
|
|
18
|
+
background: transparent;
|
|
19
|
+
border-color: #afb2ba;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${Icon.Element} {
|
|
23
|
+
svg path {
|
|
24
|
+
fill: #afb2ba;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
const MarkingPreview = ({ actionClick, leftMarker }) => {
|
|
30
|
+
const handleClick = () => {
|
|
31
|
+
actionClick({
|
|
32
|
+
action: 'seek',
|
|
33
|
+
value: parseFloat(leftMarker)
|
|
34
|
+
});
|
|
35
|
+
actionClick({
|
|
36
|
+
action: 'play'
|
|
37
|
+
});
|
|
38
|
+
actionClick({
|
|
39
|
+
action: 'handle_video_preview',
|
|
40
|
+
value: true
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<PreviewButton
|
|
46
|
+
display="rounded"
|
|
47
|
+
appearance="cta"
|
|
48
|
+
icon="play"
|
|
49
|
+
iconWidth={6}
|
|
50
|
+
iconHeight={8}
|
|
51
|
+
width={20}
|
|
52
|
+
height={20}
|
|
53
|
+
onClick={handleClick}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default MarkingPreview;
|
|
59
|
+
MarkingPreview.propTypes = propTypes;
|
|
60
|
+
MarkingPreview.displayName = 'MarkingPreview';
|