@elice/material-video 1.260220.0 → 1.260429.0-improvetimerpopoverui.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/components/material-video/MaterialVideoContent.js +18 -3
- package/cjs/components/youtube-player/YoutubePlayer.js +15 -2
- package/es/components/material-video/MaterialVideoContent.js +13 -2
- package/es/components/youtube-player/YoutubePlayer.js +13 -1
- package/package.json +24 -17
- package/cjs/components/material-video/MaterialVideo.styled.d.ts +0 -3
- package/cjs/components/material-video/MaterialVideo.styled.js +0 -22
- package/cjs/components/youtube-player/YoutubePlayer.styled.d.ts +0 -3
- package/cjs/components/youtube-player/YoutubePlayer.styled.js +0 -22
- package/es/components/material-video/MaterialVideo.styled.d.ts +0 -3
- package/es/components/material-video/MaterialVideo.styled.js +0 -16
- package/es/components/youtube-player/YoutubePlayer.styled.d.ts +0 -3
- package/es/components/youtube-player/YoutubePlayer.styled.js +0 -16
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _styled = require('@emotion/styled/base');
|
|
5
6
|
var tslib = require('tslib');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
var blocks = require('@elice/blocks');
|
|
@@ -9,16 +10,30 @@ var designTokens = require('@elice/design-tokens');
|
|
|
9
10
|
var icons = require('@elice/icons');
|
|
10
11
|
var intl = require('@elice/intl');
|
|
11
12
|
var youtubeUrlParser = require('../../utils/youtubeUrlParser.js');
|
|
12
|
-
var MaterialVideo_styled = require('./MaterialVideo.styled.js');
|
|
13
13
|
var YoutubePlayer = require('../youtube-player/YoutubePlayer.js');
|
|
14
14
|
|
|
15
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
|
+
|
|
17
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
18
|
+
|
|
19
|
+
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)."; }
|
|
20
|
+
var StyledMaterialVideoStatus = /*#__PURE__*/_styled__default.default(blocks.Flex, {
|
|
21
|
+
target: "e1yd725t0"
|
|
22
|
+
})("production" === "production" ? {
|
|
23
|
+
name: "r4h982",
|
|
24
|
+
styles: "width:100%;height:100%;background-color:#22222c"
|
|
25
|
+
} : {
|
|
26
|
+
name: "r4h982",
|
|
27
|
+
styles: "width:100%;height:100%;background-color:#22222c",
|
|
28
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
|
+
});
|
|
15
30
|
var MaterialVideoContent = function MaterialVideoContent(_a) {
|
|
16
31
|
var videoGetStatus = _a.videoGetStatus,
|
|
17
32
|
materialVideo = _a.materialVideo,
|
|
18
33
|
youtubeProps = tslib.__rest(_a, ["videoGetStatus", "materialVideo"]);
|
|
19
34
|
var intl$1 = intl.useRawEliceIntl();
|
|
20
35
|
if (videoGetStatus === 'pending') {
|
|
21
|
-
return jsxRuntime.jsxs(
|
|
36
|
+
return jsxRuntime.jsxs(StyledMaterialVideoStatus, {
|
|
22
37
|
align: "center",
|
|
23
38
|
justify: "center",
|
|
24
39
|
children: [jsxRuntime.jsx(blocks.Spinner, {}), jsxRuntime.jsx(blocks.Hspace, {
|
|
@@ -32,7 +47,7 @@ var MaterialVideoContent = function MaterialVideoContent(_a) {
|
|
|
32
47
|
});
|
|
33
48
|
}
|
|
34
49
|
if (!(materialVideo === null || materialVideo === void 0 ? void 0 : materialVideo.url) || videoGetStatus === 'rejected') {
|
|
35
|
-
return jsxRuntime.jsxs(
|
|
50
|
+
return jsxRuntime.jsxs(StyledMaterialVideoStatus, {
|
|
36
51
|
align: "center",
|
|
37
52
|
justify: "center",
|
|
38
53
|
children: [jsxRuntime.jsx(blocks.Icon, {
|
|
@@ -2,17 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _styled = require('@emotion/styled/base');
|
|
5
6
|
var tslib = require('tslib');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
var Youtube = require('react-youtube');
|
|
9
|
+
var blocks = require('@elice/blocks');
|
|
8
10
|
var classnames = require('classnames');
|
|
9
|
-
var YoutubePlayer_styled = require('./YoutubePlayer.styled.js');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
13
|
|
|
14
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
13
15
|
var Youtube__default = /*#__PURE__*/_interopDefaultCompat(Youtube);
|
|
14
16
|
var classnames__default = /*#__PURE__*/_interopDefaultCompat(classnames);
|
|
15
17
|
|
|
18
|
+
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)."; }
|
|
19
|
+
var StyledYoutubePlayerWrapper = /*#__PURE__*/_styled__default.default(blocks.Flex, {
|
|
20
|
+
target: "e14xcppy0"
|
|
21
|
+
})("production" === "production" ? {
|
|
22
|
+
name: "s6oojq",
|
|
23
|
+
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"
|
|
24
|
+
} : {
|
|
25
|
+
name: "s6oojq",
|
|
26
|
+
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}",
|
|
27
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
+
});
|
|
16
29
|
var YoutubePlayer = function YoutubePlayer(_a) {
|
|
17
30
|
var className = _a.className,
|
|
18
31
|
videoId = _a.videoId,
|
|
@@ -42,7 +55,7 @@ var YoutubePlayer = function YoutubePlayer(_a) {
|
|
|
42
55
|
}
|
|
43
56
|
};
|
|
44
57
|
};
|
|
45
|
-
return jsxRuntime.jsx(
|
|
58
|
+
return jsxRuntime.jsx(StyledYoutubePlayerWrapper, {
|
|
46
59
|
className: classnames__default.default(prefixCls, className),
|
|
47
60
|
justify: "center",
|
|
48
61
|
align: "center",
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
1
2
|
import { __rest } from 'tslib';
|
|
2
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Spinner, Hspace, Text, Icon } from '@elice/blocks';
|
|
4
|
+
import { Flex, Spinner, Hspace, Text, Icon } from '@elice/blocks';
|
|
4
5
|
import { base } from '@elice/design-tokens';
|
|
5
6
|
import { eilStatusWarn } from '@elice/icons';
|
|
6
7
|
import { useRawEliceIntl } from '@elice/intl';
|
|
7
8
|
import { youtubeUrlParser } from '../../utils/youtubeUrlParser.js';
|
|
8
|
-
import { StyledMaterialVideoStatus } from './MaterialVideo.styled.js';
|
|
9
9
|
import YoutubePlayer from '../youtube-player/YoutubePlayer.js';
|
|
10
10
|
|
|
11
|
+
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)."; }
|
|
12
|
+
var StyledMaterialVideoStatus = /*#__PURE__*/_styled(Flex, {
|
|
13
|
+
target: "e1yd725t0"
|
|
14
|
+
})("production" === "production" ? {
|
|
15
|
+
name: "r4h982",
|
|
16
|
+
styles: "width:100%;height:100%;background-color:#22222c"
|
|
17
|
+
} : {
|
|
18
|
+
name: "r4h982",
|
|
19
|
+
styles: "width:100%;height:100%;background-color:#22222c",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
});
|
|
11
22
|
var MaterialVideoContent = function MaterialVideoContent(_a) {
|
|
12
23
|
var videoGetStatus = _a.videoGetStatus,
|
|
13
24
|
materialVideo = _a.materialVideo,
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
1
2
|
import { __rest } from 'tslib';
|
|
2
3
|
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
import Youtube from 'react-youtube';
|
|
5
|
+
import { Flex } from '@elice/blocks';
|
|
4
6
|
import classnames from 'classnames';
|
|
5
|
-
import { StyledYoutubePlayerWrapper } from './YoutubePlayer.styled.js';
|
|
6
7
|
|
|
8
|
+
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)."; }
|
|
9
|
+
var StyledYoutubePlayerWrapper = /*#__PURE__*/_styled(Flex, {
|
|
10
|
+
target: "e14xcppy0"
|
|
11
|
+
})("production" === "production" ? {
|
|
12
|
+
name: "s6oojq",
|
|
13
|
+
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"
|
|
14
|
+
} : {
|
|
15
|
+
name: "s6oojq",
|
|
16
|
+
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}",
|
|
17
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
18
|
+
});
|
|
7
19
|
var YoutubePlayer = function YoutubePlayer(_a) {
|
|
8
20
|
var className = _a.className,
|
|
9
21
|
videoId = _a.videoId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-video",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.260429.0-improvetimerpopoverui.0",
|
|
4
4
|
"description": "User view and editing components of Elice material video",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,27 +14,19 @@
|
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
16
|
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"start": "run-s watch",
|
|
19
|
-
"prebuild": "run-s clean",
|
|
20
|
-
"build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
|
|
21
|
-
"watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
|
|
22
|
-
"lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
|
|
23
|
-
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
24
|
-
},
|
|
25
17
|
"peerDependencies": {
|
|
26
18
|
"@elice/api-client": "^1",
|
|
27
19
|
"@elice/blocks": "^1",
|
|
28
20
|
"@elice/design-tokens": "^1",
|
|
29
21
|
"@elice/icons": "^1",
|
|
30
22
|
"@elice/intl": "^0",
|
|
31
|
-
"@elice/material-shared-types": "1.260220.0",
|
|
32
|
-
"@elice/material-shared-utils": "1.260220.0",
|
|
33
23
|
"@elice/types": "^1",
|
|
34
24
|
"@emotion/react": "^11.10.0",
|
|
35
25
|
"@emotion/styled": "^11.10.0",
|
|
36
26
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
37
|
-
"react-use": "^17.0.0"
|
|
27
|
+
"react-use": "^17.0.0",
|
|
28
|
+
"@elice/material-shared-types": "1.260429.0-improvetimerpopoverui.0",
|
|
29
|
+
"@elice/material-shared-utils": "1.260429.0-improvetimerpopoverui.0"
|
|
38
30
|
},
|
|
39
31
|
"dependencies": {
|
|
40
32
|
"classnames": "^2.2.0",
|
|
@@ -48,14 +40,29 @@
|
|
|
48
40
|
"@elice/icons": "^1.230814.0",
|
|
49
41
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
50
42
|
"@elice/intl": "0.241127.0",
|
|
51
|
-
"@elice/
|
|
52
|
-
"@elice/material-shared-utils": "1.260220.0",
|
|
43
|
+
"@elice/rollup-config": "^1.260406.0",
|
|
53
44
|
"@elice/types": "^1.251229.0",
|
|
54
45
|
"@emotion/react": "^11.10.0",
|
|
55
46
|
"@emotion/styled": "^11.10.0",
|
|
56
47
|
"@types/classnames": "^2.3.1",
|
|
57
48
|
"@types/react": "~17.0.9",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
49
|
+
"cross-env": "^7.0.3",
|
|
50
|
+
"del-cli": "^3.0.1",
|
|
51
|
+
"eslint": "~9.39.0",
|
|
52
|
+
"npm-run-all": "^4.1.5",
|
|
53
|
+
"react": "~18.2.0",
|
|
54
|
+
"react-use": "^17.2.4",
|
|
55
|
+
"rollup": "^4.0.0",
|
|
56
|
+
"typescript": "~5.9.3",
|
|
57
|
+
"@elice/material-shared-types": "1.260429.0-improvetimerpopoverui.0",
|
|
58
|
+
"@elice/material-shared-utils": "1.260429.0-improvetimerpopoverui.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"start": "run-s watch",
|
|
62
|
+
"prebuild": "run-s clean",
|
|
63
|
+
"build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
|
|
64
|
+
"watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
|
|
65
|
+
"lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
|
|
66
|
+
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
60
67
|
}
|
|
61
|
-
}
|
|
68
|
+
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _styled = require('@emotion/styled/base');
|
|
4
|
-
var blocks = require('@elice/blocks');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
9
|
-
|
|
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 StyledMaterialVideoStatus = /*#__PURE__*/_styled__default.default(blocks.Flex, {
|
|
12
|
-
target: "ehbshjs0"
|
|
13
|
-
})("production" === "production" ? {
|
|
14
|
-
name: "r4h982",
|
|
15
|
-
styles: "width:100%;height:100%;background-color:#22222c"
|
|
16
|
-
} : {
|
|
17
|
-
name: "r4h982",
|
|
18
|
-
styles: "width:100%;height:100%;background-color:#22222c",
|
|
19
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
exports.StyledMaterialVideoStatus = StyledMaterialVideoStatus;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _styled = require('@emotion/styled/base');
|
|
4
|
-
var blocks = require('@elice/blocks');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
9
|
-
|
|
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 StyledYoutubePlayerWrapper = /*#__PURE__*/_styled__default.default(blocks.Flex, {
|
|
12
|
-
target: "e11o7hq70"
|
|
13
|
-
})("production" === "production" ? {
|
|
14
|
-
name: "s6oojq",
|
|
15
|
-
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"
|
|
16
|
-
} : {
|
|
17
|
-
name: "s6oojq",
|
|
18
|
-
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}",
|
|
19
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
exports.StyledYoutubePlayerWrapper = StyledYoutubePlayerWrapper;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Flex } from '@elice/blocks';
|
|
3
|
-
|
|
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 StyledMaterialVideoStatus = /*#__PURE__*/_styled(Flex, {
|
|
6
|
-
target: "ehbshjs0"
|
|
7
|
-
})("production" === "production" ? {
|
|
8
|
-
name: "r4h982",
|
|
9
|
-
styles: "width:100%;height:100%;background-color:#22222c"
|
|
10
|
-
} : {
|
|
11
|
-
name: "r4h982",
|
|
12
|
-
styles: "width:100%;height:100%;background-color:#22222c",
|
|
13
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export { StyledMaterialVideoStatus };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Flex } from '@elice/blocks';
|
|
3
|
-
|
|
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 StyledYoutubePlayerWrapper = /*#__PURE__*/_styled(Flex, {
|
|
6
|
-
target: "e11o7hq70"
|
|
7
|
-
})("production" === "production" ? {
|
|
8
|
-
name: "s6oojq",
|
|
9
|
-
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"
|
|
10
|
-
} : {
|
|
11
|
-
name: "s6oojq",
|
|
12
|
-
styles: "width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}",
|
|
13
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export { StyledYoutubePlayerWrapper };
|