@elice/material-video-file 1.240718.0-trasncript.1 → 1.240718.1

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;
@@ -38,7 +38,6 @@ const MaterialVideoFilePlayer = ({
38
38
  emptyComponent = null,
39
39
  onNavigatePreviousLecturePage,
40
40
  onNavigateNextLecturePage,
41
- onTranscriptToggle,
42
41
  accountApi
43
42
  }) => {
44
43
  var _a;
@@ -136,11 +135,6 @@ const MaterialVideoFilePlayer = ({
136
135
  } else if (dir === 'next' && onNavigateNextLecturePage) {
137
136
  onNavigateNextLecturePage();
138
137
  }
139
- },
140
- onTranscriptToggle: enabled => {
141
- if (typeof onTranscriptToggle === 'function') {
142
- onTranscriptToggle(enabled);
143
- }
144
138
  }
145
139
  });
146
140
  };
@@ -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;
@@ -34,7 +34,6 @@ const MaterialVideoFilePlayer = ({
34
34
  emptyComponent = null,
35
35
  onNavigatePreviousLecturePage,
36
36
  onNavigateNextLecturePage,
37
- onTranscriptToggle,
38
37
  accountApi
39
38
  }) => {
40
39
  var _a;
@@ -132,11 +131,6 @@ const MaterialVideoFilePlayer = ({
132
131
  } else if (dir === 'next' && onNavigateNextLecturePage) {
133
132
  onNavigateNextLecturePage();
134
133
  }
135
- },
136
- onTranscriptToggle: enabled => {
137
- if (typeof onTranscriptToggle === 'function') {
138
- onTranscriptToggle(enabled);
139
- }
140
134
  }
141
135
  });
142
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-video-file",
3
- "version": "1.240718.0-trasncript.1",
3
+ "version": "1.240718.1",
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",
@@ -52,12 +52,12 @@
52
52
  "@elice/icons": "^1.230814.0",
53
53
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
54
54
  "@elice/intl": "0.240425.0-rc.2",
55
- "@elice/material-shared-types": "1.240718.0-trasncript.1",
56
- "@elice/material-shared-utils": "1.240718.0-trasncript.1",
55
+ "@elice/material-shared-types": "1.240718.1",
56
+ "@elice/material-shared-utils": "1.240718.1",
57
57
  "@elice/messenger": "^1.240426.0",
58
58
  "@elice/openapi-client-account": "^1.230814.0",
59
59
  "@elice/types": "1.240619.0",
60
- "@elice/videoplayer-client": "^2.240717.0-transcript.0",
60
+ "@elice/videoplayer-client": "^2.240618.1",
61
61
  "@types/classnames": "^2.3.1",
62
62
  "@types/query-string": "^6.3.0",
63
63
  "@types/react": "~17.0.9",
@@ -66,5 +66,5 @@
66
66
  "react-use": "^17.2.4",
67
67
  "styled-components": "^5.3.0"
68
68
  },
69
- "gitHead": "8d0acefda30430959f8f115ad467d2449f86d8a7"
69
+ "gitHead": "c1b2b8f98c5eed547941a327188a09f6ed21f6e4"
70
70
  }