@umituz/react-native-ai-generation-content 1.25.4 → 1.25.5
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.5",
|
|
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",
|
|
@@ -26,7 +26,7 @@ export interface BaseStepConfig {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface PhotoUploadStepConfig extends BaseStepConfig {
|
|
28
28
|
readonly type: "photo_upload";
|
|
29
|
-
readonly label?: string; // "
|
|
29
|
+
readonly label?: string; // "Photo 1", "Photo 2", "Your Photo", etc.
|
|
30
30
|
readonly showFaceDetection?: boolean;
|
|
31
31
|
readonly showNameInput?: boolean;
|
|
32
32
|
readonly showPhotoTips?: boolean;
|
|
@@ -117,11 +117,12 @@ export const buildWizardConfigFromScenario = (
|
|
|
117
117
|
): WizardFeatureConfig => {
|
|
118
118
|
const steps: WizardStepConfig[] = [];
|
|
119
119
|
|
|
120
|
-
// Add photo upload steps (
|
|
120
|
+
// Add photo upload steps (max 2 photos)
|
|
121
121
|
if (config.photoCount && config.photoCount > 0) {
|
|
122
|
-
|
|
122
|
+
const maxPhotos = Math.min(config.photoCount, 2); // Max 2 photos
|
|
123
|
+
for (let i = 0; i < maxPhotos; i++) {
|
|
123
124
|
steps.push({
|
|
124
|
-
id: `photo_${i}`,
|
|
125
|
+
id: `photo_${i + 1}`,
|
|
125
126
|
type: "photo_upload",
|
|
126
127
|
label: config.photoLabels?.[i] || `Photo ${i + 1}`,
|
|
127
128
|
showFaceDetection: true,
|
|
@@ -182,18 +183,17 @@ export const buildWizardConfigFromScenario = (
|
|
|
182
183
|
|
|
183
184
|
/**
|
|
184
185
|
* Pre-configured scenarios for common use cases
|
|
186
|
+
* Labels should be provided from main app via photoLabels parameter
|
|
185
187
|
*/
|
|
186
188
|
export const WIZARD_PRESETS = {
|
|
187
|
-
//
|
|
188
|
-
|
|
189
|
+
// Two photo features (couple, comparison, etc.)
|
|
190
|
+
TWO_PHOTOS: {
|
|
189
191
|
photoCount: 2,
|
|
190
|
-
photoLabels: ["First Partner", "Second Partner"],
|
|
191
192
|
},
|
|
192
193
|
|
|
193
194
|
// Single photo features
|
|
194
195
|
SINGLE_PHOTO: {
|
|
195
196
|
photoCount: 1,
|
|
196
|
-
photoLabels: ["Your Photo"],
|
|
197
197
|
requireStyleSelection: true,
|
|
198
198
|
requireDurationSelection: true,
|
|
199
199
|
},
|
|
@@ -205,10 +205,4 @@ export const WIZARD_PRESETS = {
|
|
|
205
205
|
requireStyleSelection: true,
|
|
206
206
|
requireDurationSelection: true,
|
|
207
207
|
},
|
|
208
|
-
|
|
209
|
-
// Face swap (2 photos, specific requirements)
|
|
210
|
-
FACE_SWAP: {
|
|
211
|
-
photoCount: 2,
|
|
212
|
-
photoLabels: ["Source Face", "Target Face"],
|
|
213
|
-
},
|
|
214
208
|
} as const;
|