@clickview/player 0.0.8-dev.1 → 0.0.8-dev.2
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/dist/en.json +1 -1
- package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +10 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/responses/UnionWrapper.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/responses/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/UserHelper.d.ts +2 -0
- package/dist/player-app.js +2 -2
- package/package.json +3 -3
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +0 -26
- package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
- package/dist/libs/shared/src/interfaces/FavouriteVideoFunc.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay.d.ts +0 -1
- package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +0 -1
- package/dist/projects/player/src/plugins/example-plugin/components/example-react-button/example-react-button.d.ts +0 -1
- package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +0 -2
- package/dist/projects/player/src/utils/scrollbar-helper.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/player",
|
|
3
|
-
"version": "0.0.8-dev.
|
|
3
|
+
"version": "0.0.8-dev.2",
|
|
4
4
|
"description": "ClickView Player",
|
|
5
5
|
"main": "dist/player-app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/core": "7.11.6",
|
|
29
29
|
"@clickview/eslint-config": "1.0.1",
|
|
30
30
|
"@clickview/player-font": "0.0.12",
|
|
31
|
-
"@clickview/tooling": "0.0.26-dev.
|
|
31
|
+
"@clickview/tooling": "0.0.26-dev.2",
|
|
32
32
|
"@storybook/react": "6.0.26",
|
|
33
33
|
"@types/chromecast-caf-sender": "1.0.3",
|
|
34
34
|
"@types/cropperjs": "1.3.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"webpack-dev-server": "3.11.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@clickview/styles": "1.0.19-dev.
|
|
45
|
+
"@clickview/styles": "1.0.19-dev.2",
|
|
46
46
|
"@microsoft/signalr": "5.0.2",
|
|
47
47
|
"cropperjs": "1.5.6",
|
|
48
48
|
"draft-convert": "2.1.10",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { HashObject, Video } from 'libs/analytics/interfaces';
|
|
2
|
-
export interface VideoWatchAnalyticsEvent {
|
|
3
|
-
model: Video;
|
|
4
|
-
playbackStatus: PlaybackStatus;
|
|
5
|
-
}
|
|
6
|
-
export interface PlaybackStatus {
|
|
7
|
-
position: number;
|
|
8
|
-
chapter: number;
|
|
9
|
-
totalDuration: number;
|
|
10
|
-
totalWatched: number;
|
|
11
|
-
hasStarted?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface BaseVideoData {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
trackingCode: string;
|
|
17
|
-
duration: number;
|
|
18
|
-
}
|
|
19
|
-
interface BaseAssocData {
|
|
20
|
-
id: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface VideoAnalyticsPayload {
|
|
24
|
-
video: BaseVideoData;
|
|
25
|
-
rating?: string;
|
|
26
|
-
series?: BaseAssocData;
|
|
27
|
-
folder?: BaseAssocData;
|
|
28
|
-
owner?: BaseAssocData;
|
|
29
|
-
playlist?: BaseAssocData;
|
|
30
|
-
playbackStatus?: PlaybackStatus;
|
|
31
|
-
}
|
|
32
|
-
export declare const VideoDataFormatHelper: {
|
|
33
|
-
getVideoData(options: VideoWatchAnalyticsEvent): VideoAnalyticsPayload;
|
|
34
|
-
/**
|
|
35
|
-
* Map to the same properties recorded in Online.
|
|
36
|
-
* @see _toLogMasterVideo() in AnalyticsService in Online
|
|
37
|
-
*
|
|
38
|
-
* TODO: Video origin and user channel logging - both of these need to be re-worked properly.
|
|
39
|
-
*/
|
|
40
|
-
getLegacyVideoData(options: VideoWatchAnalyticsEvent): HashObject;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Core } from 'libs/common/core';
|
|
3
|
-
import { Image } from 'libs/shared/interfaces';
|
|
4
|
-
import { ImageOptions } from 'libs/shared/utils/ImageHelper';
|
|
5
|
-
import { AnalyticsOptions, HashObject } from 'libs/analytics/interfaces';
|
|
6
|
-
export declare enum AspectRatio {
|
|
7
|
-
SixteenByNine = 0,
|
|
8
|
-
OneByOne = 1,
|
|
9
|
-
TwoByThree = 2,
|
|
10
|
-
NineBySixteen = 3
|
|
11
|
-
}
|
|
12
|
-
interface ThumbnailProps {
|
|
13
|
-
data: Image | string;
|
|
14
|
-
imageOptions?: ImageOptions;
|
|
15
|
-
appLink?: Core.AppLink;
|
|
16
|
-
aspectRatio?: AspectRatio;
|
|
17
|
-
className?: string;
|
|
18
|
-
imageClassName?: string;
|
|
19
|
-
imageStyle?: HashObject;
|
|
20
|
-
preload?: boolean;
|
|
21
|
-
analyticsData?: HashObject;
|
|
22
|
-
analyticsOptions?: AnalyticsOptions;
|
|
23
|
-
onImageLoadError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
24
|
-
}
|
|
25
|
-
export declare function BaseThumbnail(props: React.PropsWithChildren<ThumbnailProps>): React.ReactElement;
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Quality240 from './quality-240.svg';
|
|
2
|
-
import Quality480 from './quality-480.svg';
|
|
3
|
-
import QualityHD from './quality-hd.svg';
|
|
4
|
-
import CloseCaption from './close-caption.svg';
|
|
5
|
-
import Contract from './contract.svg';
|
|
6
|
-
import FullScreen from './full-screen.svg';
|
|
7
|
-
import Mute from './mute.svg';
|
|
8
|
-
import Next from './next.svg';
|
|
9
|
-
import Play from './play.svg';
|
|
10
|
-
import PlayCircle from './play-circle.svg';
|
|
11
|
-
import Pause from './pause.svg';
|
|
12
|
-
import Previous from './previous.svg';
|
|
13
|
-
import Volume from './volume.svg';
|
|
14
|
-
export { Quality240, Quality480, QualityHD, CloseCaption, Contract, FullScreen, Mute, Next, Play, PlayCircle, Pause, Previous, Volume };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './engagement-overlay.scss';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './example-button.scss';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|