@latest-thinking/lt-player 1.0.4-c → 1.0.4-h
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/css/lt-player-main.css +1 -2
- package/dist/css/lt-player-main.css.map +1 -1
- package/dist/js/lt-player-main.js +1 -1
- package/dist/js/lt-player-main.js.map +1 -1
- package/package.json +6 -5
- package/src/assets/sass/core/_fonts.scss +5 -5
- package/src/components/poster/LTPlayerPoster.ts +1 -1
- package/src/components/share/LTPlayerShareEvents.ts +20 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latest-thinking/lt-player",
|
|
3
|
-
"version": "1.0.4-
|
|
3
|
+
"version": "1.0.4-h",
|
|
4
4
|
"description": "LT player.",
|
|
5
5
|
"main": "dist/js/lt-player-main.js",
|
|
6
6
|
"module": "dist/js/lt-player-main.js",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"css-loader": "^6.7.2",
|
|
30
30
|
"eslint": "^8.7.0",
|
|
31
31
|
"eslint-webpack-plugin": "^3.1.1",
|
|
32
|
-
"file-loader": "^6.2.0",
|
|
33
32
|
"fixed": "^0.3.1",
|
|
34
33
|
"hammerjs": "^2.0.8",
|
|
35
34
|
"handlebars": "^4.7.7",
|
|
@@ -42,13 +41,12 @@
|
|
|
42
41
|
"postcss-preset-env": "^7.2.3",
|
|
43
42
|
"rangetouch": "^2.0.1",
|
|
44
43
|
"raw-loader": "^4.0.2",
|
|
45
|
-
"
|
|
44
|
+
"resolve-url-loader": "^5.0.0",
|
|
46
45
|
"stylelint": "^14.2.0",
|
|
47
46
|
"stylelint-config-standard": "^24.0.0",
|
|
48
47
|
"stylelint-webpack-plugin": "^3.1.1",
|
|
49
48
|
"ts-loader": "^9.4.1",
|
|
50
49
|
"typescript": "^4.9.3",
|
|
51
|
-
"webpack": "^5.66.0",
|
|
52
50
|
"webpack-cli": "^4.9.1",
|
|
53
51
|
"webpack-dev-server": "^4.7.3",
|
|
54
52
|
"webpack-merge": "^5.8.0"
|
|
@@ -59,6 +57,9 @@
|
|
|
59
57
|
"@typescript-eslint/parser": "^5.48.0",
|
|
60
58
|
"dotenv-webpack": "^8.0.1",
|
|
61
59
|
"eslint": "^8.31.0",
|
|
62
|
-
"eslint-webpack-plugin": "^3.1.1"
|
|
60
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
61
|
+
"sass": "^1.60.0",
|
|
62
|
+
"sass-loader": "^13.2.2",
|
|
63
|
+
"webpack": "^5.76.3"
|
|
63
64
|
}
|
|
64
65
|
}
|
|
@@ -22,31 +22,31 @@
|
|
|
22
22
|
|
|
23
23
|
@font-face {
|
|
24
24
|
font-family: "MuseoSans";
|
|
25
|
-
src: url('
|
|
25
|
+
src: url('../../fonts/museo/MuseoSans-100.otf') format('opentype');
|
|
26
26
|
font-weight: 100;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@font-face {
|
|
30
30
|
font-family: "MuseoSans";
|
|
31
|
-
src: url('
|
|
31
|
+
src: url('../../fonts/museo/MuseoSans-300.otf') format('opentype');
|
|
32
32
|
font-weight: 300;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@font-face {
|
|
36
36
|
font-family: "MuseoSans";
|
|
37
|
-
src: url('
|
|
37
|
+
src: url('../../fonts/museo/MuseoSans-500.otf') format('opentype');
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@font-face {
|
|
42
42
|
font-family: "MuseoSans";
|
|
43
|
-
src: url('
|
|
43
|
+
src: url('../../fonts/museo/MuseoSans-700.otf') format('opentype');
|
|
44
44
|
font-weight: 700;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@font-face {
|
|
48
48
|
font-family: "MuseoSans";
|
|
49
|
-
src: url('
|
|
49
|
+
src: url('../../fonts/museo/MuseoSans-900.otf') format('opentype');
|
|
50
50
|
font-weight: 900;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -22,7 +22,7 @@ export class LTPlayerPoster {
|
|
|
22
22
|
|
|
23
23
|
const logo: string = this.iconService.getLogo();
|
|
24
24
|
|
|
25
|
-
const posterTemplate = this.templateService.getPoster({config:this.config, logoBig: logo, isShare : !!(this.config.
|
|
25
|
+
const posterTemplate = this.templateService.getPoster({config:this.config, logoBig: logo, isShare : !!(this.config.isShareData())});
|
|
26
26
|
|
|
27
27
|
const container = this.plyr.elements.wrapper;
|
|
28
28
|
|
|
@@ -56,17 +56,17 @@ export namespace LTPlayerShareEvents {
|
|
|
56
56
|
}
|
|
57
57
|
})
|
|
58
58
|
|
|
59
|
-
common.getSelector(instance).shareContainer
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
if (common.getSelector(instance).shareContainer) {
|
|
60
|
+
common.getSelector(instance).shareContainer.addEventListener('click', function LTPlayerShareArea(event) {
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
if ( common.getSelector(instance).shareContainer.classList.contains('share-active')) {
|
|
63
|
+
let target = event.target as HTMLElement;
|
|
64
|
+
if (target.classList.contains('share-active') || target.classList.contains('player-lt__close-button')) {
|
|
65
|
+
common.inactiveModal(instance, common.getSelector(instance));
|
|
66
|
+
}
|
|
65
67
|
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -87,17 +87,17 @@ export namespace LTPlayerShareEvents {
|
|
|
87
87
|
}
|
|
88
88
|
})
|
|
89
89
|
|
|
90
|
-
common.getSelector(instance).shareContainer
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
if (common.getSelector(instance).shareContainer) {
|
|
91
|
+
common.getSelector(instance).shareContainer.addEventListener('click', function LTPlayerShareArea(event) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
if ( common.getSelector(instance).shareContainer.classList.contains('share-active')) {
|
|
94
|
+
let target = event.target as HTMLElement;
|
|
95
|
+
if (target.classList.contains('share-active') || target.classList.contains('player-lt__close-button')) {
|
|
96
|
+
common.inactiveModal(instance, common.getSelector(instance));
|
|
97
|
+
}
|
|
96
98
|
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|