@umituz/react-native-ai-generation-content 1.75.0 → 1.75.1

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.75.0",
3
+ "version": "1.75.1",
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",
@@ -96,6 +96,15 @@ export function useWizardFlowHandlers(props: UseWizardFlowHandlersProps) {
96
96
 
97
97
  const handleNextStep = useCallback(() => {
98
98
  const nextStepDef = flowSteps[currentStepIndex + 1];
99
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
100
+ console.log("[handleNextStep] Called", {
101
+ currentStepIndex,
102
+ nextStepType: nextStepDef?.type,
103
+ nextStepId: nextStepDef?.id,
104
+ totalSteps: flowSteps.length,
105
+ hasOnGenerationStart: !!onGenerationStart,
106
+ });
107
+ }
99
108
  if (nextStepDef?.type === StepType.GENERATING && onGenerationStart) {
100
109
  onGenerationStart(customData, nextStep);
101
110
  return;
@@ -105,10 +114,13 @@ export function useWizardFlowHandlers(props: UseWizardFlowHandlersProps) {
105
114
 
106
115
  const handlePhotoContinue = useCallback(
107
116
  (stepId: string, image: UploadedImage) => {
117
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
118
+ console.log("[handlePhotoContinue] Called", { stepId, hasImage: !!image, currentStepIndex });
119
+ }
108
120
  setCustomData(stepId, image);
109
121
  handleNextStep();
110
122
  },
111
- [setCustomData, handleNextStep],
123
+ [setCustomData, handleNextStep, currentStepIndex],
112
124
  );
113
125
 
114
126
  const handleSubmitRating = useCallback(