@umituz/react-native-ai-generation-content 1.25.17 → 1.25.18

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.25.17",
3
+ "version": "1.25.18",
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",
@@ -283,12 +283,15 @@ export const useWizardGeneration = (
283
283
  const videoResult = result as { videoUrl?: string };
284
284
  const imageResult = result as { imageUrl?: string };
285
285
 
286
+ // Both input types have prompt field
287
+ const prompt = 'prompt' in input ? input.prompt : '';
288
+
286
289
  const creation = {
287
290
  videoUrl: videoResult.videoUrl,
288
291
  imageUrl: imageResult.imageUrl,
289
292
  scenarioId: scenario.id,
290
293
  scenarioTitle: scenario.title || scenario.id,
291
- prompt: (input as VideoGenerationInput).prompt,
294
+ prompt,
292
295
  createdAt: Date.now(),
293
296
  };
294
297