@umituz/react-native-ai-generation-content 1.25.6 → 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.6",
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,7 +86,7 @@ export const detectFeatureType = (scenarioId: string): FeatureType => {
86
86
 
87
87
  /**
88
88
  * Config Factory for COUPLE features (2 photos)
89
- * Generic numbered steps - labels come from translations
89
+ * Generic sequential labels for two-person scenarios
90
90
  */
91
91
  const createCoupleConfig = (scenarioId: string): WizardFeatureConfig => ({
92
92
  id: scenarioId,
@@ -95,8 +95,8 @@ const createCoupleConfig = (scenarioId: string): WizardFeatureConfig => ({
95
95
  {
96
96
  id: "photo_1",
97
97
  type: "photo_upload",
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,
@@ -104,8 +104,8 @@ const createCoupleConfig = (scenarioId: string): WizardFeatureConfig => ({
104
104
  {
105
105
  id: "photo_2",
106
106
  type: "photo_upload",
107
- titleKey: "photoUpload.step2.title",
108
- subtitleKey: "photoUpload.step2.subtitle",
107
+ titleKey: "photoUpload.couple.step2.title",
108
+ subtitleKey: "photoUpload.couple.step2.subtitle",
109
109
  showFaceDetection: true,
110
110
  showPhotoTips: true,
111
111
  required: true,
@@ -164,8 +164,8 @@ const createTextBasedConfig = (scenarioId: string): WizardFeatureConfig => ({
164
164
  });
165
165
 
166
166
  /**
167
- * Config Factory for FACE_SWAP features (2 photos, different context)
168
- * Generic numbered steps - labels come from translations
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,
@@ -174,8 +174,8 @@ const createFaceSwapConfig = (scenarioId: string): WizardFeatureConfig => ({
174
174
  {
175
175
  id: "photo_1",
176
176
  type: "photo_upload",
177
- titleKey: "faceSwap.source.title",
178
- subtitleKey: "faceSwap.source.subtitle",
177
+ titleKey: "photoUpload.faceSwap.step1.title",
178
+ subtitleKey: "photoUpload.faceSwap.step1.subtitle",
179
179
  showFaceDetection: true,
180
180
  showPhotoTips: true,
181
181
  required: true,
@@ -183,8 +183,8 @@ const createFaceSwapConfig = (scenarioId: string): WizardFeatureConfig => ({
183
183
  {
184
184
  id: "photo_2",
185
185
  type: "photo_upload",
186
- titleKey: "faceSwap.target.title",
187
- subtitleKey: "faceSwap.target.subtitle",
186
+ titleKey: "photoUpload.faceSwap.step2.title",
187
+ subtitleKey: "photoUpload.faceSwap.step2.subtitle",
188
188
  showFaceDetection: false,
189
189
  showPhotoTips: true,
190
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={{