@umituz/react-native-ai-generation-content 1.20.10 → 1.20.11

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.20.10",
3
+ "version": "1.20.11",
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",
@@ -134,6 +134,14 @@ export const useCoupleFutureFlow = <TStep, TScenarioId, TResult>(
134
134
 
135
135
  // Trigger generation when step changes to GENERATING
136
136
  useEffect(() => {
137
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
138
+ console.log("[CoupleFutureFlow] 📍 Step changed:", {
139
+ currentStep: state.step,
140
+ targetStep: config.steps.GENERATING,
141
+ isProcessing: state.isProcessing,
142
+ hasStarted: hasStarted.current,
143
+ });
144
+ }
137
145
  if (state.step !== config.steps.GENERATING) {
138
146
  hasStarted.current = false;
139
147
  return;
@@ -141,6 +149,10 @@ export const useCoupleFutureFlow = <TStep, TScenarioId, TResult>(
141
149
  if (!state.isProcessing || hasStarted.current) return;
142
150
  hasStarted.current = true;
143
151
 
152
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
153
+ console.log("[CoupleFutureFlow] ✅ Step is GENERATING and isProcessing is true, building input...");
154
+ }
155
+
144
156
  const input = buildGenerationInputFromConfig({
145
157
  partnerA: state.partnerA as never,
146
158
  partnerB: state.partnerB as never,
@@ -191,10 +203,19 @@ export const useCoupleFutureFlow = <TStep, TScenarioId, TResult>(
191
203
 
192
204
  const handlePartnerBContinue = useCallback(
193
205
  (image: UploadedImage, name: string) => {
206
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
207
+ console.log("[CoupleFutureFlow] 🎬 handlePartnerBContinue called, invoking requireFeature");
208
+ }
194
209
  actions.requireFeature(() => {
210
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
211
+ console.log("[CoupleFutureFlow] 🚀 Pending action executing: setPartnerB, setPartnerBName, startGeneration");
212
+ }
195
213
  actions.setPartnerB(image);
196
214
  actions.setPartnerBName(name);
197
215
  actions.startGeneration();
216
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
217
+ console.log("[CoupleFutureFlow] ✅ startGeneration called successfully");
218
+ }
198
219
  });
199
220
  },
200
221
  [actions],