@umituz/react-native-ai-generation-content 1.20.9 → 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.
|
|
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],
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Props-driven for 100+ apps compatibility
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React from "react";
|
|
7
|
+
import React, { useEffect } from "react";
|
|
8
8
|
import { StyleSheet } from "react-native";
|
|
9
9
|
import {
|
|
10
10
|
BaseModal,
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
type GenerationProgressContentProps,
|
|
16
16
|
} from "./GenerationProgressContent";
|
|
17
17
|
|
|
18
|
+
declare const __DEV__: boolean;
|
|
19
|
+
|
|
18
20
|
export interface GenerationProgressRenderProps {
|
|
19
21
|
readonly progress: number;
|
|
20
22
|
readonly icon?: string;
|
|
@@ -58,6 +60,24 @@ export const GenerationProgressModal: React.FC<
|
|
|
58
60
|
const tokens = useAppDesignTokens();
|
|
59
61
|
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
60
62
|
|
|
63
|
+
// Debug logging
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
66
|
+
console.log("[GenerationProgressModal] Mounted/Updated:", {
|
|
67
|
+
visible,
|
|
68
|
+
progress: clampedProgress,
|
|
69
|
+
hasTitle: !!title,
|
|
70
|
+
hasMessage: !!message,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}, [visible, clampedProgress, title, message]);
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (typeof __DEV__ !== "undefined" && __DEV__ && visible) {
|
|
77
|
+
console.log("[GenerationProgressModal] VISIBLE - Modal should be showing now");
|
|
78
|
+
}
|
|
79
|
+
}, [visible]);
|
|
80
|
+
|
|
61
81
|
const handleClose = React.useCallback(() => {
|
|
62
82
|
onDismiss?.();
|
|
63
83
|
}, [onDismiss]);
|