@umituz/react-native-video-editor 1.1.61 → 1.1.62

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-video-editor",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "Professional video editor with layer-based timeline, text/image/shape/audio/animation layers, and export functionality",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -46,10 +46,6 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@gorhom/bottom-sheet": "^5.2.8",
49
- "@react-navigation/bottom-tabs": "^7.15.5",
50
- "@react-navigation/elements": "^2.9.10",
51
- "@react-navigation/native": "^7.1.33",
52
- "@react-navigation/stack": "^7.8.5",
53
49
  "@types/react": "~19.1.10",
54
50
  "@types/react-native": "*",
55
51
  "@typescript-eslint/eslint-plugin": "*",
@@ -1,22 +1,8 @@
1
1
  /**
2
2
  * Time Calculation Utilities
3
- * Centralized time-related calculations for video editor
3
+ * Internal time-related calculations for video editor
4
4
  */
5
5
 
6
- /**
7
- * Convert milliseconds to seconds
8
- */
9
- export function msToSeconds(ms: number): number {
10
- return ms / 1000;
11
- }
12
-
13
- /**
14
- * Convert seconds to milliseconds
15
- */
16
- export function secondsToMs(seconds: number): number {
17
- return seconds * 1000;
18
- }
19
-
20
6
  /**
21
7
  * Format milliseconds as display time (e.g., "5s" or "1:23")
22
8
  */
@@ -44,10 +30,7 @@ export function formatTimeDetailed(ms: number): string {
44
30
  return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${tenths}`;
45
31
  }
46
32
 
47
- /**
48
- * Calculate progress percentage (0-1)
49
- */
50
- export function calculateProgress(current: number, total: number): number {
33
+ function calculateProgress(current: number, total: number): number {
51
34
  if (total <= 0) return 0;
52
35
  return Math.min(1, Math.max(0, current / total));
53
36
  }
@@ -73,13 +56,6 @@ export function addDeltaTime(baseTime: number, deltaTime: number): number {
73
56
  return baseTime + deltaTime;
74
57
  }
75
58
 
76
- /**
77
- * Clamp time to duration bounds
78
- */
79
- export function clampTime(time: number, duration: number): number {
80
- return Math.max(0, Math.min(duration, time));
81
- }
82
-
83
59
  /**
84
60
  * Check if time is at or past duration
85
61
  */
@@ -98,10 +74,3 @@ export function toSrtTime(seconds: number): string {
98
74
 
99
75
  return `${String(h).padStart(2, "0")}:${String(m).padStart(2, "0")}:${String(s).padStart(2, "0")},${String(ms).padStart(3, "0")}`;
100
76
  }
101
-
102
- /**
103
- * Calculate total duration from scenes (in milliseconds)
104
- */
105
- export function calculateTotalDuration(sceneDurations: number[]): number {
106
- return sceneDurations.reduce((total, duration) => total + duration, 0);
107
- }