@elice/material-video-file 1.240722.0-dev2.0 → 1.240722.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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
3
  import type { MaterialVideoFilePlayerProps } from './MaterialVideoFilePlayer';
4
4
  import type { UseMaterialVideoFileApiProps } from './useMaterialVideoFileApi';
5
- type PickedVideoPlayerProps = Pick<MaterialVideoFilePlayerProps, 'materialVideoFileTrackerDisabled' | 'mainLecturePageId' | 'lms' | 'lmsOrganizationBusinessType' | 'emptyComponent' | 'autoPlay' | 'autoPlayNext' | 'endControl' | 'eliceVideoPlayerUrl' | 'onNavigatePreviousLecturePage' | 'onNavigateNextLecturePage' | 'onTranscriptToggle'>;
5
+ type PickedVideoPlayerProps = Pick<MaterialVideoFilePlayerProps, 'materialVideoFileTrackerDisabled' | 'mainLecturePageId' | 'lms' | 'lmsOrganizationBusinessType' | 'emptyComponent' | 'autoPlay' | 'autoPlayNext' | 'endControl' | 'eliceVideoPlayerUrl' | 'onNavigatePreviousLecturePage' | 'onNavigateNextLecturePage'>;
6
6
  export interface MaterialVideoFileProps extends PickedVideoPlayerProps, UseMaterialVideoFileApiProps {
7
7
  materialVideoFileId: number;
8
8
  className?: string;
@@ -38,8 +38,6 @@ export interface MaterialVideoFilePlayerProps extends UseMaterialVideoFileApiRet
38
38
  onNavigatePreviousLecturePage?: () => void;
39
39
  /** Navigate to next lecture page. */
40
40
  onNavigateNextLecturePage?: () => void;
41
- /** Toggle transcript. */
42
- onTranscriptToggle?: (enabled: boolean) => void;
43
41
  }
44
42
  declare const MaterialVideoFilePlayer: React.FC<MaterialVideoFilePlayerProps>;
45
43
  export default MaterialVideoFilePlayer;
@@ -52,7 +52,6 @@ var MaterialVideoFilePlayer = function MaterialVideoFilePlayer(_ref) {
52
52
  emptyComponent = _ref$emptyComponent === void 0 ? null : _ref$emptyComponent,
53
53
  onNavigatePreviousLecturePage = _ref.onNavigatePreviousLecturePage,
54
54
  onNavigateNextLecturePage = _ref.onNavigateNextLecturePage,
55
- _onTranscriptToggle = _ref.onTranscriptToggle,
56
55
  accountApi = _ref.accountApi;
57
56
  var _a;
58
57
  var prefixCls = 'em-video-player';
@@ -161,11 +160,6 @@ var MaterialVideoFilePlayer = function MaterialVideoFilePlayer(_ref) {
161
160
  } else if (dir === 'next' && onNavigateNextLecturePage) {
162
161
  onNavigateNextLecturePage();
163
162
  }
164
- },
165
- onTranscriptToggle: function onTranscriptToggle(enabled) {
166
- if (typeof _onTranscriptToggle === 'function') {
167
- _onTranscriptToggle(enabled);
168
- }
169
163
  }
170
164
  });
171
165
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
3
  import type { MaterialVideoFilePlayerProps } from './MaterialVideoFilePlayer';
4
4
  import type { UseMaterialVideoFileApiProps } from './useMaterialVideoFileApi';
5
- type PickedVideoPlayerProps = Pick<MaterialVideoFilePlayerProps, 'materialVideoFileTrackerDisabled' | 'mainLecturePageId' | 'lms' | 'lmsOrganizationBusinessType' | 'emptyComponent' | 'autoPlay' | 'autoPlayNext' | 'endControl' | 'eliceVideoPlayerUrl' | 'onNavigatePreviousLecturePage' | 'onNavigateNextLecturePage' | 'onTranscriptToggle'>;
5
+ type PickedVideoPlayerProps = Pick<MaterialVideoFilePlayerProps, 'materialVideoFileTrackerDisabled' | 'mainLecturePageId' | 'lms' | 'lmsOrganizationBusinessType' | 'emptyComponent' | 'autoPlay' | 'autoPlayNext' | 'endControl' | 'eliceVideoPlayerUrl' | 'onNavigatePreviousLecturePage' | 'onNavigateNextLecturePage'>;
6
6
  export interface MaterialVideoFileProps extends PickedVideoPlayerProps, UseMaterialVideoFileApiProps {
7
7
  materialVideoFileId: number;
8
8
  className?: string;
@@ -38,8 +38,6 @@ export interface MaterialVideoFilePlayerProps extends UseMaterialVideoFileApiRet
38
38
  onNavigatePreviousLecturePage?: () => void;
39
39
  /** Navigate to next lecture page. */
40
40
  onNavigateNextLecturePage?: () => void;
41
- /** Toggle transcript. */
42
- onTranscriptToggle?: (enabled: boolean) => void;
43
41
  }
44
42
  declare const MaterialVideoFilePlayer: React.FC<MaterialVideoFilePlayerProps>;
45
43
  export default MaterialVideoFilePlayer;
@@ -43,7 +43,6 @@ var MaterialVideoFilePlayer = function MaterialVideoFilePlayer(_ref) {
43
43
  emptyComponent = _ref$emptyComponent === void 0 ? null : _ref$emptyComponent,
44
44
  onNavigatePreviousLecturePage = _ref.onNavigatePreviousLecturePage,
45
45
  onNavigateNextLecturePage = _ref.onNavigateNextLecturePage,
46
- _onTranscriptToggle = _ref.onTranscriptToggle,
47
46
  accountApi = _ref.accountApi;
48
47
  var _a;
49
48
  var prefixCls = 'em-video-player';
@@ -152,11 +151,6 @@ var MaterialVideoFilePlayer = function MaterialVideoFilePlayer(_ref) {
152
151
  } else if (dir === 'next' && onNavigateNextLecturePage) {
153
152
  onNavigateNextLecturePage();
154
153
  }
155
- },
156
- onTranscriptToggle: function onTranscriptToggle(enabled) {
157
- if (typeof _onTranscriptToggle === 'function') {
158
- _onTranscriptToggle(enabled);
159
- }
160
154
  }
161
155
  });
162
156
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-video-file",
3
- "version": "1.240722.0-dev2.0",
3
+ "version": "1.240722.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",
@@ -50,12 +50,12 @@
50
50
  "@elice/icons": "^1.230814.0",
51
51
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
52
52
  "@elice/intl": "0.240425.0-rc.2",
53
- "@elice/material-shared-types": "1.240722.0-dev2.0",
54
- "@elice/material-shared-utils": "1.240722.0-dev2.0",
53
+ "@elice/material-shared-types": "1.240722.0",
54
+ "@elice/material-shared-utils": "1.240722.0",
55
55
  "@elice/messenger": "^1.240426.0",
56
56
  "@elice/openapi-client-account": "^1.230814.0",
57
57
  "@elice/types": "^1.240709.0",
58
- "@elice/videoplayer-client": "^2.240717.0-transcript.0",
58
+ "@elice/videoplayer-client": "^2.240618.1",
59
59
  "@types/classnames": "^2.3.1",
60
60
  "@types/query-string": "^6.3.0",
61
61
  "@types/react": "~17.0.9",