mirax-player
Advanced tools
Comparing version 3.0.0-alpha.14 to 3.0.0-alpha.15
@@ -12,5 +12,5 @@ # Changelog | ||
### [3.0.0-alpha.14] | ||
### [3.0.0-alpha.15] | ||
- Initial Alpha Release: Documentation features included in this alpha version. | ||
@@ -110,1 +110,2 @@ | ||
export { embedYouTube, embedVimeo, miraxEmbed }; | ||
// mirax-player.d.ts | ||
declare module 'mirax-player' { | ||
// TypeScript type definitions for mirax-player module | ||
// Type for the VideoEmbed function | ||
type VideoEmbed = ( | ||
playerRef: HTMLDivElement | null, | ||
youtubeParams: { [key: string]: any }, | ||
vimeoParams: { [key: string]: any } | ||
) => void; | ||
declare module 'mirax-player' { | ||
// Type for the VideoPlayerFunction | ||
type VideoPlayerFunction = ( | ||
videoClip: HTMLVideoElement, | ||
options: { | ||
playerTheme: PlayerTheme, | ||
progressTheme: ProgressTheme | ||
} | ||
) => void; | ||
// Type for PlayerTheme and ProgressTheme | ||
type PlayerTheme = | ||
@@ -11,3 +28,3 @@ | string | ||
| `#${string}`; | ||
type ProgressTheme = | ||
@@ -19,20 +36,5 @@ | string | ||
type VideoPlayerFunction = ( | ||
videoClip: HTMLVideoElement, | ||
options: { | ||
playerTheme: PlayerTheme, | ||
progressTheme: ProgressTheme | ||
} | ||
) => void; | ||
// Export the VideoEmbed and VideoPlayerFunction types | ||
export const miraxEmbed: VideoEmbed; | ||
export const miraxplayer: VideoPlayerFunction; | ||
} | ||
declare module 'mirax-player' { | ||
type VideoEmbed = (playerRef: any) => void; | ||
export const miraxEmbed: VideoEmbed; | ||
} | ||
{ | ||
"name": "mirax-player", | ||
"version": "3.0.0-alpha.14", | ||
"version": "3.0.0-alpha.15", | ||
"description": "Mirax Player is an adaptable video player and embedding solution that seamlessly integrates with TypeScript and JavaScript applications across a range of popular front-end libraries and frameworks, including React, Vue, Angular, and Svelte.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62911
863