customvidplayer 0.0.6 → 0.0.8

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/package.json CHANGED
@@ -1,25 +1,31 @@
1
1
  {
2
2
  "name": "customvidplayer",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Customizable video player with section navigation and theming.",
5
- "main": "src/index.js",
6
- "types": "src/types/index.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsc",
9
- "start": "webpack serve",
10
- "test": "jest"
8
+ "build": "tsc",
9
+ "start": "webpack serve",
10
+ "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "react": "^18.0.0",
14
- "prop-types": "^15.8.1"
13
+ "@types/react": "^18.3.12",
14
+ "prop-types": "^15.8.1",
15
+ "react": "^18.0.0"
15
16
  },
16
17
  "devDependencies": {
17
- "typescript": "^4.9.5",
18
- "jest": "^29.0.0",
19
- "webpack": "^5.75.0"
18
+ "jest": "^29.0.0",
19
+ "typescript": "^4.9.5",
20
+ "webpack": "^5.75.0"
20
21
  },
21
- "keywords": ["video", "player", "react", "typescript", "customizable"],
22
+ "keywords": [
23
+ "video",
24
+ "player",
25
+ "react",
26
+ "typescript",
27
+ "customizable"
28
+ ],
22
29
  "license": "MIT",
23
30
  "author": "Prewcioo"
24
- }
25
-
31
+ }
@@ -1,12 +1,17 @@
1
+ import { ReactNode } from "react";
2
+
1
3
  export interface Section {
2
- name: string;
3
- timestamp: number;
4
- }
5
-
6
- export interface VideoPlayerProps {
7
- videoSrc: string;
8
- sections: Section[];
9
- onSectionChange?: (section: Section) => void;
10
- theme?: Record<string, string | number>;
11
- }
12
-
4
+ name: string;
5
+ timestamp: number;
6
+ }
7
+
8
+ export interface VideoPlayerProps {
9
+ videoSrc: string;
10
+ sections: Section[];
11
+ onSectionChange?: (section: Section) => void;
12
+ theme?: Record<string, string | number>;
13
+ }
14
+
15
+ declare const VideoPlayer: (props: VideoPlayerProps) => ReactNode;
16
+
17
+ export default VideoPlayer;
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "es5",
4
4
  "module": "commonjs",
5
- "jsx": "react",
5
+ "jsx": "react-jsx",
6
6
  "strict": true,
7
7
  "esModuleInterop": true,
8
8
  "forceConsistentCasingInFileNames": true,