@umituz/react-native-ai-generation-content 1.35.1 → 1.35.3

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.35.1",
3
+ "version": "1.35.3",
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",
@@ -113,7 +113,11 @@ function getVideoFeatureType(scenarioId: string): VideoFeatureType {
113
113
  }
114
114
  }
115
115
 
116
- throw new Error(`Unknown video feature type for scenario "${scenarioId}". Add pattern to VIDEO_FEATURE_PATTERNS.`);
116
+ // Default to image-to-video for content scenarios (they take a photo and generate video)
117
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
118
+ console.log("[VideoStrategy:getFeatureType] Defaulting to image-to-video for content scenario", { scenarioId });
119
+ }
120
+ return "image-to-video";
117
121
  }
118
122
 
119
123
  // ============================================================================
@@ -551,6 +551,20 @@ export enum ScenarioId {
551
551
  VALLEY_OF_TITANS = "valley_of_titans",
552
552
 
553
553
  CUSTOM = "custom",
554
+
555
+ // AI Features (not content scenarios, but registered for outputType)
556
+ AI_HUG = "ai-hug",
557
+ AI_KISS = "ai-kiss",
558
+ TEXT_TO_VIDEO = "text-to-video",
559
+ IMAGE_TO_VIDEO = "image-to-video",
560
+ TEXT_TO_IMAGE = "text-to-image",
561
+ REMOVE_BACKGROUND = "remove-background",
562
+ UPSCALE = "upscale",
563
+ FACE_SWAP = "face-swap",
564
+ ANIME_SELFIE = "anime-selfie",
565
+ PHOTO_RESTORE = "photo-restore",
566
+ REMOVE_OBJECT = "remove-object",
567
+ REPLACE_BACKGROUND = "replace-background",
554
568
  }
555
569
 
556
570
  export type ScenarioOutputType = "image" | "video";