@clickview/exchange 0.8.1 → 0.9.0-rc.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.
- package/dist/bundles.json +2 -2
- package/dist/css/{13-exchange-1242d9d300.chunk.css → 13-exchange-892d8741cf.chunk.css} +2 -2
- package/dist/css/lite-exchange-9a07250f41.css +17 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/13-9db6e8f8cb-exchange.chunk.js +1 -0
- package/dist/scripts/184-fae52f2f29-exchange.chunk.js +1 -0
- package/dist/scripts/351-0ac39ec1d7-exchange.chunk.js +1 -0
- package/dist/scripts/439-ad5c8f6196-exchange.chunk.js +1 -0
- package/dist/scripts/{497-0ff3d99ee8-exchange.chunk.js → 497-ddcd7da611-exchange.chunk.js} +1 -1
- package/dist/scripts/548-c49d17e6f9-exchange.chunk.js +1 -0
- package/dist/scripts/662-b34d57ceb9-exchange.chunk.js +1 -0
- package/dist/scripts/689-353f2853d9-exchange.chunk.js +2 -0
- package/dist/scripts/{838-e6af4c4150-exchange.chunk.js → 838-942b9eaa7a-exchange.chunk.js} +1 -1
- package/dist/scripts/{851-37d2fd80e0-exchange.chunk.js → 851-d2d0baf9ce-exchange.chunk.js} +1 -1
- package/dist/scripts/854-dbae9e37c2-exchange.chunk.js +1 -0
- package/dist/scripts/875-20cdf05fda-exchange.chunk.js +1 -0
- package/dist/scripts/bundle-dd078f9bf5.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +39 -39
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +11 -11
- package/dist/css/lite-exchange-5fae83ea22.css +0 -17
- package/dist/scripts/13-847d5fd4d3-exchange.chunk.js +0 -1
- package/dist/scripts/184-da12e1b2fc-exchange.chunk.js +0 -1
- package/dist/scripts/351-b871eb7314-exchange.chunk.js +0 -1
- package/dist/scripts/439-f7c46265bc-exchange.chunk.js +0 -1
- package/dist/scripts/548-25e5450f2c-exchange.chunk.js +0 -1
- package/dist/scripts/662-8bbc94eb93-exchange.chunk.js +0 -1
- package/dist/scripts/689-17f0e69123-exchange.chunk.js +0 -2
- package/dist/scripts/854-4dfb19e263-exchange.chunk.js +0 -1
- package/dist/scripts/875-15c240d4f9-exchange.chunk.js +0 -1
- package/dist/scripts/bundle-7deb36bd78.min.js +0 -2
- /package/dist/scripts/{497-0ff3d99ee8-exchange.chunk.js.LICENSE.txt → 497-ddcd7da611-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{572-10603397c0-exchange.chunk.js → 572-7b23cb6ffc-exchange.chunk.js} +0 -0
- /package/dist/scripts/{689-17f0e69123-exchange.chunk.js.LICENSE.txt → 689-353f2853d9-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{851-37d2fd80e0-exchange.chunk.js.LICENSE.txt → 851-d2d0baf9ce-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-7deb36bd78.min.js.LICENSE.txt → bundle-dd078f9bf5.min.js.LICENSE.txt} +0 -0
package/jest.config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const getBaseConfig = require('../../libs/testing/jest.base.config');
|
|
2
|
-
const { compilerOptions } = require('./tsconfig');
|
|
3
|
-
|
|
4
|
-
const paths = {
|
|
5
|
-
...compilerOptions.paths,
|
|
6
|
-
'shared/*': ['./src/shared/*'],
|
|
7
|
-
'apps/*': ['./src/apps/*']
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
delete paths['*'];
|
|
11
|
-
|
|
1
|
+
const getBaseConfig = require('../../libs/testing/jest.base.config');
|
|
2
|
+
const { compilerOptions } = require('./tsconfig');
|
|
3
|
+
|
|
4
|
+
const paths = {
|
|
5
|
+
...compilerOptions.paths,
|
|
6
|
+
'shared/*': ['./src/shared/*'],
|
|
7
|
+
'apps/*': ['./src/apps/*']
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
delete paths['*'];
|
|
11
|
+
|
|
12
12
|
module.exports = getBaseConfig(paths);
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/exchange",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "ClickView exchange",
|
|
5
|
-
"main": "dist/scripts/bundle.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
-
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js",
|
|
9
|
-
"test": "jest",
|
|
10
|
-
"test-watch": "jest --watch"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
15
|
-
},
|
|
16
|
-
"cv": {
|
|
17
|
-
"publishable": true,
|
|
18
|
-
"rebuildable": true
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"moment-timezone": "0.5.43"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/moment-timezone": "0.5.30"
|
|
25
|
-
},
|
|
26
|
-
"author": "Shale Kuzmanovski",
|
|
27
|
-
"license": "ISC",
|
|
28
|
-
"babel": {
|
|
29
|
-
"presets": [
|
|
30
|
-
[
|
|
31
|
-
"@babel/preset-env",
|
|
32
|
-
{
|
|
33
|
-
"corejs": 3,
|
|
34
|
-
"useBuiltIns": "entry"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/exchange",
|
|
3
|
+
"version": "0.9.0-rc.1",
|
|
4
|
+
"description": "ClickView exchange",
|
|
5
|
+
"main": "dist/scripts/bundle.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
+
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js",
|
|
9
|
+
"test": "jest",
|
|
10
|
+
"test-watch": "jest --watch"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
15
|
+
},
|
|
16
|
+
"cv": {
|
|
17
|
+
"publishable": true,
|
|
18
|
+
"rebuildable": true
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"moment-timezone": "0.5.43"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/moment-timezone": "0.5.30"
|
|
25
|
+
},
|
|
26
|
+
"author": "Shale Kuzmanovski",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"babel": {
|
|
29
|
+
"presets": [
|
|
30
|
+
[
|
|
31
|
+
"@babel/preset-env",
|
|
32
|
+
{
|
|
33
|
+
"corejs": 3,
|
|
34
|
+
"useBuiltIns": "entry"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface SetLanguageOptions {
|
|
2
|
-
validate: boolean;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface LanguageSet {
|
|
6
|
-
[languagecode: string]: Language;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface Language {
|
|
10
|
-
englishName: string;
|
|
11
|
-
nativeName: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ICVLanguages {
|
|
15
|
-
VERSION: string;
|
|
16
|
-
|
|
17
|
-
getEnglishName(languageCode: string): string;
|
|
18
|
-
getNativeName(languageCode: string): string;
|
|
19
|
-
getFullEnglishName(languageCode: string): string;
|
|
20
|
-
getFullNativeName(languageCode: string): string;
|
|
21
|
-
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare let CVLanguages: ICVLanguages;
|
|
1
|
+
interface SetLanguageOptions {
|
|
2
|
+
validate: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface LanguageSet {
|
|
6
|
+
[languagecode: string]: Language;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Language {
|
|
10
|
+
englishName: string;
|
|
11
|
+
nativeName: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ICVLanguages {
|
|
15
|
+
VERSION: string;
|
|
16
|
+
|
|
17
|
+
getEnglishName(languageCode: string): string;
|
|
18
|
+
getNativeName(languageCode: string): string;
|
|
19
|
+
getFullEnglishName(languageCode: string): string;
|
|
20
|
+
getFullNativeName(languageCode: string): string;
|
|
21
|
+
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare let CVLanguages: ICVLanguages;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
-
|
|
3
|
-
declare module 'lodash.clonedeep' {
|
|
4
|
-
export = cloneDeep;
|
|
1
|
+
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
+
|
|
3
|
+
declare module 'lodash.clonedeep' {
|
|
4
|
+
export = cloneDeep;
|
|
5
5
|
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
// https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
|
|
5
|
-
|
|
6
|
-
[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
|
|
7
|
-
Exposed=Window]
|
|
8
|
-
interface IntersectionObserver {
|
|
9
|
-
readonly attribute Element? root;
|
|
10
|
-
readonly attribute DOMString rootMargin;
|
|
11
|
-
readonly attribute sequence<double> thresholds;
|
|
12
|
-
void observe(Element target);
|
|
13
|
-
void unobserve(Element target);
|
|
14
|
-
void disconnect();
|
|
15
|
-
sequence<IntersectionObserverEntry> takeRecords();
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
[Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
|
|
19
|
-
interface IntersectionObserverEntry {
|
|
20
|
-
readonly attribute DOMHighResTimeStamp time;
|
|
21
|
-
readonly attribute DOMRectReadOnly rootBounds;
|
|
22
|
-
readonly attribute DOMRectReadOnly boundingClientRect;
|
|
23
|
-
readonly attribute DOMRectReadOnly intersectionRect;
|
|
24
|
-
readonly attribute double intersectionRatio;
|
|
25
|
-
readonly attribute Element target;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
dictionary IntersectionObserverEntryInit {
|
|
29
|
-
required DOMHighResTimeStamp time;
|
|
30
|
-
required DOMRectInit rootBounds;
|
|
31
|
-
required DOMRectInit boundingClientRect;
|
|
32
|
-
required DOMRectInit intersectionRect;
|
|
33
|
-
required double intersectionRatio;
|
|
34
|
-
required Element target;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
dictionary IntersectionObserverInit {
|
|
38
|
-
Element? root = null;
|
|
39
|
-
DOMString rootMargin = "0px";
|
|
40
|
-
(double or sequence<double>) threshold = 0;
|
|
41
|
-
};
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
interface Bounds {
|
|
45
|
-
readonly height: number;
|
|
46
|
-
readonly width: number;
|
|
47
|
-
readonly top: number;
|
|
48
|
-
readonly left: number;
|
|
49
|
-
readonly right: number;
|
|
50
|
-
readonly bottom: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface IntersectionObserverEntry {
|
|
54
|
-
readonly time: number;
|
|
55
|
-
readonly rootBounds: Bounds;
|
|
56
|
-
readonly boundingClientRect: Bounds;
|
|
57
|
-
readonly intersectionRect: Bounds;
|
|
58
|
-
readonly intersectionRatio: number;
|
|
59
|
-
readonly target: Element;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
|
|
63
|
-
|
|
64
|
-
interface IntersectionObserverInit {
|
|
65
|
-
root?: Element | null;
|
|
66
|
-
rootMargin?: string;
|
|
67
|
-
threshold?: number;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare class IntersectionObserver {
|
|
71
|
-
readonly root: Element | null;
|
|
72
|
-
readonly rootMargin: string;
|
|
73
|
-
readonly thresholds: number[];
|
|
74
|
-
|
|
75
|
-
constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
|
|
76
|
-
|
|
77
|
-
observe(target: Element): void;
|
|
78
|
-
unobserve(target: Element): void;
|
|
79
|
-
disconnect(): void;
|
|
80
|
-
takeRecords(): IntersectionObserverEntry[];
|
|
81
|
-
}
|
|
82
|
-
|
|
1
|
+
// https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
|
|
5
|
+
|
|
6
|
+
[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
|
|
7
|
+
Exposed=Window]
|
|
8
|
+
interface IntersectionObserver {
|
|
9
|
+
readonly attribute Element? root;
|
|
10
|
+
readonly attribute DOMString rootMargin;
|
|
11
|
+
readonly attribute sequence<double> thresholds;
|
|
12
|
+
void observe(Element target);
|
|
13
|
+
void unobserve(Element target);
|
|
14
|
+
void disconnect();
|
|
15
|
+
sequence<IntersectionObserverEntry> takeRecords();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
[Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
|
|
19
|
+
interface IntersectionObserverEntry {
|
|
20
|
+
readonly attribute DOMHighResTimeStamp time;
|
|
21
|
+
readonly attribute DOMRectReadOnly rootBounds;
|
|
22
|
+
readonly attribute DOMRectReadOnly boundingClientRect;
|
|
23
|
+
readonly attribute DOMRectReadOnly intersectionRect;
|
|
24
|
+
readonly attribute double intersectionRatio;
|
|
25
|
+
readonly attribute Element target;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
dictionary IntersectionObserverEntryInit {
|
|
29
|
+
required DOMHighResTimeStamp time;
|
|
30
|
+
required DOMRectInit rootBounds;
|
|
31
|
+
required DOMRectInit boundingClientRect;
|
|
32
|
+
required DOMRectInit intersectionRect;
|
|
33
|
+
required double intersectionRatio;
|
|
34
|
+
required Element target;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
dictionary IntersectionObserverInit {
|
|
38
|
+
Element? root = null;
|
|
39
|
+
DOMString rootMargin = "0px";
|
|
40
|
+
(double or sequence<double>) threshold = 0;
|
|
41
|
+
};
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
interface Bounds {
|
|
45
|
+
readonly height: number;
|
|
46
|
+
readonly width: number;
|
|
47
|
+
readonly top: number;
|
|
48
|
+
readonly left: number;
|
|
49
|
+
readonly right: number;
|
|
50
|
+
readonly bottom: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface IntersectionObserverEntry {
|
|
54
|
+
readonly time: number;
|
|
55
|
+
readonly rootBounds: Bounds;
|
|
56
|
+
readonly boundingClientRect: Bounds;
|
|
57
|
+
readonly intersectionRect: Bounds;
|
|
58
|
+
readonly intersectionRatio: number;
|
|
59
|
+
readonly target: Element;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
|
|
63
|
+
|
|
64
|
+
interface IntersectionObserverInit {
|
|
65
|
+
root?: Element | null;
|
|
66
|
+
rootMargin?: string;
|
|
67
|
+
threshold?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class IntersectionObserver {
|
|
71
|
+
readonly root: Element | null;
|
|
72
|
+
readonly rootMargin: string;
|
|
73
|
+
readonly thresholds: number[];
|
|
74
|
+
|
|
75
|
+
constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
|
|
76
|
+
|
|
77
|
+
observe(target: Element): void;
|
|
78
|
+
unobserve(target: Element): void;
|
|
79
|
+
disconnect(): void;
|
|
80
|
+
takeRecords(): IntersectionObserverEntry[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
83
|
export = IntersectionObserver;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare namespace trackJs {
|
|
2
|
-
declare function track(error: string | Error): void;
|
|
1
|
+
declare namespace trackJs {
|
|
2
|
+
declare function track(error: string | Error): void;
|
|
3
3
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import videojs from 'video.js';
|
|
2
|
-
|
|
3
|
-
declare module 'video.js' {
|
|
4
|
-
export interface VideoJsPlayer {
|
|
5
|
-
qualityLevels(): QualityLevelList;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module 'videojs-contrib-quality-levels' {
|
|
10
|
-
export interface QualityLevelList extends videojs.EventTarget {
|
|
11
|
-
[id: string]: QualityLevel;
|
|
12
|
-
selectedIndex: number;
|
|
13
|
-
length: number;
|
|
14
|
-
addQualityLevel(representation: Representation): QualityLevel;
|
|
15
|
-
removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
|
|
16
|
-
getQualityLevelById(id: string): QualityLevel;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface QualityLevel {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Representation {
|
|
26
|
-
id: string;
|
|
27
|
-
enabled(enabled: boolean): boolean;
|
|
28
|
-
}
|
|
1
|
+
import videojs from 'video.js';
|
|
2
|
+
|
|
3
|
+
declare module 'video.js' {
|
|
4
|
+
export interface VideoJsPlayer {
|
|
5
|
+
qualityLevels(): QualityLevelList;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'videojs-contrib-quality-levels' {
|
|
10
|
+
export interface QualityLevelList extends videojs.EventTarget {
|
|
11
|
+
[id: string]: QualityLevel;
|
|
12
|
+
selectedIndex: number;
|
|
13
|
+
length: number;
|
|
14
|
+
addQualityLevel(representation: Representation): QualityLevel;
|
|
15
|
+
removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
|
|
16
|
+
getQualityLevelById(id: string): QualityLevel;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface QualityLevel {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Representation {
|
|
26
|
+
id: string;
|
|
27
|
+
enabled(enabled: boolean): boolean;
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define our templates as a module so that we can use
|
|
3
|
-
* import statements just the same as we do for other
|
|
4
|
-
* ts/js code.
|
|
5
|
-
*/
|
|
6
|
-
declare module '*.scss';
|
|
7
|
-
declare module '*.svg';
|
|
8
|
-
|
|
9
|
-
declare module '*.json' {
|
|
10
|
-
export const value: any;
|
|
11
|
-
export default value;
|
|
1
|
+
/**
|
|
2
|
+
* Define our templates as a module so that we can use
|
|
3
|
+
* import statements just the same as we do for other
|
|
4
|
+
* ts/js code.
|
|
5
|
+
*/
|
|
6
|
+
declare module '*.scss';
|
|
7
|
+
declare module '*.svg';
|
|
8
|
+
|
|
9
|
+
declare module '*.json' {
|
|
10
|
+
export const value: any;
|
|
11
|
+
export default value;
|
|
12
12
|
}
|