@elicecontents/content-ui 1.0.24-rc.2 → 1.0.24

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.
@@ -122,11 +122,11 @@ var Layout = function Layout(_ref) {
122
122
  var HeaderContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
123
123
  target: "efnp08i6"
124
124
  })("production" === "production" ? {
125
- name: "gwvfyq",
126
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
125
+ name: "14ia2gs",
126
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
127
127
  } : {
128
- name: "gwvfyq",
129
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
128
+ name: "14ia2gs",
129
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
130
130
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
131
131
  });
132
132
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -141,7 +141,7 @@ var HeaderTitle = LayoutHeaderTitle.default;
141
141
  var HeaderSubTitle = LayoutHeaderSubTitle.default;
142
142
  var ContentContainerInner = /*#__PURE__*/_styled__default.default(Stack, {
143
143
  target: "efnp08i5"
144
- })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
144
+ })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
145
145
  var theme = _ref3.theme;
146
146
  return theme.palette.primary.main;
147
147
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -211,22 +211,22 @@ var ContentContainer = function ContentContainer(_ref5) {
211
211
  };
212
212
  }, []);
213
213
  return jsxRuntime.jsxs(Stack, {
214
- sx: Object.assign({
214
+ sx: {
215
215
  position: 'relative',
216
216
  width: '100%',
217
217
  height: '100%'
218
- }, sx),
218
+ },
219
219
  children: [jsxRuntime.jsxs(ContentContainerInner, {
220
220
  ref: contentRef,
221
221
  theme: theme,
222
222
  flex: 1,
223
- sx: {
223
+ sx: Object.assign(Object.assign({}, sx), {
224
224
  scrollbarWidth: 'none',
225
225
  msOverflowStyle: 'none',
226
226
  '&::-webkit-scrollbar': {
227
227
  display: 'none'
228
228
  }
229
- },
229
+ }),
230
230
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsxRuntime.jsx(ScrollMoreButton, {
231
231
  children: jsxRuntime.jsx(ScrollMoreIcon.default, {
232
232
  size: 32,
@@ -282,20 +282,118 @@ function EliceVideoV2(_ref3) {
282
282
  }), jsxRuntime.jsxs("video", {
283
283
  ref: function ref(r) {
284
284
  videoRef.current = r;
285
- requestAnimationFrame(function () {
286
- var player = videojs__default.default(r, Object.assign(Object.assign({}, options), {
287
- disablePictureInPicture: true,
288
- fluid: true
289
- }));
290
- playerRef.current = player;
291
- });
292
- return function () {
293
- var _a;
294
- if (playerRef.current) {
295
- (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
296
- playerRef.current = null;
297
- }
298
- };
285
+ if (!videoRef.current) {
286
+ requestAnimationFrame(function () {
287
+ var player = videojs__default.default(r, defu(options, {
288
+ disablePictureInPicture: true,
289
+ fluid: true,
290
+ languages: {
291
+ ko: {
292
+ "Audio Player": "오디오 플레이어",
293
+ "Video Player": "비디오 플레이어",
294
+ "Play": "재생",
295
+ "Pause": "일시중지",
296
+ "Replay": "다시 재생",
297
+ "Current Time": "현재 시간",
298
+ "Duration": "지정 기간",
299
+ "Remaining Time": "남은 시간",
300
+ "Stream Type": "스트리밍 유형",
301
+ "LIVE": "라이브",
302
+ "Seek to live, currently behind live": "Seek to Live, 현재 생중계보다 뒤처짐",
303
+ "Seek to live, currently playing live": "Seek to Live, 현재 생중계 스트리밍 중",
304
+ "Loaded": "로드됨",
305
+ "Progress": "진행",
306
+ "Progress Bar": "진행 표시줄",
307
+ "progress bar timing: currentTime={1} duration={2}": "{2} 중 {1}",
308
+ "Fullscreen": "전체 화면",
309
+ "Exit Fullscreen": "전체 화면 해제",
310
+ "Mute": "음소거",
311
+ "Unmute": "음소거 해제",
312
+ "Playback Rate": "재생 속도",
313
+ "Subtitles": "자막",
314
+ "subtitles off": "자막 끄기",
315
+ "Captions": "자막",
316
+ "captions off": "자막 끄기",
317
+ "Chapters": "챕터",
318
+ "Descriptions": "제품 설명",
319
+ "descriptions off": "제품 설명 끄기",
320
+ "Audio Track": "오디오 트랙",
321
+ "Volume Level": "볼륨 레벨",
322
+ "You aborted the media playback": "비디오 재생을 취소했습니다.",
323
+ "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
324
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
325
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
326
+ "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다.",
327
+ "The media is encrypted and we do not have the keys to decrypt it.": "미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.",
328
+ "Play Video": "영상 재생",
329
+ "Close": "닫기",
330
+ "Close Modal Dialog": "대화 상자 닫기",
331
+ "Modal Window": "모달 창",
332
+ "This is a modal window": "모달 창입니다",
333
+ "This modal can be closed by pressing the Escape key or activating the close button.": "이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",
334
+ ", opens captions settings dialog": ", 자막 설정 대화 상자가 열립니다",
335
+ ", opens subtitles settings dialog": ", 자막 설정 대화 상자가 열립니다",
336
+ ", opens descriptions settings dialog": ", 설명 설정 대화 상자가 열립니다",
337
+ ", selected": ", 선택됨",
338
+ "captions settings": "자막 설정",
339
+ "subtitles settings": "자막 설정",
340
+ "descriptions settings": "설명 설정",
341
+ "Text": "텍스트",
342
+ "White": "화이트",
343
+ "Black": "블랙",
344
+ "Red": "레드",
345
+ "Green": "그린",
346
+ "Blue": "블루",
347
+ "Yellow": "옐로우",
348
+ "Magenta": "마젠타",
349
+ "Cyan": "씨엉",
350
+ "Background": "배경",
351
+ "Window": "창",
352
+ "Transparent": "투명",
353
+ "Semi-Transparent": "반투명",
354
+ "Opaque": "불투명",
355
+ "Font Size": "폰트 크기",
356
+ "Text Edge Style": "텍스트 가장자리 스타일",
357
+ "None": "없음",
358
+ "Raised": "글자 위치 올림",
359
+ "Depressed": "글자 위치 내림",
360
+ "Uniform": "균일",
361
+ "Drop shadow": "그림자 효과 넣기",
362
+ "Font Family": "폰트 모음",
363
+ "Proportional Sans-Serif": "비례 산세리프체",
364
+ "Monospace Sans-Serif": "고정폭 산세리프체",
365
+ "Proportional Serif": "비례 세리프체",
366
+ "Monospace Serif": "고정폭 세리프체",
367
+ "Casual": "캐주얼",
368
+ "Script": "스크립트",
369
+ "Small Caps": "소문자",
370
+ "Reset": "리셋",
371
+ "restore all settings to the default values": "모든 설정을 기본값으로 복원",
372
+ "Done": "완료",
373
+ "Caption Settings Dialog": "자막 설정 대화 상자",
374
+ "Beginning of dialog window. Escape will cancel and close the window.": "대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.",
375
+ "End of dialog window.": "대화창 종료",
376
+ "{1} is loading.": "{1}이(가) 로딩 중입니다.",
377
+ "Exit Picture-in-Picture": "Picture-in-Picture 종료",
378
+ "Picture-in-Picture": "Picture-in-Picture",
379
+ "No content": "콘텐츠 없음",
380
+ "Color": "색상",
381
+ "Opacity": "투명도",
382
+ "Text Background": "텍스트 배경",
383
+ "Caption Area Background": "자막 배경"
384
+ }
385
+ }
386
+ }));
387
+ playerRef.current = player;
388
+ });
389
+ return function () {
390
+ var _a;
391
+ if (playerRef.current) {
392
+ (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
393
+ playerRef.current = null;
394
+ }
395
+ };
396
+ }
299
397
  },
300
398
  className: "video-js elice-video vjs-default-skin",
301
399
  children: [source.map(function (srcInfo) {
@@ -115,11 +115,11 @@ var Layout = function Layout(_ref) {
115
115
  var HeaderContainerInner = /*#__PURE__*/_styled(Stack, {
116
116
  target: "efnp08i6"
117
117
  })("production" === "production" ? {
118
- name: "gwvfyq",
119
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row"
118
+ name: "14ia2gs",
119
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row"
120
120
  } : {
121
- name: "gwvfyq",
122
- styles: "height:74px;width:100%;max-width:1200px;justify-content:space-between;flex-direction:row",
121
+ name: "14ia2gs",
122
+ styles: "height:74px;width:100%;justify-content:space-between;flex-direction:row",
123
123
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
124
124
  });
125
125
  var HeaderContainer = function HeaderContainer(_ref2) {
@@ -134,7 +134,7 @@ var HeaderTitle = LayoutHeaderTitle;
134
134
  var HeaderSubTitle = LayoutHeaderSubTitle;
135
135
  var ContentContainerInner = /*#__PURE__*/_styled(Stack, {
136
136
  target: "efnp08i5"
137
- })("flex:1;width:100%;max-width:1200px;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
137
+ })("flex:1;width:100%;max-height:calc(100vh - 74px - 92px);overflow-y:auto;min-height:0;position:relative;&::-webkit-scrollbar{width:8px;}&::-webkit-scrollbar-thumb{background-color:", function (_ref3) {
138
138
  var theme = _ref3.theme;
139
139
  return theme.palette.primary.main;
140
140
  }, ";border-radius:4px;}&::-webkit-scrollbar-track{background-color:", function (_ref4) {
@@ -204,22 +204,22 @@ var ContentContainer = function ContentContainer(_ref5) {
204
204
  };
205
205
  }, []);
206
206
  return jsxs(Stack, {
207
- sx: Object.assign({
207
+ sx: {
208
208
  position: 'relative',
209
209
  width: '100%',
210
210
  height: '100%'
211
- }, sx),
211
+ },
212
212
  children: [jsxs(ContentContainerInner, {
213
213
  ref: contentRef,
214
214
  theme: theme,
215
215
  flex: 1,
216
- sx: {
216
+ sx: Object.assign(Object.assign({}, sx), {
217
217
  scrollbarWidth: 'none',
218
218
  msOverflowStyle: 'none',
219
219
  '&::-webkit-scrollbar': {
220
220
  display: 'none'
221
221
  }
222
- },
222
+ }),
223
223
  children: [children, enableScrollTracking && hasScroll && !isScrollActive && jsx(ScrollMoreButton, {
224
224
  children: jsx(ScrollMoreIcon, {
225
225
  size: 32,
@@ -275,20 +275,118 @@ function EliceVideoV2(_ref3) {
275
275
  }), jsxs("video", {
276
276
  ref: function ref(r) {
277
277
  videoRef.current = r;
278
- requestAnimationFrame(function () {
279
- var player = videojs(r, Object.assign(Object.assign({}, options), {
280
- disablePictureInPicture: true,
281
- fluid: true
282
- }));
283
- playerRef.current = player;
284
- });
285
- return function () {
286
- var _a;
287
- if (playerRef.current) {
288
- (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
289
- playerRef.current = null;
290
- }
291
- };
278
+ if (!videoRef.current) {
279
+ requestAnimationFrame(function () {
280
+ var player = videojs(r, defu(options, {
281
+ disablePictureInPicture: true,
282
+ fluid: true,
283
+ languages: {
284
+ ko: {
285
+ "Audio Player": "오디오 플레이어",
286
+ "Video Player": "비디오 플레이어",
287
+ "Play": "재생",
288
+ "Pause": "일시중지",
289
+ "Replay": "다시 재생",
290
+ "Current Time": "현재 시간",
291
+ "Duration": "지정 기간",
292
+ "Remaining Time": "남은 시간",
293
+ "Stream Type": "스트리밍 유형",
294
+ "LIVE": "라이브",
295
+ "Seek to live, currently behind live": "Seek to Live, 현재 생중계보다 뒤처짐",
296
+ "Seek to live, currently playing live": "Seek to Live, 현재 생중계 스트리밍 중",
297
+ "Loaded": "로드됨",
298
+ "Progress": "진행",
299
+ "Progress Bar": "진행 표시줄",
300
+ "progress bar timing: currentTime={1} duration={2}": "{2} 중 {1}",
301
+ "Fullscreen": "전체 화면",
302
+ "Exit Fullscreen": "전체 화면 해제",
303
+ "Mute": "음소거",
304
+ "Unmute": "음소거 해제",
305
+ "Playback Rate": "재생 속도",
306
+ "Subtitles": "자막",
307
+ "subtitles off": "자막 끄기",
308
+ "Captions": "자막",
309
+ "captions off": "자막 끄기",
310
+ "Chapters": "챕터",
311
+ "Descriptions": "제품 설명",
312
+ "descriptions off": "제품 설명 끄기",
313
+ "Audio Track": "오디오 트랙",
314
+ "Volume Level": "볼륨 레벨",
315
+ "You aborted the media playback": "비디오 재생을 취소했습니다.",
316
+ "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
317
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
318
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
319
+ "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다.",
320
+ "The media is encrypted and we do not have the keys to decrypt it.": "미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.",
321
+ "Play Video": "영상 재생",
322
+ "Close": "닫기",
323
+ "Close Modal Dialog": "대화 상자 닫기",
324
+ "Modal Window": "모달 창",
325
+ "This is a modal window": "모달 창입니다",
326
+ "This modal can be closed by pressing the Escape key or activating the close button.": "이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",
327
+ ", opens captions settings dialog": ", 자막 설정 대화 상자가 열립니다",
328
+ ", opens subtitles settings dialog": ", 자막 설정 대화 상자가 열립니다",
329
+ ", opens descriptions settings dialog": ", 설명 설정 대화 상자가 열립니다",
330
+ ", selected": ", 선택됨",
331
+ "captions settings": "자막 설정",
332
+ "subtitles settings": "자막 설정",
333
+ "descriptions settings": "설명 설정",
334
+ "Text": "텍스트",
335
+ "White": "화이트",
336
+ "Black": "블랙",
337
+ "Red": "레드",
338
+ "Green": "그린",
339
+ "Blue": "블루",
340
+ "Yellow": "옐로우",
341
+ "Magenta": "마젠타",
342
+ "Cyan": "씨엉",
343
+ "Background": "배경",
344
+ "Window": "창",
345
+ "Transparent": "투명",
346
+ "Semi-Transparent": "반투명",
347
+ "Opaque": "불투명",
348
+ "Font Size": "폰트 크기",
349
+ "Text Edge Style": "텍스트 가장자리 스타일",
350
+ "None": "없음",
351
+ "Raised": "글자 위치 올림",
352
+ "Depressed": "글자 위치 내림",
353
+ "Uniform": "균일",
354
+ "Drop shadow": "그림자 효과 넣기",
355
+ "Font Family": "폰트 모음",
356
+ "Proportional Sans-Serif": "비례 산세리프체",
357
+ "Monospace Sans-Serif": "고정폭 산세리프체",
358
+ "Proportional Serif": "비례 세리프체",
359
+ "Monospace Serif": "고정폭 세리프체",
360
+ "Casual": "캐주얼",
361
+ "Script": "스크립트",
362
+ "Small Caps": "소문자",
363
+ "Reset": "리셋",
364
+ "restore all settings to the default values": "모든 설정을 기본값으로 복원",
365
+ "Done": "완료",
366
+ "Caption Settings Dialog": "자막 설정 대화 상자",
367
+ "Beginning of dialog window. Escape will cancel and close the window.": "대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.",
368
+ "End of dialog window.": "대화창 종료",
369
+ "{1} is loading.": "{1}이(가) 로딩 중입니다.",
370
+ "Exit Picture-in-Picture": "Picture-in-Picture 종료",
371
+ "Picture-in-Picture": "Picture-in-Picture",
372
+ "No content": "콘텐츠 없음",
373
+ "Color": "색상",
374
+ "Opacity": "투명도",
375
+ "Text Background": "텍스트 배경",
376
+ "Caption Area Background": "자막 배경"
377
+ }
378
+ }
379
+ }));
380
+ playerRef.current = player;
381
+ });
382
+ return function () {
383
+ var _a;
384
+ if (playerRef.current) {
385
+ (_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.dispose();
386
+ playerRef.current = null;
387
+ }
388
+ };
389
+ }
292
390
  },
293
391
  className: "video-js elice-video vjs-default-skin",
294
392
  children: [source.map(function (srcInfo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elicecontents/content-ui",
3
- "version": "1.0.24-rc.2",
3
+ "version": "1.0.24",
4
4
  "description": "A set of UI components for creating content of Elice",
5
5
  "author": "Elice <contact@elice.io>",
6
6
  "license": "UNLICENSED",