@umituz/react-native-ai-generation-content 1.26.54 → 1.26.55
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.26.
|
|
3
|
+
"version": "1.26.55",
|
|
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",
|
|
@@ -8,7 +8,6 @@ import { StepType, type StepDefinition } from "../../../../../domain/entities/fl
|
|
|
8
8
|
import type { WizardStepConfig } from "../../domain/entities/wizard-config.types";
|
|
9
9
|
import type { WizardScenarioData } from "../hooks/useWizardGeneration";
|
|
10
10
|
import type { UploadedImage } from "../../../../../presentation/hooks/generation/useAIGenerateState";
|
|
11
|
-
import type { Creation } from "../../../../creations/domain/entities/Creation";
|
|
12
11
|
import { GenericPhotoUploadScreen } from "../screens/GenericPhotoUploadScreen";
|
|
13
12
|
import { GeneratingScreen } from "../screens/GeneratingScreen";
|
|
14
13
|
import { ScenarioPreviewScreen } from "../../../../scenarios/presentation/screens/ScenarioPreviewScreen";
|
|
@@ -98,9 +97,10 @@ export const WizardStepRenderer: React.FC<WizardStepRendererProps> = ({
|
|
|
98
97
|
if (renderResult) {
|
|
99
98
|
return renderResult(generationResult);
|
|
100
99
|
}
|
|
101
|
-
const creation = generationResult as
|
|
102
|
-
const
|
|
103
|
-
|
|
100
|
+
const creation = generationResult as Record<string, unknown>;
|
|
101
|
+
const output = creation?.output as Record<string, unknown> | undefined;
|
|
102
|
+
const imageUrl = output?.imageUrl || creation?.uri || creation?.imageUrl || "";
|
|
103
|
+
if (!imageUrl || typeof imageUrl !== "string") return null;
|
|
104
104
|
return (
|
|
105
105
|
<ResultPreviewScreen
|
|
106
106
|
imageUrl={imageUrl}
|