@umituz/react-native-ai-generation-content 1.25.2 → 1.25.4
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.25.
|
|
3
|
+
"version": "1.25.4",
|
|
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",
|
|
@@ -25,7 +25,7 @@ import { buildFlowStepsFromWizard } from "../../infrastructure/builders/dynamic-
|
|
|
25
25
|
export interface GenericWizardFlowProps {
|
|
26
26
|
readonly featureConfig: WizardFeatureConfig;
|
|
27
27
|
readonly onStepChange?: (stepId: string, stepType: StepType | string) => void;
|
|
28
|
-
readonly onGenerationStart?: (data: Record<string, unknown
|
|
28
|
+
readonly onGenerationStart?: (data: Record<string, unknown>, proceedToGenerating: () => void) => void;
|
|
29
29
|
readonly onBack?: () => void;
|
|
30
30
|
readonly t: (key: string) => string;
|
|
31
31
|
readonly translations?: Record<string, string>;
|
|
@@ -104,12 +104,21 @@ export const GenericWizardFlow: React.FC<GenericWizardFlowProps> = ({
|
|
|
104
104
|
// Check if this is the last step before generating
|
|
105
105
|
if (flow.currentStepIndex === flowSteps.length - 2) {
|
|
106
106
|
// Next step is GENERATING
|
|
107
|
+
// Notify parent and provide callback to proceed to generating
|
|
108
|
+
// Parent will call proceedToGenerating() after feature gate passes
|
|
107
109
|
if (onGenerationStart) {
|
|
108
|
-
onGenerationStart(flow.customData)
|
|
110
|
+
onGenerationStart(flow.customData, () => {
|
|
111
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
112
|
+
console.log("[GenericWizardFlow] Proceeding to GENERATING step");
|
|
113
|
+
}
|
|
114
|
+
flow.nextStep();
|
|
115
|
+
});
|
|
109
116
|
}
|
|
117
|
+
// DON'T call flow.nextStep() here - parent will call it via proceedToGenerating callback
|
|
118
|
+
return;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
// Move to next step
|
|
121
|
+
// Move to next step (for all non-generation steps)
|
|
113
122
|
flow.nextStep();
|
|
114
123
|
},
|
|
115
124
|
[flow, flowSteps.length, onGenerationStart],
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "@umituz/react-native-design-system";
|
|
18
18
|
import { PhotoUploadCard } from "../../../../presentation/components";
|
|
19
19
|
import { FaceDetectionToggle } from "../../../../domains/face-detection";
|
|
20
|
+
import { PhotoTips } from "../../../../features/partner-upload/presentation/components/PhotoTips";
|
|
20
21
|
import type { UploadedImage } from "../../../../features/partner-upload/domain/types";
|
|
21
22
|
import { usePhotoUploadState } from "../hooks/usePhotoUploadState";
|
|
22
23
|
|
|
@@ -134,13 +135,14 @@ export const GenericPhotoUploadScreen: React.FC<PhotoUploadScreenProps> = ({
|
|
|
134
135
|
{translations.subtitle}
|
|
135
136
|
</AtomicText>
|
|
136
137
|
|
|
137
|
-
{/* Photo Tips -
|
|
138
|
+
{/* Photo Tips - InfoGrid version */}
|
|
138
139
|
{showPhotoTips && (
|
|
139
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
<PhotoTips
|
|
141
|
+
t={t}
|
|
142
|
+
titleKey="photoUpload.tips.title"
|
|
143
|
+
headerIcon="bulb"
|
|
144
|
+
style={{ marginHorizontal: 24, marginBottom: 20 }}
|
|
145
|
+
/>
|
|
144
146
|
)}
|
|
145
147
|
|
|
146
148
|
{showFaceDetection && onFaceDetectionToggle && (
|
|
@@ -194,12 +196,6 @@ const createStyles = (tokens: DesignTokens) =>
|
|
|
194
196
|
marginHorizontal: 24,
|
|
195
197
|
marginBottom: 24,
|
|
196
198
|
},
|
|
197
|
-
tipsContainer: {
|
|
198
|
-
marginHorizontal: 24,
|
|
199
|
-
marginBottom: 16,
|
|
200
|
-
padding: 12,
|
|
201
|
-
borderRadius: 8,
|
|
202
|
-
},
|
|
203
199
|
continueButton: {
|
|
204
200
|
flexDirection: "row",
|
|
205
201
|
alignItems: "center",
|