@umituz/react-native-video-editor 1.1.24 → 1.1.26
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,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-video-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
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",
|
|
7
|
+
"sideEffects": false,
|
|
7
8
|
"exports": {
|
|
8
9
|
".": "./src/index.ts",
|
|
9
|
-
"./player": "./src/player/index.ts"
|
|
10
|
+
"./player": "./src/player/index.ts",
|
|
11
|
+
"./package.json": "./package.json"
|
|
10
12
|
},
|
|
11
13
|
"scripts": {
|
|
12
14
|
"typecheck": "npx tsc --noEmit --project tsconfig.typecheck.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Single Responsibility: Compose editor action handlers
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { VideoProject } from "../../domain/entities";
|
|
6
|
+
import type { VideoProject, Scene, ExportSettings, Layer } from "../../domain/entities";
|
|
7
7
|
import type { UseEditorLayersReturn } from "./useEditorLayers";
|
|
8
8
|
import type { UseEditorScenesReturn } from "./useEditorScenes";
|
|
9
9
|
import type { UseEditorBottomSheetReturn } from "./useEditorBottomSheet";
|
|
@@ -15,11 +15,11 @@ import { useExportActions } from "./useExportActions";
|
|
|
15
15
|
interface UseEditorActionsParams {
|
|
16
16
|
project: VideoProject | undefined;
|
|
17
17
|
selectedLayerId: string | null;
|
|
18
|
-
currentScene:
|
|
18
|
+
currentScene: Scene | undefined;
|
|
19
19
|
layers: UseEditorLayersReturn;
|
|
20
20
|
scenes: UseEditorScenesReturn;
|
|
21
21
|
bottomSheet: UseEditorBottomSheetReturn;
|
|
22
|
-
onExportComplete: (settings:
|
|
22
|
+
onExportComplete: (settings: ExportSettings, uri?: string) => void;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
interface UseEditorActionsReturn {
|
|
@@ -30,7 +30,7 @@ interface UseEditorActionsReturn {
|
|
|
30
30
|
handleAddShape: () => void;
|
|
31
31
|
handleAudio: () => void;
|
|
32
32
|
handleAnimate: (layerId: string) => void;
|
|
33
|
-
handleLayerActionsPress: (layer:
|
|
33
|
+
handleLayerActionsPress: (layer: Layer) => void;
|
|
34
34
|
handleSceneLongPress: (index: number) => void;
|
|
35
35
|
handleExport: () => void;
|
|
36
36
|
handleSave: () => void;
|
|
@@ -12,14 +12,15 @@ import type {
|
|
|
12
12
|
AddImageLayerData,
|
|
13
13
|
AddShapeLayerData,
|
|
14
14
|
LayerOrderAction,
|
|
15
|
+
Scene,
|
|
15
16
|
} from "../../domain/entities";
|
|
16
17
|
import type { TextLayer, ImageLayer, Animation } from "../../domain/entities";
|
|
17
18
|
|
|
18
19
|
interface UseEditorLayersParams {
|
|
19
20
|
projectId: string;
|
|
20
|
-
scenes:
|
|
21
|
+
scenes: Scene[];
|
|
21
22
|
sceneIndex: number;
|
|
22
|
-
onUpdateScenes: (scenes:
|
|
23
|
+
onUpdateScenes: (scenes: Scene[]) => void;
|
|
23
24
|
onCloseBottomSheet: () => void;
|
|
24
25
|
defaultColor: string;
|
|
25
26
|
onLayerDeleted?: () => void;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { useCallback } from "react";
|
|
7
7
|
import { LayerActionsMenu } from "../components/LayerActionsMenu";
|
|
8
|
+
import type { Layer } from "../../domain/entities";
|
|
8
9
|
import type { UseEditorLayersReturn } from "./useEditorLayers";
|
|
9
10
|
import type { UseEditorBottomSheetReturn } from "./useEditorBottomSheet";
|
|
10
11
|
|
|
@@ -17,7 +18,7 @@ interface UseMenuActionsParams {
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
interface UseMenuActionsReturn {
|
|
20
|
-
handleLayerActionsPress: (layer:
|
|
21
|
+
handleLayerActionsPress: (layer: Layer) => void;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function useMenuActions({
|
|
@@ -30,7 +31,7 @@ export function useMenuActions({
|
|
|
30
31
|
const { openBottomSheet, closeBottomSheet } = bottomSheet;
|
|
31
32
|
|
|
32
33
|
const handleLayerActionsPress = useCallback(
|
|
33
|
-
(layer:
|
|
34
|
+
(layer: Layer) => {
|
|
34
35
|
openBottomSheet({
|
|
35
36
|
title: "Layer Actions",
|
|
36
37
|
children: (
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
import { useCallback } from "react";
|
|
7
7
|
import { AudioEditor } from "../components/AudioEditor";
|
|
8
8
|
import { SceneActionsMenu } from "../components/SceneActionsMenu";
|
|
9
|
+
import type { Scene } from "../../domain/entities";
|
|
9
10
|
import type { UseEditorScenesReturn } from "./useEditorScenes";
|
|
10
11
|
import type { UseEditorBottomSheetReturn } from "./useEditorBottomSheet";
|
|
11
12
|
|
|
12
13
|
interface UseSceneActionsParams {
|
|
13
|
-
currentScene:
|
|
14
|
+
currentScene: Scene | undefined;
|
|
14
15
|
scenes: UseEditorScenesReturn;
|
|
15
16
|
bottomSheet: UseEditorBottomSheetReturn;
|
|
16
17
|
}
|