@elice/material-video 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.
@@ -11,9 +11,9 @@ var intl = require('@elice/intl');
11
11
  var materialSharedUtils = require('@elice/material-shared-utils');
12
12
  var types = require('@elice/types');
13
13
  var classnames = require('classnames');
14
+ var MaterialVideoContent = require('./MaterialVideoContent.js');
14
15
  var en = require('./locales/en.json.js');
15
16
  var ko = require('./locales/ko.json.js');
16
- var MaterialVideoContent = require('./MaterialVideoContent.js');
17
17
 
18
18
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
19
 
@@ -50,6 +50,6 @@ var MaterialVideo = function MaterialVideo(_a) {
50
50
  })
51
51
  });
52
52
  };
53
- var MaterialVideo$1 = new intl.IntlComponentBuilder(MaterialVideo).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();
53
+ var MaterialVideo_default = new intl.IntlComponentBuilder(MaterialVideo).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();
54
54
 
55
- exports.default = MaterialVideo$1;
55
+ exports.default = MaterialVideo_default;
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const StyledMaterialVideoStatus: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
1
+ export declare const StyledMaterialVideoStatus: import("@emotion/styled").StyledComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -1,14 +1,22 @@
1
1
  'use strict';
2
2
 
3
+ var _styled = require('@emotion/styled/base');
3
4
  var blocks = require('@elice/blocks');
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 styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
8
+ var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
9
9
 
10
- var StyledMaterialVideoStatus = styled__default.default(blocks.Flex).withConfig({
11
- componentId: "sc-dg3csq-0"
12
- })(["width:100%;height:100%;background-color:#22222c;"]);
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
+ });
13
21
 
14
22
  exports.StyledMaterialVideoStatus = StyledMaterialVideoStatus;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
1
  import type { APIStatus } from '@elice/material-shared-types';
3
2
  import type { GetOrgMaterialVideoGetResponses } from '@elice/types';
3
+ import type React from 'react';
4
4
  import type { YoutubePlayerSharedProps } from '../youtube-player';
5
5
  export interface MaterialVideoContentProps extends YoutubePlayerSharedProps {
6
6
  videoGetStatus: APIStatus;
@@ -9,8 +9,8 @@ var designTokens = require('@elice/design-tokens');
9
9
  var icons = require('@elice/icons');
10
10
  var intl = require('@elice/intl');
11
11
  var youtubeUrlParser = require('../../utils/youtubeUrlParser.js');
12
- var YoutubePlayer = require('../youtube-player/YoutubePlayer.js');
13
12
  var MaterialVideo_styled = require('./MaterialVideo.styled.js');
13
+ var YoutubePlayer = require('../youtube-player/YoutubePlayer.js');
14
14
 
15
15
  var MaterialVideoContent = function MaterialVideoContent(_a) {
16
16
  var videoGetStatus = _a.videoGetStatus,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import type { YouTubeProps } from 'react-youtube';
3
3
  type PickedYoutubeProps = Pick<YouTubeProps, 'onReady' | 'onError' | 'onPlay' | 'onPause' | 'onEnd' | 'onStateChange' | 'onPlaybackRateChange' | 'onPlaybackQualityChange'>;
4
4
  export interface YoutubePlayerSharedProps extends PickedYoutubeProps {
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const StyledYoutubePlayerWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
1
+ export declare const StyledYoutubePlayerWrapper: import("@emotion/styled").StyledComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -1,14 +1,22 @@
1
1
  'use strict';
2
2
 
3
+ var _styled = require('@emotion/styled/base');
3
4
  var blocks = require('@elice/blocks');
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 styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
8
+ var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
9
9
 
10
- var StyledYoutubePlayerWrapper = styled__default.default(blocks.Flex).withConfig({
11
- componentId: "sc-ao5iuk-0"
12
- })(["width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"]);
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
+ });
13
21
 
14
22
  exports.StyledYoutubePlayerWrapper = StyledYoutubePlayerWrapper;
@@ -1,2 +1,2 @@
1
1
  export { default as YoutubePlayer } from './YoutubePlayer';
2
- export type { YoutubePlayerProps, YoutubePlayerSharedProps, } from './YoutubePlayer';
2
+ export type { YoutubePlayerProps, YoutubePlayerSharedProps } from './YoutubePlayer';
@@ -7,9 +7,9 @@ import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
7
7
  import { useMaterialFetch } from '@elice/material-shared-utils';
8
8
  import { enums } from '@elice/types';
9
9
  import classnames from 'classnames';
10
+ import MaterialVideoContent from './MaterialVideoContent.js';
10
11
  import messageEn from './locales/en.json.js';
11
12
  import messageKo from './locales/ko.json.js';
12
- import MaterialVideoContent from './MaterialVideoContent.js';
13
13
 
14
14
  var MaterialVideo = function MaterialVideo(_a) {
15
15
  var className = _a.className,
@@ -41,6 +41,6 @@ var MaterialVideo = function MaterialVideo(_a) {
41
41
  })
42
42
  });
43
43
  };
44
- var MaterialVideo$1 = new IntlComponentBuilder(MaterialVideo).add('en', messageEn).add('ko', messageKo).addAsync('th', import('./locales/th.json.js')).addAsync('ja', import('./locales/ja.json.js')).build();
44
+ var MaterialVideo_default = new IntlComponentBuilder(MaterialVideo).add('en', messageEn).add('ko', messageKo).addAsync('th', import('./locales/th.json.js')).addAsync('ja', import('./locales/ja.json.js')).build();
45
45
 
46
- export { MaterialVideo$1 as default };
46
+ export { MaterialVideo_default as default };
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const StyledMaterialVideoStatus: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
1
+ export declare const StyledMaterialVideoStatus: import("@emotion/styled").StyledComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -1,8 +1,16 @@
1
+ import _styled from '@emotion/styled/base';
1
2
  import { Flex } from '@elice/blocks';
2
- import styled from 'styled-components';
3
3
 
4
- var StyledMaterialVideoStatus = styled(Flex).withConfig({
5
- componentId: "sc-dg3csq-0"
6
- })(["width:100%;height:100%;background-color:#22222c;"]);
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
+ });
7
15
 
8
16
  export { StyledMaterialVideoStatus };
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
1
  import type { APIStatus } from '@elice/material-shared-types';
3
2
  import type { GetOrgMaterialVideoGetResponses } from '@elice/types';
3
+ import type React from 'react';
4
4
  import type { YoutubePlayerSharedProps } from '../youtube-player';
5
5
  export interface MaterialVideoContentProps extends YoutubePlayerSharedProps {
6
6
  videoGetStatus: APIStatus;
@@ -5,8 +5,8 @@ import { base } from '@elice/design-tokens';
5
5
  import { eilStatusWarn } from '@elice/icons';
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { youtubeUrlParser } from '../../utils/youtubeUrlParser.js';
8
- import YoutubePlayer from '../youtube-player/YoutubePlayer.js';
9
8
  import { StyledMaterialVideoStatus } from './MaterialVideo.styled.js';
9
+ import YoutubePlayer from '../youtube-player/YoutubePlayer.js';
10
10
 
11
11
  var MaterialVideoContent = function MaterialVideoContent(_a) {
12
12
  var videoGetStatus = _a.videoGetStatus,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import type { YouTubeProps } from 'react-youtube';
3
3
  type PickedYoutubeProps = Pick<YouTubeProps, 'onReady' | 'onError' | 'onPlay' | 'onPause' | 'onEnd' | 'onStateChange' | 'onPlaybackRateChange' | 'onPlaybackQualityChange'>;
4
4
  export interface YoutubePlayerSharedProps extends PickedYoutubeProps {
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const StyledYoutubePlayerWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
1
+ export declare const StyledYoutubePlayerWrapper: import("@emotion/styled").StyledComponent<import("@elice/blocks").FlexProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -1,8 +1,16 @@
1
+ import _styled from '@emotion/styled/base';
1
2
  import { Flex } from '@elice/blocks';
2
- import styled from 'styled-components';
3
3
 
4
- var StyledYoutubePlayerWrapper = styled(Flex).withConfig({
5
- componentId: "sc-ao5iuk-0"
6
- })(["width:100%;height:100%;background-color:#22222c;& .em-youtube-player__inner{width:90%;height:90%;}"]);
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
+ });
7
15
 
8
16
  export { StyledYoutubePlayerWrapper };
@@ -1,2 +1,2 @@
1
1
  export { default as YoutubePlayer } from './YoutubePlayer';
2
- export type { YoutubePlayerProps, YoutubePlayerSharedProps, } from './YoutubePlayer';
2
+ export type { YoutubePlayerProps, YoutubePlayerSharedProps } from './YoutubePlayer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-video",
3
- "version": "1.251120.1",
3
+ "version": "1.260128.0-rc.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",
@@ -28,12 +28,13 @@
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/types": "^1",
34
+ "@emotion/react": "^11.10.0",
35
+ "@emotion/styled": "^11.10.0",
34
36
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
35
- "react-use": "^17.0.0",
36
- "styled-components": "^5.2.0"
37
+ "react-use": "^17.0.0"
37
38
  },
38
39
  "dependencies": {
39
40
  "classnames": "^2.2.0",
@@ -47,14 +48,14 @@
47
48
  "@elice/icons": "^1.230814.0",
48
49
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
49
50
  "@elice/intl": "0.241127.0",
50
- "@elice/material-shared-types": "1.251120.1",
51
- "@elice/material-shared-utils": "1.251120.1",
52
- "@elice/types": "^1.250612.0-teamleaderboard.1",
51
+ "@elice/material-shared-types": "1.260128.0-rc.0",
52
+ "@elice/material-shared-utils": "1.260128.0-rc.0",
53
+ "@elice/types": "^1.251229.0",
54
+ "@emotion/react": "^11.10.0",
55
+ "@emotion/styled": "^11.10.0",
53
56
  "@types/classnames": "^2.3.1",
54
57
  "@types/react": "~17.0.9",
55
- "@types/styled-components": "^5.1.21",
56
58
  "react": "^17.0.2",
57
- "react-use": "^17.2.4",
58
- "styled-components": "^5.3.0"
59
+ "react-use": "^17.2.4"
59
60
  }
60
61
  }