@uncinc/uncinc-react-kitchen-sink 2.20.1 → 2.20.2
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/dist/components/Cookie/style.scss +1 -0
- package/dist/components/GoogleConsentCookieBanner/style.scss +2 -2
- package/dist/components/MediaPlayer/index.js +30 -4
- package/dist/components/MediaPlayer/index.lazy.d.ts +0 -2
- package/dist/components/MediaPlayer/index.lazy.js +0 -3
- package/dist/components/MediaPlayer/index.local.lazy.d.ts +4 -0
- package/dist/components/MediaPlayer/index.local.lazy.js +6 -0
- package/dist/components/MediaPlayer/index.remote.lazy.d.ts +6 -0
- package/dist/components/MediaPlayer/index.remote.lazy.js +10 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
left: 50%;
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-height: 100%;
|
|
21
|
+
transform: translateX(-50%) translateY(110vh);
|
|
21
22
|
|
|
22
23
|
&__content {
|
|
23
24
|
max-height: 80vh;
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
font-size: inherit;
|
|
64
65
|
background: none;
|
|
65
66
|
border: 0;
|
|
66
|
-
|
|
67
|
+
|
|
67
68
|
cursor: pointer;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -102,7 +103,6 @@
|
|
|
102
103
|
|
|
103
104
|
&--prompting,
|
|
104
105
|
&--editing {
|
|
105
|
-
transform: translateX(-50%) translateY(0);
|
|
106
106
|
animation: slide 1s forwards;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
var _excluded = ["type"];
|
|
2
|
+
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); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1
5
|
import React, { lazy, Suspense } from 'react';
|
|
2
|
-
var
|
|
3
|
-
return import('./index.lazy');
|
|
6
|
+
var MediaPlayerRemoteLazy = /*#__PURE__*/lazy(function () {
|
|
7
|
+
return import('./index.remote.lazy');
|
|
4
8
|
});
|
|
5
|
-
var
|
|
6
|
-
return
|
|
9
|
+
var MediaPlayerLocalLazy = /*#__PURE__*/lazy(function () {
|
|
10
|
+
return import('./index.local.lazy');
|
|
11
|
+
});
|
|
12
|
+
var MediaPlayer = function MediaPlayer(_ref) {
|
|
13
|
+
var type = _ref.type,
|
|
14
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
switch (type) {
|
|
16
|
+
// Remote types.
|
|
17
|
+
case 'video/youtube':
|
|
18
|
+
case 'video/vimeo':
|
|
19
|
+
{
|
|
20
|
+
return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(MediaPlayerRemoteLazy, _extends({}, restProps, {
|
|
21
|
+
type: type
|
|
22
|
+
})));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Local types.
|
|
26
|
+
default:
|
|
27
|
+
{
|
|
28
|
+
return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(MediaPlayerLocalLazy, _extends({}, restProps, {
|
|
29
|
+
type: type
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
7
33
|
};
|
|
8
34
|
export default MediaPlayer;
|
|
@@ -8,9 +8,6 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
8
8
|
import c from 'classnames';
|
|
9
9
|
import { useVideoJS } from 'react-hook-videojs';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
// VideoJS plugins:
|
|
12
|
-
import 'videojs-vimeo-tech';
|
|
13
|
-
import 'videojs-youtube';
|
|
14
11
|
import 'video.js/dist/video-js.css';
|
|
15
12
|
import './style.scss';
|
|
16
13
|
var MediaPlayer = function MediaPlayer(_ref) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// VideoJS plugins for remote videos:
|
|
4
|
+
import 'videojs-vimeo-tech';
|
|
5
|
+
import 'videojs-youtube';
|
|
6
|
+
import MediaPlayerLazy from './index.lazy';
|
|
7
|
+
var MediaPlayerRemoteLazy = function MediaPlayerRemoteLazy(props) {
|
|
8
|
+
return /*#__PURE__*/React.createElement(MediaPlayerLazy, props);
|
|
9
|
+
};
|
|
10
|
+
export default MediaPlayerRemoteLazy;
|