@umituz/react-native-ai-generation-content 1.26.34 → 1.26.36

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.34",
3
+ "version": "1.26.36",
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",
@@ -321,7 +321,7 @@ export const createWizardStrategy = (
321
321
  const { scenario, collectionName = "creations" } = options;
322
322
  const repository = createCreationsRepository(collectionName);
323
323
  const outputType = scenario.outputType || "video";
324
- const videoFeatureType = getVideoFeatureType(scenario.id);
324
+ const videoFeatureType = outputType === "video" ? getVideoFeatureType(scenario.id) : null;
325
325
 
326
326
  if (typeof __DEV__ !== "undefined" && __DEV__) {
327
327
  console.log("[WizardStrategy] createWizardStrategy called", {
@@ -370,6 +370,9 @@ export const createWizardStrategy = (
370
370
 
371
371
  return { imageUrl: result.imageUrl };
372
372
  } else {
373
+ if (!videoFeatureType) {
374
+ throw new Error("Video feature type is required for video generation");
375
+ }
373
376
  const videoInput = input as VideoGenerationInput;
374
377
  const result = await executeVideoFeature(
375
378
  videoFeatureType,