@umituz/react-native-ai-generation-content 1.56.0 → 1.56.2
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-ai-generation-content",
|
|
3
|
-
"version": "1.56.
|
|
3
|
+
"version": "1.56.2",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -46,7 +46,13 @@ export const ImageToVideoWizardFlow: React.FC<ImageToVideoWizardFlowProps> = (pr
|
|
|
46
46
|
const tokens = useAppDesignTokens();
|
|
47
47
|
|
|
48
48
|
const scenario: WizardScenarioData = useMemo(
|
|
49
|
-
() => ({
|
|
49
|
+
() => ({
|
|
50
|
+
id: "image-to-video",
|
|
51
|
+
outputType: "video",
|
|
52
|
+
inputType: "single",
|
|
53
|
+
model,
|
|
54
|
+
title: t("image2video.title"),
|
|
55
|
+
}),
|
|
50
56
|
[model, t],
|
|
51
57
|
);
|
|
52
58
|
|
|
@@ -70,6 +76,11 @@ export const ImageToVideoWizardFlow: React.FC<ImageToVideoWizardFlowProps> = (pr
|
|
|
70
76
|
[isAuthenticated, hasPremium, creditBalance, creditCost, isCreditsLoaded, onShowAuthModal, onShowPaywall],
|
|
71
77
|
);
|
|
72
78
|
|
|
79
|
+
const handleGenerationComplete = useCallback(() => {
|
|
80
|
+
onGenerationComplete?.();
|
|
81
|
+
onBack();
|
|
82
|
+
}, [onGenerationComplete, onBack]);
|
|
83
|
+
|
|
73
84
|
return (
|
|
74
85
|
<View style={[styles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
|
|
75
86
|
<GenericWizardFlow
|
|
@@ -78,8 +89,9 @@ export const ImageToVideoWizardFlow: React.FC<ImageToVideoWizardFlowProps> = (pr
|
|
|
78
89
|
userId={userId}
|
|
79
90
|
alertMessages={alertMessages ?? defaultAlerts}
|
|
80
91
|
creditCost={creditCost}
|
|
92
|
+
skipResultStep={true}
|
|
81
93
|
onGenerationStart={handleGenerationStart}
|
|
82
|
-
onGenerationComplete={
|
|
94
|
+
onGenerationComplete={handleGenerationComplete}
|
|
83
95
|
onGenerationError={onGenerationError}
|
|
84
96
|
onCreditsExhausted={onShowPaywall}
|
|
85
97
|
onBack={onBack}
|
|
@@ -46,7 +46,13 @@ export const TextToImageWizardFlow: React.FC<TextToImageWizardFlowProps> = (prop
|
|
|
46
46
|
const tokens = useAppDesignTokens();
|
|
47
47
|
|
|
48
48
|
const scenario: WizardScenarioData = useMemo(
|
|
49
|
-
() => ({
|
|
49
|
+
() => ({
|
|
50
|
+
id: "text-to-image",
|
|
51
|
+
outputType: "image",
|
|
52
|
+
inputType: "text",
|
|
53
|
+
model,
|
|
54
|
+
title: t("text2image.title"),
|
|
55
|
+
}),
|
|
50
56
|
[model, t],
|
|
51
57
|
);
|
|
52
58
|
|
|
@@ -70,6 +76,11 @@ export const TextToImageWizardFlow: React.FC<TextToImageWizardFlowProps> = (prop
|
|
|
70
76
|
[isAuthenticated, hasPremium, creditBalance, creditCost, isCreditsLoaded, onShowAuthModal, onShowPaywall],
|
|
71
77
|
);
|
|
72
78
|
|
|
79
|
+
const handleGenerationComplete = useCallback(() => {
|
|
80
|
+
onGenerationComplete?.();
|
|
81
|
+
onBack();
|
|
82
|
+
}, [onGenerationComplete, onBack]);
|
|
83
|
+
|
|
73
84
|
return (
|
|
74
85
|
<View style={[styles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
|
|
75
86
|
<GenericWizardFlow
|
|
@@ -78,8 +89,9 @@ export const TextToImageWizardFlow: React.FC<TextToImageWizardFlowProps> = (prop
|
|
|
78
89
|
userId={userId}
|
|
79
90
|
alertMessages={alertMessages ?? defaultAlerts}
|
|
80
91
|
creditCost={creditCost}
|
|
92
|
+
skipResultStep={true}
|
|
81
93
|
onGenerationStart={handleGenerationStart}
|
|
82
|
-
onGenerationComplete={
|
|
94
|
+
onGenerationComplete={handleGenerationComplete}
|
|
83
95
|
onGenerationError={onGenerationError}
|
|
84
96
|
onCreditsExhausted={onShowPaywall}
|
|
85
97
|
onBack={onBack}
|
|
@@ -46,7 +46,13 @@ export const TextToVideoWizardFlow: React.FC<TextToVideoWizardFlowProps> = (prop
|
|
|
46
46
|
const tokens = useAppDesignTokens();
|
|
47
47
|
|
|
48
48
|
const scenario: WizardScenarioData = useMemo(
|
|
49
|
-
() => ({
|
|
49
|
+
() => ({
|
|
50
|
+
id: "text-to-video",
|
|
51
|
+
outputType: "video",
|
|
52
|
+
inputType: "text",
|
|
53
|
+
model,
|
|
54
|
+
title: t("text2video.title"),
|
|
55
|
+
}),
|
|
50
56
|
[model, t],
|
|
51
57
|
);
|
|
52
58
|
|
|
@@ -70,6 +76,11 @@ export const TextToVideoWizardFlow: React.FC<TextToVideoWizardFlowProps> = (prop
|
|
|
70
76
|
[isAuthenticated, hasPremium, creditBalance, creditCost, isCreditsLoaded, onShowAuthModal, onShowPaywall],
|
|
71
77
|
);
|
|
72
78
|
|
|
79
|
+
const handleGenerationComplete = useCallback(() => {
|
|
80
|
+
onGenerationComplete?.();
|
|
81
|
+
onBack();
|
|
82
|
+
}, [onGenerationComplete, onBack]);
|
|
83
|
+
|
|
73
84
|
return (
|
|
74
85
|
<View style={[styles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
|
|
75
86
|
<GenericWizardFlow
|
|
@@ -78,8 +89,9 @@ export const TextToVideoWizardFlow: React.FC<TextToVideoWizardFlowProps> = (prop
|
|
|
78
89
|
userId={userId}
|
|
79
90
|
alertMessages={alertMessages ?? defaultAlerts}
|
|
80
91
|
creditCost={creditCost}
|
|
92
|
+
skipResultStep={true}
|
|
81
93
|
onGenerationStart={handleGenerationStart}
|
|
82
|
-
onGenerationComplete={
|
|
94
|
+
onGenerationComplete={handleGenerationComplete}
|
|
83
95
|
onGenerationError={onGenerationError}
|
|
84
96
|
onCreditsExhausted={onShowPaywall}
|
|
85
97
|
onBack={onBack}
|