@elice/material-video-file 1.251120.1 → 1.260128.0-rc.0
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/cjs/_virtual/_rollupPluginBabelHelpers.js +34 -35
- package/cjs/components/material-video-file/MaterialVideoFile.js +4 -4
- package/cjs/components/material-video-file/MaterialVideoFile.styled.d.ts +4 -1
- package/cjs/components/material-video-file/MaterialVideoFile.styled.js +5 -5
- package/cjs/components/material-video-file/MaterialVideoFilePlayer.js +4 -4
- package/cjs/components/material-video-file/MaterialVideoFilePlayer.styled.d.ts +16 -6
- package/cjs/components/material-video-file/MaterialVideoFilePlayer.styled.js +43 -14
- package/es/_virtual/_rollupPluginBabelHelpers.js +34 -35
- package/es/components/material-video-file/MaterialVideoFile.js +4 -4
- package/es/components/material-video-file/MaterialVideoFile.styled.d.ts +4 -1
- package/es/components/material-video-file/MaterialVideoFile.styled.js +4 -4
- package/es/components/material-video-file/MaterialVideoFilePlayer.js +5 -5
- package/es/components/material-video-file/MaterialVideoFilePlayer.styled.d.ts +16 -6
- package/es/components/material-video-file/MaterialVideoFilePlayer.styled.js +42 -13
- package/package.json +12 -11
|
@@ -1,51 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
function _arrayLikeToArray(r, a) {
|
|
4
|
+
(null == a || a > r.length) && (a = r.length);
|
|
5
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function _arrayWithHoles(r) {
|
|
9
|
+
if (Array.isArray(r)) return r;
|
|
10
|
+
}
|
|
11
|
+
function _iterableToArrayLimit(r, l) {
|
|
12
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
13
|
+
if (null != t) {
|
|
14
|
+
var e,
|
|
15
|
+
n,
|
|
16
|
+
i,
|
|
17
|
+
u,
|
|
18
|
+
a = [],
|
|
19
|
+
f = true,
|
|
20
|
+
o = false;
|
|
13
21
|
try {
|
|
14
|
-
if (
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
22
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
23
|
+
} catch (r) {
|
|
24
|
+
o = true, n = r;
|
|
17
25
|
} finally {
|
|
18
26
|
try {
|
|
19
|
-
if (!
|
|
27
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
20
28
|
} finally {
|
|
21
|
-
if (
|
|
29
|
+
if (o) throw n;
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return a;
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
|
-
function _slicedToArray(arr, i) {
|
|
28
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
29
|
-
}
|
|
30
|
-
function _arrayWithHoles(arr) {
|
|
31
|
-
if (Array.isArray(arr)) return arr;
|
|
32
|
-
}
|
|
33
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
34
|
-
if (!o) return;
|
|
35
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
36
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
37
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
38
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
39
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
40
|
-
}
|
|
41
|
-
function _arrayLikeToArray(arr, len) {
|
|
42
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
43
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44
|
-
return arr2;
|
|
45
|
-
}
|
|
46
35
|
function _nonIterableRest() {
|
|
47
36
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
37
|
}
|
|
38
|
+
function _slicedToArray(r, e) {
|
|
39
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
40
|
+
}
|
|
41
|
+
function _unsupportedIterableToArray(r, a) {
|
|
42
|
+
if (r) {
|
|
43
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
44
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
45
|
+
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;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
49
48
|
|
|
50
49
|
exports.arrayLikeToArray = _arrayLikeToArray;
|
|
51
50
|
exports.arrayWithHoles = _arrayWithHoles;
|
|
@@ -10,11 +10,11 @@ var intl = require('@elice/intl');
|
|
|
10
10
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
11
11
|
var types = require('@elice/types');
|
|
12
12
|
var classnames = require('classnames');
|
|
13
|
-
var en = require('./locales/en.json.js');
|
|
14
|
-
var ko = require('./locales/ko.json.js');
|
|
15
13
|
var MaterialVideoFilePlayer = require('./MaterialVideoFilePlayer.js');
|
|
16
14
|
var useMaterialVideoFileApi = require('./useMaterialVideoFileApi.js');
|
|
17
15
|
var MaterialVideoFile_styled = require('./MaterialVideoFile.styled.js');
|
|
16
|
+
var en = require('./locales/en.json.js');
|
|
17
|
+
var ko = require('./locales/ko.json.js');
|
|
18
18
|
|
|
19
19
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
20
20
|
|
|
@@ -65,6 +65,6 @@ var MaterialVideoFile = React.forwardRef(function (_a, ref) {
|
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
var
|
|
68
|
+
var MaterialVideoFile_default = new intl.IntlComponentBuilder(MaterialVideoFile).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('./locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('./locales/ja.json.js'); })).build();
|
|
69
69
|
|
|
70
|
-
exports.default =
|
|
70
|
+
exports.default = MaterialVideoFile_default;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare const StyledMaterialVideoFileWrap: import("styled
|
|
1
|
+
export declare const StyledMaterialVideoFileWrap: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _styled = require('@emotion/styled/base');
|
|
3
4
|
var designTokens = require('@elice/design-tokens');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
9
9
|
|
|
10
|
-
var StyledMaterialVideoFileWrap =
|
|
11
|
-
|
|
12
|
-
})(
|
|
10
|
+
var StyledMaterialVideoFileWrap = /*#__PURE__*/_styled__default.default("div", {
|
|
11
|
+
target: "e7kzwhl0"
|
|
12
|
+
})("display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background:", designTokens.base.color.gray9, ";");
|
|
13
13
|
|
|
14
14
|
exports.StyledMaterialVideoFileWrap = StyledMaterialVideoFileWrap;
|
|
@@ -114,10 +114,10 @@ var MaterialVideoFilePlayer = React.forwardRef(function (_ref, ref) {
|
|
|
114
114
|
if (materialVideoFileUploadStatus === VideoUploadStatus.Encoding) {
|
|
115
115
|
return jsxRuntime.jsxs(MaterialVideoFilePlayer_styled.StyledVideoPlayerLoading, {
|
|
116
116
|
children: [jsxRuntime.jsx(blocks.Spinner, {}), jsxRuntime.jsx(blocks.Text, {
|
|
117
|
+
preWrap: true,
|
|
117
118
|
role: "gray3",
|
|
118
119
|
lineHeight: 1.5,
|
|
119
120
|
textAlign: "center",
|
|
120
|
-
preWrap: true,
|
|
121
121
|
children: intl$1.formatMessage({
|
|
122
122
|
id: 'videoFile.player.encoding'
|
|
123
123
|
})
|
|
@@ -128,10 +128,10 @@ var MaterialVideoFilePlayer = React.forwardRef(function (_ref, ref) {
|
|
|
128
128
|
if (materialVideoFileUploadStatus === VideoUploadStatus.EncodingFailed) {
|
|
129
129
|
return jsxRuntime.jsx(MaterialVideoFilePlayer_styled.StyledVideoPlayerLoading, {
|
|
130
130
|
children: jsxRuntime.jsx(blocks.Text, {
|
|
131
|
+
preWrap: true,
|
|
131
132
|
role: "gray3",
|
|
132
133
|
lineHeight: 1.5,
|
|
133
134
|
textAlign: "center",
|
|
134
|
-
preWrap: true,
|
|
135
135
|
children: intl$1.formatMessage({
|
|
136
136
|
id: 'videoFile.player.encodingFailed'
|
|
137
137
|
})
|
|
@@ -170,6 +170,7 @@ var MaterialVideoFilePlayer = React.forwardRef(function (_ref, ref) {
|
|
|
170
170
|
return res.otp;
|
|
171
171
|
});
|
|
172
172
|
},
|
|
173
|
+
ref: ref,
|
|
173
174
|
onLecturePageNavigate: function onLecturePageNavigate(dir) {
|
|
174
175
|
if (dir === 'prev' && onNavigatePreviousLecturePage) {
|
|
175
176
|
onNavigatePreviousLecturePage();
|
|
@@ -181,8 +182,7 @@ var MaterialVideoFilePlayer = React.forwardRef(function (_ref, ref) {
|
|
|
181
182
|
if (typeof _onTranscriptToggle === 'function') {
|
|
182
183
|
_onTranscriptToggle(enabled);
|
|
183
184
|
}
|
|
184
|
-
}
|
|
185
|
-
ref: ref
|
|
185
|
+
}
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
188
|
//
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StyledVideoPlayer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/videoplayer-client").EliceVideoplayerProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
1
|
+
export declare const StyledVideoPlayer: import("@emotion/styled").StyledComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/videoplayer-client").EliceVideoplayerProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
3
2
|
__intl: import("@elice/intl").EliceIntlShape;
|
|
4
|
-
} & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
3
|
+
} & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const StyledVideoPlayerContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const StyledVideoPlayerLoading: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const StyledVideoPlayerOverlay: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _styled = require('@emotion/styled/base');
|
|
3
4
|
var videoplayerClient = require('@elice/videoplayer-client');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
11
|
+
var StyledVideoPlayer = /*#__PURE__*/_styled__default.default(videoplayerClient.EliceVideoplayer, {
|
|
12
|
+
target: "e1lqf1nw3"
|
|
13
|
+
})("production" === "production" ? {
|
|
14
|
+
name: "lkodw",
|
|
15
|
+
styles: "width:100%;height:100%;border:0"
|
|
16
|
+
} : {
|
|
17
|
+
name: "lkodw",
|
|
18
|
+
styles: "width:100%;height:100%;border:0",
|
|
19
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
+
});
|
|
21
|
+
var StyledVideoPlayerContainer = /*#__PURE__*/_styled__default.default("div", {
|
|
22
|
+
target: "e1lqf1nw2"
|
|
23
|
+
})("production" === "production" ? {
|
|
24
|
+
name: "zxsb69",
|
|
25
|
+
styles: "position:relative;width:100%;height:100%"
|
|
26
|
+
} : {
|
|
27
|
+
name: "zxsb69",
|
|
28
|
+
styles: "position:relative;width:100%;height:100%",
|
|
29
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
30
|
+
});
|
|
31
|
+
var StyledVideoPlayerLoading = /*#__PURE__*/_styled__default.default("div", {
|
|
32
|
+
target: "e1lqf1nw1"
|
|
33
|
+
})("production" === "production" ? {
|
|
34
|
+
name: "wco9ji",
|
|
35
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%"
|
|
36
|
+
} : {
|
|
37
|
+
name: "wco9ji",
|
|
38
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
});
|
|
41
|
+
var StyledVideoPlayerOverlay = /*#__PURE__*/_styled__default.default("div", {
|
|
42
|
+
target: "e1lqf1nw0"
|
|
43
|
+
})("production" === "production" ? {
|
|
44
|
+
name: "4gmkgm",
|
|
45
|
+
styles: "position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1"
|
|
46
|
+
} : {
|
|
47
|
+
name: "4gmkgm",
|
|
48
|
+
styles: "position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1",
|
|
49
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
50
|
+
});
|
|
22
51
|
|
|
23
52
|
exports.StyledVideoPlayer = StyledVideoPlayer;
|
|
24
53
|
exports.StyledVideoPlayerContainer = StyledVideoPlayerContainer;
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
function _arrayLikeToArray(r, a) {
|
|
2
|
+
(null == a || a > r.length) && (a = r.length);
|
|
3
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4
|
+
return n;
|
|
5
|
+
}
|
|
6
|
+
function _arrayWithHoles(r) {
|
|
7
|
+
if (Array.isArray(r)) return r;
|
|
8
|
+
}
|
|
9
|
+
function _iterableToArrayLimit(r, l) {
|
|
10
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11
|
+
if (null != t) {
|
|
12
|
+
var e,
|
|
13
|
+
n,
|
|
14
|
+
i,
|
|
15
|
+
u,
|
|
16
|
+
a = [],
|
|
17
|
+
f = true,
|
|
18
|
+
o = false;
|
|
11
19
|
try {
|
|
12
|
-
if (
|
|
13
|
-
} catch (
|
|
14
|
-
|
|
20
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
21
|
+
} catch (r) {
|
|
22
|
+
o = true, n = r;
|
|
15
23
|
} finally {
|
|
16
24
|
try {
|
|
17
|
-
if (!
|
|
25
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
18
26
|
} finally {
|
|
19
|
-
if (
|
|
27
|
+
if (o) throw n;
|
|
20
28
|
}
|
|
21
29
|
}
|
|
22
|
-
return
|
|
30
|
+
return a;
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
|
-
function _slicedToArray(arr, i) {
|
|
26
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
27
|
-
}
|
|
28
|
-
function _arrayWithHoles(arr) {
|
|
29
|
-
if (Array.isArray(arr)) return arr;
|
|
30
|
-
}
|
|
31
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
32
|
-
if (!o) return;
|
|
33
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
34
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
35
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
36
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
37
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
38
|
-
}
|
|
39
|
-
function _arrayLikeToArray(arr, len) {
|
|
40
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
41
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
42
|
-
return arr2;
|
|
43
|
-
}
|
|
44
33
|
function _nonIterableRest() {
|
|
45
34
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
46
35
|
}
|
|
36
|
+
function _slicedToArray(r, e) {
|
|
37
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
38
|
+
}
|
|
39
|
+
function _unsupportedIterableToArray(r, a) {
|
|
40
|
+
if (r) {
|
|
41
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
42
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
43
|
+
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;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
47
46
|
|
|
48
47
|
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
@@ -6,11 +6,11 @@ import { RawEliceIntlProvider, IntlComponentBuilder } from '@elice/intl';
|
|
|
6
6
|
import { useMaterialConfig, useMaterialFetch } from '@elice/material-shared-utils';
|
|
7
7
|
import { enums } from '@elice/types';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
|
-
import messageEn from './locales/en.json.js';
|
|
10
|
-
import messageKo from './locales/ko.json.js';
|
|
11
9
|
import MaterialVideoFilePlayer from './MaterialVideoFilePlayer.js';
|
|
12
10
|
import { useMaterialVideoFileApi } from './useMaterialVideoFileApi.js';
|
|
13
11
|
import { StyledMaterialVideoFileWrap } from './MaterialVideoFile.styled.js';
|
|
12
|
+
import messageEn from './locales/en.json.js';
|
|
13
|
+
import messageKo from './locales/ko.json.js';
|
|
14
14
|
|
|
15
15
|
//
|
|
16
16
|
//
|
|
@@ -56,6 +56,6 @@ var MaterialVideoFile = forwardRef(function (_a, ref) {
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var MaterialVideoFile_default = new IntlComponentBuilder(MaterialVideoFile).add('en', messageEn).add('ko', messageKo).addAsync('th', import('./locales/th.json.js')).addAsync('ja', import('./locales/ja.json.js')).build();
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { MaterialVideoFile_default as default };
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare const StyledMaterialVideoFileWrap: import("styled
|
|
1
|
+
export declare const StyledMaterialVideoFileWrap: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
1
2
|
import { base } from '@elice/design-tokens';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var StyledMaterialVideoFileWrap =
|
|
5
|
-
|
|
6
|
-
})(
|
|
4
|
+
var StyledMaterialVideoFileWrap = /*#__PURE__*/_styled("div", {
|
|
5
|
+
target: "e7kzwhl0"
|
|
6
|
+
})("display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background:", base.color.gray9, ";");
|
|
7
7
|
|
|
8
8
|
export { StyledMaterialVideoFileWrap };
|
|
@@ -4,7 +4,7 @@ import { Spinner, Text } from '@elice/blocks';
|
|
|
4
4
|
import { useRawEliceIntl } from '@elice/intl';
|
|
5
5
|
import { enums } from '@elice/types';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { StyledVideoPlayerContainer,
|
|
7
|
+
import { StyledVideoPlayerContainer, StyledVideoPlayer, StyledVideoPlayerOverlay, StyledVideoPlayerLoading } from './MaterialVideoFilePlayer.styled.js';
|
|
8
8
|
|
|
9
9
|
//
|
|
10
10
|
//
|
|
@@ -105,10 +105,10 @@ var MaterialVideoFilePlayer = forwardRef(function (_ref, ref) {
|
|
|
105
105
|
if (materialVideoFileUploadStatus === VideoUploadStatus.Encoding) {
|
|
106
106
|
return jsxs(StyledVideoPlayerLoading, {
|
|
107
107
|
children: [jsx(Spinner, {}), jsx(Text, {
|
|
108
|
+
preWrap: true,
|
|
108
109
|
role: "gray3",
|
|
109
110
|
lineHeight: 1.5,
|
|
110
111
|
textAlign: "center",
|
|
111
|
-
preWrap: true,
|
|
112
112
|
children: intl.formatMessage({
|
|
113
113
|
id: 'videoFile.player.encoding'
|
|
114
114
|
})
|
|
@@ -119,10 +119,10 @@ var MaterialVideoFilePlayer = forwardRef(function (_ref, ref) {
|
|
|
119
119
|
if (materialVideoFileUploadStatus === VideoUploadStatus.EncodingFailed) {
|
|
120
120
|
return jsx(StyledVideoPlayerLoading, {
|
|
121
121
|
children: jsx(Text, {
|
|
122
|
+
preWrap: true,
|
|
122
123
|
role: "gray3",
|
|
123
124
|
lineHeight: 1.5,
|
|
124
125
|
textAlign: "center",
|
|
125
|
-
preWrap: true,
|
|
126
126
|
children: intl.formatMessage({
|
|
127
127
|
id: 'videoFile.player.encodingFailed'
|
|
128
128
|
})
|
|
@@ -161,6 +161,7 @@ var MaterialVideoFilePlayer = forwardRef(function (_ref, ref) {
|
|
|
161
161
|
return res.otp;
|
|
162
162
|
});
|
|
163
163
|
},
|
|
164
|
+
ref: ref,
|
|
164
165
|
onLecturePageNavigate: function onLecturePageNavigate(dir) {
|
|
165
166
|
if (dir === 'prev' && onNavigatePreviousLecturePage) {
|
|
166
167
|
onNavigatePreviousLecturePage();
|
|
@@ -172,8 +173,7 @@ var MaterialVideoFilePlayer = forwardRef(function (_ref, ref) {
|
|
|
172
173
|
if (typeof _onTranscriptToggle === 'function') {
|
|
173
174
|
_onTranscriptToggle(enabled);
|
|
174
175
|
}
|
|
175
|
-
}
|
|
176
|
-
ref: ref
|
|
176
|
+
}
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
179
|
//
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StyledVideoPlayer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/videoplayer-client").EliceVideoplayerProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
1
|
+
export declare const StyledVideoPlayer: import("@emotion/styled").StyledComponent<Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/intl").IntlComponentExtraProps & Omit<import("@elice/videoplayer-client").EliceVideoplayerProps, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & {
|
|
3
2
|
__intl: import("@elice/intl").EliceIntlShape;
|
|
4
|
-
} & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
3
|
+
} & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl">, "ref"> & import("react").RefAttributes<import("@elice/videoplayer-client").EliceVideoplayerApis> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const StyledVideoPlayerContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const StyledVideoPlayerLoading: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const StyledVideoPlayerOverlay: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,17 +1,46 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
1
2
|
import { EliceVideoplayer } from '@elice/videoplayer-client';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
5
|
+
var StyledVideoPlayer = /*#__PURE__*/_styled(EliceVideoplayer, {
|
|
6
|
+
target: "e1lqf1nw3"
|
|
7
|
+
})("production" === "production" ? {
|
|
8
|
+
name: "lkodw",
|
|
9
|
+
styles: "width:100%;height:100%;border:0"
|
|
10
|
+
} : {
|
|
11
|
+
name: "lkodw",
|
|
12
|
+
styles: "width:100%;height:100%;border:0",
|
|
13
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
14
|
+
});
|
|
15
|
+
var StyledVideoPlayerContainer = /*#__PURE__*/_styled("div", {
|
|
16
|
+
target: "e1lqf1nw2"
|
|
17
|
+
})("production" === "production" ? {
|
|
18
|
+
name: "zxsb69",
|
|
19
|
+
styles: "position:relative;width:100%;height:100%"
|
|
20
|
+
} : {
|
|
21
|
+
name: "zxsb69",
|
|
22
|
+
styles: "position:relative;width:100%;height:100%",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
});
|
|
25
|
+
var StyledVideoPlayerLoading = /*#__PURE__*/_styled("div", {
|
|
26
|
+
target: "e1lqf1nw1"
|
|
27
|
+
})("production" === "production" ? {
|
|
28
|
+
name: "wco9ji",
|
|
29
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%"
|
|
30
|
+
} : {
|
|
31
|
+
name: "wco9ji",
|
|
32
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%",
|
|
33
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
|
+
});
|
|
35
|
+
var StyledVideoPlayerOverlay = /*#__PURE__*/_styled("div", {
|
|
36
|
+
target: "e1lqf1nw0"
|
|
37
|
+
})("production" === "production" ? {
|
|
38
|
+
name: "4gmkgm",
|
|
39
|
+
styles: "position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1"
|
|
40
|
+
} : {
|
|
41
|
+
name: "4gmkgm",
|
|
42
|
+
styles: "position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1",
|
|
43
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
44
|
+
});
|
|
16
45
|
|
|
17
46
|
export { StyledVideoPlayer, StyledVideoPlayerContainer, StyledVideoPlayerLoading, StyledVideoPlayerOverlay };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-video-file",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.260128.0-rc.0",
|
|
4
4
|
"description": "User view and editing components of Elice material video file",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -28,15 +28,16 @@
|
|
|
28
28
|
"@elice/design-tokens": "^1",
|
|
29
29
|
"@elice/icons": "^1",
|
|
30
30
|
"@elice/intl": "^0",
|
|
31
|
-
"@elice/material-shared-types": "
|
|
32
|
-
"@elice/material-shared-utils": "
|
|
31
|
+
"@elice/material-shared-types": "1.260128.0-rc.0",
|
|
32
|
+
"@elice/material-shared-utils": "1.260128.0-rc.0",
|
|
33
33
|
"@elice/messenger": "^1",
|
|
34
34
|
"@elice/openapi-client-account": "^1",
|
|
35
35
|
"@elice/types": "^1",
|
|
36
36
|
"@elice/videoplayer-client": "^2",
|
|
37
|
+
"@emotion/react": "^11.10.0",
|
|
38
|
+
"@emotion/styled": "^11.10.0",
|
|
37
39
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
38
|
-
"react-use": "^17.0.0"
|
|
39
|
-
"styled-components": "^5.2.0"
|
|
40
|
+
"react-use": "^17.0.0"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"classnames": "^2.2.0",
|
|
@@ -50,18 +51,18 @@
|
|
|
50
51
|
"@elice/icons": "^1.230814.0",
|
|
51
52
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
52
53
|
"@elice/intl": "0.241127.0",
|
|
53
|
-
"@elice/material-shared-types": "1.
|
|
54
|
-
"@elice/material-shared-utils": "1.
|
|
54
|
+
"@elice/material-shared-types": "1.260128.0-rc.0",
|
|
55
|
+
"@elice/material-shared-utils": "1.260128.0-rc.0",
|
|
55
56
|
"@elice/messenger": "^1.240426.0",
|
|
56
57
|
"@elice/openapi-client-account": "^1.230814.0",
|
|
57
|
-
"@elice/types": "^1.
|
|
58
|
+
"@elice/types": "^1.251229.0",
|
|
58
59
|
"@elice/videoplayer-client": "^2.250903.1",
|
|
60
|
+
"@emotion/react": "^11.10.0",
|
|
61
|
+
"@emotion/styled": "^11.10.0",
|
|
59
62
|
"@types/classnames": "^2.3.1",
|
|
60
63
|
"@types/query-string": "^6.3.0",
|
|
61
64
|
"@types/react": "~17.0.9",
|
|
62
|
-
"@types/styled-components": "^5.1.21",
|
|
63
65
|
"react": "^17.0.2",
|
|
64
|
-
"react-use": "^17.2.4"
|
|
65
|
-
"styled-components": "^5.3.0"
|
|
66
|
+
"react-use": "^17.2.4"
|
|
66
67
|
}
|
|
67
68
|
}
|