@umituz/react-native-ai-generation-content 1.72.35 → 1.72.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.72.35",
3
+ "version": "1.72.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",
@@ -57,10 +57,20 @@ export function useVideoQueueGeneration(props: UseVideoQueueGenerationProps): Us
57
57
  const creationId = creationIdRef.current;
58
58
  const uri = (urls.videoUrl || urls.imageUrl) ?? "";
59
59
 
60
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
61
+ console.log("[VideoQueue] ✅ handleComplete called", {
62
+ creationId,
63
+ userId,
64
+ hasVideoUrl: !!urls.videoUrl,
65
+ hasImageUrl: !!urls.imageUrl,
66
+ hasOnSuccess: !!onSuccess
67
+ });
68
+ }
69
+
60
70
  // Validate non-empty URI
61
71
  if (!creationId || !userId || !uri || uri.trim() === "") {
62
72
  if (typeof __DEV__ !== "undefined" && __DEV__) {
63
- console.error("[VideoQueue] Invalid completion data:", { creationId, userId, uri });
73
+ console.error("[VideoQueue] Invalid completion data:", { creationId, userId, uri });
64
74
  }
65
75
  return;
66
76
  }
@@ -72,14 +82,25 @@ export function useVideoQueueGeneration(props: UseVideoQueueGenerationProps): Us
72
82
  imageUrl: urls.imageUrl,
73
83
  videoUrl: urls.videoUrl,
74
84
  });
85
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
86
+ console.log("[VideoQueue] ✅ Updated completion status in Firestore");
87
+ }
75
88
  } catch (error) {
76
89
  if (typeof __DEV__ !== "undefined" && __DEV__) {
77
- console.error("[VideoQueue] Failed to update completion status:", error);
90
+ console.error("[VideoQueue] Failed to update completion status:", error);
78
91
  }
79
92
  }
80
93
  }
94
+
95
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
96
+ console.log("[VideoQueue] 🎯 Calling onSuccess callback now...");
97
+ }
81
98
  resetRefs();
82
99
  onSuccess?.(urls);
100
+
101
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
102
+ console.log("[VideoQueue] ✅ onSuccess callback completed");
103
+ }
83
104
  },
84
105
  [userId, persistence, onSuccess, resetRefs],
85
106
  );