@umituz/react-native-ai-generation-content 1.17.135 → 1.17.136
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 +1 -1
- package/src/features/image-to-video/domain/constants/animation.constants.ts +6 -6
- package/src/features/image-to-video/presentation/components/AnimationStyleSelector.tsx +1 -1
- package/src/features/image-to-video/presentation/components/ImageSelectionGrid.tsx +1 -1
- package/src/features/image-to-video/presentation/hooks/useImageToVideoForm.ts +24 -3
- package/src/features/script-generator/presentation/components/ScriptDisplay.tsx +2 -2
package/package.json
CHANGED
|
@@ -10,37 +10,37 @@ export const DEFAULT_ANIMATION_STYLES: AnimationStyle[] = [
|
|
|
10
10
|
id: "ken_burns",
|
|
11
11
|
name: "Ken Burns",
|
|
12
12
|
description: "Slow zoom and pan effect",
|
|
13
|
-
icon: "
|
|
13
|
+
icon: "expand-outline",
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
id: "zoom_in",
|
|
17
17
|
name: "Zoom In",
|
|
18
18
|
description: "Gradual zoom in effect",
|
|
19
|
-
icon: "
|
|
19
|
+
icon: "add-circle-outline",
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
id: "zoom_out",
|
|
23
23
|
name: "Zoom Out",
|
|
24
24
|
description: "Gradual zoom out effect",
|
|
25
|
-
icon: "
|
|
25
|
+
icon: "remove-circle-outline",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
id: "slide_left",
|
|
29
29
|
name: "Slide Left",
|
|
30
30
|
description: "Pan from right to left",
|
|
31
|
-
icon: "
|
|
31
|
+
icon: "arrow-back-outline",
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: "slide_right",
|
|
35
35
|
name: "Slide Right",
|
|
36
36
|
description: "Pan from left to right",
|
|
37
|
-
icon: "
|
|
37
|
+
icon: "arrow-forward-outline",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
id: "parallax",
|
|
41
41
|
name: "Parallax",
|
|
42
42
|
description: "3D depth effect",
|
|
43
|
-
icon: "
|
|
43
|
+
icon: "layers-outline",
|
|
44
44
|
},
|
|
45
45
|
];
|
|
46
46
|
|
|
@@ -89,7 +89,7 @@ export const AnimationStyleSelector: React.FC<AnimationStyleSelectorProps> = ({
|
|
|
89
89
|
</AtomicText>
|
|
90
90
|
</View>
|
|
91
91
|
{isSelected && (
|
|
92
|
-
<AtomicIcon name="
|
|
92
|
+
<AtomicIcon name="checkmark-outline" size="md" color="primary" />
|
|
93
93
|
)}
|
|
94
94
|
</View>
|
|
95
95
|
</TouchableOpacity>
|
|
@@ -61,7 +61,7 @@ export const ImageSelectionGrid: React.FC<ImageSelectionGridProps> = ({
|
|
|
61
61
|
onPress={onSelectImages}
|
|
62
62
|
activeOpacity={0.7}
|
|
63
63
|
>
|
|
64
|
-
<AtomicIcon name="
|
|
64
|
+
<AtomicIcon name="cloud-upload-outline" size="xl" color="primary" />
|
|
65
65
|
<AtomicText
|
|
66
66
|
type="bodyMedium"
|
|
67
67
|
style={[
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { useMemo, useCallback } from "react";
|
|
7
|
+
|
|
8
|
+
declare const __DEV__: boolean;
|
|
7
9
|
import { useFormState, type UseFormStateOptions } from "./useFormState";
|
|
8
10
|
import { useGeneration } from "./useGeneration";
|
|
9
11
|
import type {
|
|
@@ -60,10 +62,29 @@ export function useImageToVideoForm(
|
|
|
60
62
|
);
|
|
61
63
|
|
|
62
64
|
const handleSelectImages = useCallback(async () => {
|
|
65
|
+
if (__DEV__) {
|
|
66
|
+
console.log("[useImageToVideoForm] handleSelectImages called");
|
|
67
|
+
}
|
|
63
68
|
if (callbacks.onSelectImages) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
try {
|
|
70
|
+
const images = await callbacks.onSelectImages();
|
|
71
|
+
if (__DEV__) {
|
|
72
|
+
console.log("[useImageToVideoForm] Images selected:", images.length);
|
|
73
|
+
}
|
|
74
|
+
if (images.length > 0) {
|
|
75
|
+
actions.addImages(images);
|
|
76
|
+
if (__DEV__) {
|
|
77
|
+
console.log("[useImageToVideoForm] Images added to state");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
} catch (error) {
|
|
81
|
+
if (__DEV__) {
|
|
82
|
+
console.error("[useImageToVideoForm] Error selecting images:", error);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
if (__DEV__) {
|
|
87
|
+
console.warn("[useImageToVideoForm] No onSelectImages callback provided");
|
|
67
88
|
}
|
|
68
89
|
}
|
|
69
90
|
}, [callbacks, actions]);
|
|
@@ -37,7 +37,7 @@ export const ScriptDisplay: React.FC<ScriptDisplayProps> = ({
|
|
|
37
37
|
📝 {title}
|
|
38
38
|
</AtomicText>
|
|
39
39
|
<TouchableOpacity onPress={onUseScript}>
|
|
40
|
-
<AtomicIcon name="
|
|
40
|
+
<AtomicIcon name="checkmark-outline" size="md" color="primary" />
|
|
41
41
|
</TouchableOpacity>
|
|
42
42
|
</View>
|
|
43
43
|
|
|
@@ -102,7 +102,7 @@ export const ScriptDisplay: React.FC<ScriptDisplayProps> = ({
|
|
|
102
102
|
]}
|
|
103
103
|
onPress={onUseScript}
|
|
104
104
|
>
|
|
105
|
-
<AtomicIcon name="
|
|
105
|
+
<AtomicIcon name="checkmark-outline" size="md" color="textInverse" />
|
|
106
106
|
<AtomicText
|
|
107
107
|
type="bodyLarge"
|
|
108
108
|
style={[styles.useButtonText, { color: tokens.colors.textInverse }]}
|