@desynova-digital/player 3.7.6 → 3.7.7

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 (68) hide show
  1. package/Manager.js +0 -0
  2. package/actions/player.js +0 -0
  3. package/actions/video.js +0 -0
  4. package/colors.js +0 -0
  5. package/components/AudioMeter.js +0 -0
  6. package/components/BigPlayButton.js +0 -0
  7. package/components/ImageViewer.js +0 -0
  8. package/components/MarkerBar.js +0 -0
  9. package/components/Menu.js +0 -0
  10. package/components/Player.js +0 -0
  11. package/components/PlayerHeader.js +0 -0
  12. package/components/Playlist.js +0 -0
  13. package/components/PointersBar.js +0 -0
  14. package/components/PosterImage.js +0 -0
  15. package/components/SDOutline.js +0 -0
  16. package/components/Shortcut.js +0 -0
  17. package/components/Slider.js +0 -0
  18. package/components/TagsBar.js +0 -0
  19. package/components/Video.js +0 -0
  20. package/components/control-bar/AudioTracksMenuButton.js +0 -0
  21. package/components/control-bar/CameraButton.js +0 -0
  22. package/components/control-bar/CommentsButton.js +0 -0
  23. package/components/control-bar/ControlBar.js +0 -0
  24. package/components/control-bar/EditorControlMenuButton.js +0 -0
  25. package/components/control-bar/ForwardControl.js +0 -0
  26. package/components/control-bar/ForwardReplayControl.js +0 -0
  27. package/components/control-bar/FullscreenToggle.js +0 -0
  28. package/components/control-bar/PlayToggle.js +0 -0
  29. package/components/control-bar/ReplayControl.js +0 -0
  30. package/components/control-bar/SettingsMenuButton.js +0 -0
  31. package/components/control-bar/SubtitleLanguagesMenuButton.js +43 -2
  32. package/components/control-bar/VolumeMenuButton.js +0 -0
  33. package/components/control-bar/ZoomMenuButton.js +0 -0
  34. package/components/marking-controls/MarkInControl.js +0 -0
  35. package/components/marking-controls/MarkOutControl.js +0 -0
  36. package/components/marking-controls/MarkingAddButton.js +0 -0
  37. package/components/marking-controls/MarkingControl.js +0 -0
  38. package/components/marking-controls/MarkingDeleteButton.js +0 -0
  39. package/components/marking-controls/MarkingDuration.js +0 -0
  40. package/components/marking-controls/MarkingPreview.js +0 -0
  41. package/components/progress-bar/AudioWaveform.js +0 -0
  42. package/components/progress-bar/LoadProgressBar.js +0 -0
  43. package/components/progress-bar/MouseTimeDisplay.js +0 -0
  44. package/components/progress-bar/PlayProgressBar.js +0 -0
  45. package/components/progress-bar/ProgressControl.js +0 -0
  46. package/components/progress-bar/SeekBar.js +0 -0
  47. package/components/progress-bar/Timeline.js +0 -0
  48. package/components/settings-menu-control/PlaybackRateControl.js +0 -0
  49. package/components/settings-menu-control/SafeAreaControl.js +0 -0
  50. package/components/settings-menu-control/SettingsMenu.js +0 -0
  51. package/components/settings-menu-control/SubtitleControl.js +0 -0
  52. package/components/time-controls/CurrentTimeDisplay.js +0 -0
  53. package/components/time-controls/DurationDisplay.js +0 -0
  54. package/components/time-controls/TimeDivider.js +0 -0
  55. package/components/volume-control/VolumeBar.js +0 -0
  56. package/components/volume-control/VolumeControl.js +0 -0
  57. package/components/volume-control/VolumeLevel.js +0 -0
  58. package/components/zoom-control/ZoomBar.js +0 -0
  59. package/components/zoom-control/ZoomLevel.js +0 -0
  60. package/index.js +0 -0
  61. package/package.json +1 -1
  62. package/reducers/index.js +0 -0
  63. package/reducers/operation.js +0 -0
  64. package/reducers/player.js +0 -0
  65. package/utils/browser.js +0 -0
  66. package/utils/dom.js +0 -0
  67. package/utils/fullscreen.js +0 -0
  68. package/utils/index.js +0 -0
package/Manager.js CHANGED
File without changes
package/actions/player.js CHANGED
File without changes
package/actions/video.js CHANGED
File without changes
package/colors.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -20,6 +20,8 @@ var _Menu = require('../Menu');
20
20
 
21
21
  var _Menu2 = _interopRequireDefault(_Menu);
22
22
 
23
+ var _components = require('@desynova-digital/components');
24
+
23
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
26
 
25
27
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -33,10 +35,25 @@ var propTypes = {
33
35
  player: _propTypes.PropTypes.instanceOf(Object)
34
36
  };
35
37
 
38
+ var IconButtonStyles = (0, _styledComponents2.default)(_components.Button).withConfig({
39
+ displayName: 'SubtitleLanguagesMenuButton__IconButtonStyles',
40
+ componentId: 'sc-1g8hfwo-0'
41
+ })(['border:none;pointer-events:stroke;background-color:', ';svg{path{fill:', ' !important;}}&:hover,&:focus,&:active{border:none;border-radius:', ';svg{path{fill:', ' !important;}}}'], function (props) {
42
+ return props.backgroundColor;
43
+ }, function (_ref) {
44
+ var svgFillDefault = _ref.svgFillDefault;
45
+ return svgFillDefault;
46
+ }, function (props) {
47
+ return props.borderRadius ? props.borderRadius : 'none';
48
+ }, function (_ref2) {
49
+ var hoverColor = _ref2.hoverColor;
50
+ return hoverColor;
51
+ });
52
+
36
53
  var SubtitleMenuBlock = (0, _styledComponents2.default)('div').withConfig({
37
54
  displayName: 'SubtitleLanguagesMenuButton__SubtitleMenuBlock',
38
- componentId: 'sc-1g8hfwo-0'
39
- })(['text-align:left;background:transparent;cursor:pointer;border-bottom:1px solid #eeeeee;&:last-child{border:none;}&:hover,&:focus{background:rgba(0,206,198,0.1);}p{padding 15px;font-family:SFUIText-Medium;font-size:12px;white-space:nowrap;}']);
55
+ componentId: 'sc-1g8hfwo-1'
56
+ })(['display:flex;justify-content:space-between;text-align:left;background:transparent;cursor:pointer;border-bottom:1px solid #eeeeee;&:last-child{border:none;}&:hover,&:focus{background:rgba(0,206,198,0.1);}p{padding 15px;font-family:SFUIText-Medium;font-size:12px;white-space:nowrap;}.icon-wrapper{padding:9px;}.tooltip-container{.tooltip-block{white-space:nowrap;padding:0px;left:-15px;:after{right:0px;left:auto;}p{text-transform:capitalize;font-size:10px;padding:12px;}}}']);
40
57
 
41
58
  var SubtitleLanguagesMenuButton = function (_Component) {
42
59
  _inherits(SubtitleLanguagesMenuButton, _Component);
@@ -116,6 +133,30 @@ var SubtitleLanguagesMenuButton = function (_Component) {
116
133
  style: activeLanguage === subtitle.subtitle_info_id ? { color: '#00cec6', pointerEvents: 'none' } : { color: '#333333' }
117
134
  },
118
135
  subtitle.title
136
+ ),
137
+ subtitle.srt_file_name && _react2.default.createElement(
138
+ 'div',
139
+ { className: 'icon-wrapper' },
140
+ _react2.default.createElement(IconButtonStyles, {
141
+ display: 'rounded',
142
+ appearance: 'cta',
143
+ icon: 'download',
144
+ label: 'Download',
145
+ iconWidth: 14,
146
+ iconHeight: 14,
147
+ width: 22,
148
+ height: 22,
149
+ hoverColor: '#FFFFFF',
150
+ hoverBackgroundColor: '#00cec6',
151
+ backgroundColor: activeLanguage === subtitle.subtitle_info_id ? '#00cec6' : 'rgb(51,51,51,0.1)',
152
+ svgFillDefault: activeLanguage === subtitle.subtitle_info_id ? '#FFFFFF' : 'rgb(51,51,51)',
153
+ borderRadius: '50%',
154
+ onClick: function onClick(e) {
155
+ console.log("icon clicked1");
156
+ window.open(subtitle.srt_file_name, '_blank');
157
+ e.stopPropagation();
158
+ }
159
+ })
119
160
  )
120
161
  );
121
162
  })
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.7.6",
3
+ "version": "3.7.7",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/reducers/index.js CHANGED
File without changes
File without changes
File without changes
package/utils/browser.js CHANGED
File without changes
package/utils/dom.js CHANGED
File without changes
File without changes
package/utils/index.js CHANGED
File without changes