@umituz/react-native-ai-generation-content 1.25.5 → 1.25.8

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.5",
3
+ "version": "1.25.8",
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",
@@ -86,27 +86,26 @@ export const detectFeatureType = (scenarioId: string): FeatureType => {
86
86
 
87
87
  /**
88
88
  * Config Factory for COUPLE features (2 photos)
89
+ * Generic sequential labels for two-person scenarios
89
90
  */
90
91
  const createCoupleConfig = (scenarioId: string): WizardFeatureConfig => ({
91
92
  id: scenarioId,
92
93
  name: scenarioId,
93
94
  steps: [
94
95
  {
95
- id: "photo_a",
96
+ id: "photo_1",
96
97
  type: "photo_upload",
97
- label: "First Partner",
98
- titleKey: "photoUpload.step1.title",
99
- subtitleKey: "photoUpload.step1.subtitle",
98
+ titleKey: "photoUpload.couple.step1.title",
99
+ subtitleKey: "photoUpload.couple.step1.subtitle",
100
100
  showFaceDetection: true,
101
101
  showPhotoTips: true,
102
102
  required: true,
103
103
  },
104
104
  {
105
- id: "photo_b",
105
+ id: "photo_2",
106
106
  type: "photo_upload",
107
- label: "Second Partner",
108
- titleKey: "photoUpload.step2.title",
109
- subtitleKey: "photoUpload.step2.subtitle",
107
+ titleKey: "photoUpload.couple.step2.title",
108
+ subtitleKey: "photoUpload.couple.step2.subtitle",
110
109
  showFaceDetection: true,
111
110
  showPhotoTips: true,
112
111
  required: true,
@@ -116,15 +115,15 @@ const createCoupleConfig = (scenarioId: string): WizardFeatureConfig => ({
116
115
 
117
116
  /**
118
117
  * Config Factory for SINGLE_PHOTO features (1 photo)
118
+ * Generic single photo step - label comes from translation
119
119
  */
120
120
  const createSinglePhotoConfig = (scenarioId: string): WizardFeatureConfig => ({
121
121
  id: scenarioId,
122
122
  name: scenarioId,
123
123
  steps: [
124
124
  {
125
- id: "photo",
125
+ id: "photo_1",
126
126
  type: "photo_upload",
127
- label: "Your Photo",
128
127
  titleKey: "photoUpload.single.title",
129
128
  subtitleKey: "photoUpload.single.subtitle",
130
129
  showFaceDetection: false,
@@ -165,28 +164,27 @@ const createTextBasedConfig = (scenarioId: string): WizardFeatureConfig => ({
165
164
  });
166
165
 
167
166
  /**
168
- * Config Factory for FACE_SWAP features (2 photos, different context)
167
+ * Config Factory for FACE_SWAP features (2 photos)
168
+ * Specific labels for face replacement scenarios
169
169
  */
170
170
  const createFaceSwapConfig = (scenarioId: string): WizardFeatureConfig => ({
171
171
  id: scenarioId,
172
172
  name: scenarioId,
173
173
  steps: [
174
174
  {
175
- id: "source_photo",
175
+ id: "photo_1",
176
176
  type: "photo_upload",
177
- label: "Source Face",
178
- titleKey: "faceSwap.source.title",
179
- subtitleKey: "faceSwap.source.subtitle",
177
+ titleKey: "photoUpload.faceSwap.step1.title",
178
+ subtitleKey: "photoUpload.faceSwap.step1.subtitle",
180
179
  showFaceDetection: true,
181
180
  showPhotoTips: true,
182
181
  required: true,
183
182
  },
184
183
  {
185
- id: "target_photo",
184
+ id: "photo_2",
186
185
  type: "photo_upload",
187
- label: "Target Photo",
188
- titleKey: "faceSwap.target.title",
189
- subtitleKey: "faceSwap.target.subtitle",
186
+ titleKey: "photoUpload.faceSwap.step2.title",
187
+ subtitleKey: "photoUpload.faceSwap.step2.subtitle",
190
188
  showFaceDetection: false,
191
189
  showPhotoTips: true,
192
190
  required: true,
@@ -50,6 +50,7 @@ export const renderStep = (props: StepRendererProps): React.ReactElement | null
50
50
  const photoConfig = wizardConfig as PhotoUploadStepConfig;
51
51
  return (
52
52
  <PhotoUploadStep
53
+ key={step.id}
53
54
  config={photoConfig}
54
55
  onContinue={(imageData) => {
55
56
  onContinue({ [`photo_${step.id}`]: imageData });
@@ -47,7 +47,6 @@ export const PhotoUploadStep: React.FC<PhotoUploadStepProps> = ({
47
47
  maxFileSize: t("common.errors.max_file_size"),
48
48
  error: t("common.error"),
49
49
  uploadFailed: t("common.errors.upload_failed"),
50
- aiDisclosure: t("photoUpload.aiDisclosure"),
51
50
  }}
52
51
  t={t}
53
52
  config={{