entcore 4.0.0-dev.0 → 4.0.0-release.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.
package/package.json
CHANGED
package/src/ts/deps.d.ts
CHANGED
|
@@ -24,6 +24,14 @@ declare interface Document{
|
|
|
24
24
|
caretPositionFromPoint(x: number, y: number);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
declare interface Xiti {
|
|
28
|
+
conf: any;
|
|
29
|
+
ATInternet: any;
|
|
30
|
+
structure: any;
|
|
31
|
+
run(path?: string): Promise<void>;
|
|
32
|
+
click(name: string, element: Element): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
declare interface Window{
|
|
28
36
|
MathJax: any;
|
|
29
37
|
Prism: any;
|
|
@@ -31,7 +39,7 @@ declare interface Window{
|
|
|
31
39
|
html_beautify: any;
|
|
32
40
|
jQuery: any;
|
|
33
41
|
notLoggedIn: boolean;
|
|
34
|
-
xiti
|
|
42
|
+
xiti: Xiti;
|
|
35
43
|
}
|
|
36
44
|
|
|
37
45
|
declare interface Node{
|
|
@@ -9,7 +9,6 @@ export * from './completeChange';
|
|
|
9
9
|
export * from './connectorLightbox';
|
|
10
10
|
export * from './contactChip';
|
|
11
11
|
export * from './contentDivider';
|
|
12
|
-
export * from './documentIsCaptation';
|
|
13
12
|
export * from './dotsMenu';
|
|
14
13
|
export * from './dragItem';
|
|
15
14
|
export * from './dropDown';
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* This utility class allows sending usage data events to the server.
|
|
3
3
|
*/
|
|
4
4
|
export declare class VideoEventTrackerService {
|
|
5
|
-
|
|
6
|
-
elem: HTMLVideoElement;
|
|
7
|
-
cb: (this: HTMLVideoElement, ev: Event) => any;
|
|
8
|
-
}[];
|
|
5
|
+
videos: any[];
|
|
9
6
|
/**
|
|
10
7
|
* Generates a new FormData containing generic video tracking metadata :
|
|
11
8
|
* - device,
|
|
@@ -19,14 +16,10 @@ export declare class VideoEventTrackerService {
|
|
|
19
16
|
private generateEvent(type, videoId, source);
|
|
20
17
|
private onPlay(event);
|
|
21
18
|
private generateViewEventFor(video);
|
|
22
|
-
/** Track VIDEO_VIEW and VIDEO_PLAY events for a given <video> element. */
|
|
23
|
-
trackOne(video: HTMLVideoElement): void;
|
|
24
|
-
untrackOne(video: HTMLVideoElement): void;
|
|
25
19
|
/**
|
|
26
|
-
* Look for every <video
|
|
20
|
+
* Look for every <video> tag in the HTML document, and the VIDEO_VIEW and VIDEO_PLAY events.
|
|
27
21
|
* If applied to an angular scope, it will auto-release the listeners and prevent memory leaks.
|
|
28
22
|
* Otherwise, you must call untrackAll() to release the listeners.
|
|
29
|
-
* @param $scope
|
|
30
23
|
*/
|
|
31
24
|
trackAll($scope: any): void;
|
|
32
25
|
/** Release event listeners previously put on <video> tags, @see trackAll() */
|