From aeae399fdbb6ef937e94399a08811133efe42748 Mon Sep 17 00:00:00 2001 From: Colby Gilbert Date: Tue, 3 Sep 2024 07:59:55 -1000 Subject: [PATCH] chore: clean up props object name --- .npmignore | 3 ++- package.json | 2 +- src/components/ReactHlsPlayer.tsx | 4 ++-- src/index.tsx | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.npmignore b/.npmignore index 012512e..a6f680e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ .all-contributorsrc +.github .eslintrc .prettierrc tsconfig.json @@ -8,4 +9,4 @@ src/ public/ node_modules/ example/ -.vscode/ \ No newline at end of file +.vscode/ diff --git a/package.json b/package.json index 96c6ff0..608f5fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-hls-video-player", - "version": "3.2.0", + "version": "3.2.1", "description": "A simple and easy to use react component for playing an hls live stream", "main": "./dist/index.js", "types": "./dist", diff --git a/src/components/ReactHlsPlayer.tsx b/src/components/ReactHlsPlayer.tsx index fc6823a..d0bbb4d 100644 --- a/src/components/ReactHlsPlayer.tsx +++ b/src/components/ReactHlsPlayer.tsx @@ -7,14 +7,14 @@ declare global { } } -export interface HlsPlayerProps extends React.VideoHTMLAttributes { +export interface ReactHlsPlayerProps extends React.VideoHTMLAttributes { hlsConfig?: HlsConfig playerRef?: RefObject getHLSInstance?: (hls: Hls) => void src: string } -const ReactHlsPlayer: React.FC = ({ +const ReactHlsPlayer: React.FC = ({ hlsConfig, playerRef, getHLSInstance, diff --git a/src/index.tsx b/src/index.tsx index 7aae1f8..d43af2a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,2 +1,2 @@ export { default } from './components/ReactHlsPlayer' -export type { HlsPlayerProps } from './components/ReactHlsPlayer' +export type { ReactHlsPlayerProps } from './components/ReactHlsPlayer'