@elementmints/shadow-plyr 1.0.7 → 1.2.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.
@@ -6,14 +6,14 @@ export interface VideoPlayerConfig {
6
6
  loop: boolean;
7
7
  muted: boolean;
8
8
  playsinline: boolean;
9
- preload: 'none' | 'metadata' | 'auto';
9
+ preload: "none" | "metadata" | "auto";
10
10
  desktopPoster: string;
11
11
  mobilePoster: string;
12
12
  desktopVideo: string;
13
13
  mobileVideo: string;
14
14
  videoType: string;
15
15
  showControls: boolean;
16
- controlsType: 'full' | 'minimal' | 'none';
16
+ controlsType: "full" | "minimal" | "none";
17
17
  showPlayPause: boolean;
18
18
  showSeekbar: boolean;
19
19
  showVolume: boolean;
@@ -25,7 +25,7 @@ export interface VideoPlayerConfig {
25
25
  seekStep: number;
26
26
  lazyThreshold: number;
27
27
  pauseThreshold: number;
28
- theme: 'dark' | 'light';
28
+ theme: "dark" | "light";
29
29
  accentColor: string;
30
30
  controlsBackground: string;
31
31
  centerPlayBackground: string;
@@ -50,6 +50,19 @@ export interface VideoPlayerConfig {
50
50
  tripleTapSeek: boolean;
51
51
  tripleTapSeconds: number;
52
52
  enableTapRipple: boolean;
53
+ singleActive?: boolean;
54
+ showLoop?: boolean;
55
+ showPip?: boolean;
56
+ showSubtitles?: boolean;
57
+ showQuality?: boolean;
58
+ skipIntro?: number;
59
+ theaterMode?: boolean;
60
+ resume?: boolean;
61
+ screenshot?: boolean;
62
+ airplay?: boolean;
63
+ miniPlayer?: boolean;
64
+ responsiveControls?: boolean;
65
+ bufferProgress?: boolean;
53
66
  }
54
67
  export interface VideoPlayerState {
55
68
  observer: IntersectionObserver | null;
@@ -82,6 +95,16 @@ export interface IconSet {
82
95
  fullscreen: string;
83
96
  exitFullscreen: string;
84
97
  speed: string;
98
+ loopOnce: string;
99
+ loop: string;
100
+ pip: string;
101
+ subtitle: string;
102
+ quality: string;
103
+ more: string;
104
+ theater: string;
105
+ screenshot: string;
106
+ airplay: string;
107
+ miniplayer: string;
85
108
  }
86
109
  export interface VideoEventDetail {
87
110
  [key: string]: any;
package/package.json CHANGED
@@ -1,14 +1,25 @@
1
1
  {
2
2
  "name": "@elementmints/shadow-plyr",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "description": "A fully customizable, responsive web component for video playback with advanced features.",
9
9
  "main": "dist/index.umd.js",
10
10
  "module": "dist/index.js",
11
- "types": "dist/types/index.d.ts",
11
+ "types": "dist/index.d.ts",
12
+ "sideEffects": false,
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.umd.js"
21
+ }
22
+ },
12
23
  "files": [
13
24
  "dist"
14
25
  ],
@@ -19,6 +30,7 @@
19
30
  "prepare": "husky"
20
31
  },
21
32
  "keywords": [
33
+ "Element Mint",
22
34
  "video",
23
35
  "player",
24
36
  "web-component",
@@ -35,8 +47,17 @@
35
47
  "bugs": {
36
48
  "url": "https://github.com/elementmint/shadow-plyr/issues"
37
49
  },
38
- "homepage": "https://github.com/elementmint/shadow-plyr/blob/develop/README.md",
50
+ "homepage": "https://elementmint.github.io/shadow-plyr/",
51
+ "peerDependencies": {
52
+ "hls.js": "^1.6.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "hls.js": {
56
+ "optional": true
57
+ }
58
+ },
39
59
  "devDependencies": {
60
+ "hls.js": "^1.6.15",
40
61
  "@commitlint/cli": "^20.4.1",
41
62
  "@commitlint/config-conventional": "^20.4.1",
42
63
  "@lhci/cli": "^0.15.1",
File without changes
File without changes
File without changes