@umituz/react-native-ai-generation-content 1.26.49 → 1.26.51
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.51",
|
|
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",
|
|
@@ -12,6 +12,7 @@ import type { Creation } from "../../../../creations/domain/entities/Creation";
|
|
|
12
12
|
import { GenericPhotoUploadScreen } from "../screens/GenericPhotoUploadScreen";
|
|
13
13
|
import { GeneratingScreen } from "../screens/GeneratingScreen";
|
|
14
14
|
import { ScenarioPreviewScreen } from "../../../../scenarios/presentation/screens/ScenarioPreviewScreen";
|
|
15
|
+
import type { ScenarioData } from "../../../../scenarios/domain/scenario.types";
|
|
15
16
|
import { ResultPreviewScreen } from "../../../../result-preview/presentation/components/ResultPreviewScreen";
|
|
16
17
|
|
|
17
18
|
export interface WizardStepRendererProps {
|
|
@@ -65,9 +66,10 @@ export const WizardStepRenderer: React.FC<WizardStepRendererProps> = ({
|
|
|
65
66
|
if (renderPreview) {
|
|
66
67
|
return renderPreview(onNext);
|
|
67
68
|
}
|
|
69
|
+
if (!scenario) return null;
|
|
68
70
|
return (
|
|
69
71
|
<ScenarioPreviewScreen
|
|
70
|
-
scenario={scenario}
|
|
72
|
+
scenario={scenario as unknown as ScenarioData}
|
|
71
73
|
translations={{
|
|
72
74
|
continueButton: t("common.continue"),
|
|
73
75
|
whatToExpect: t("scenarioPreview.whatToExpect"),
|