@umituz/react-native-ai-generation-content 1.24.2 → 1.24.3

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.24.2",
3
+ "version": "1.24.3",
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",
@@ -165,11 +165,45 @@ export const SCENARIO_WIZARD_CONFIGS: Record<string, WizardFeatureConfig> = {
165
165
  "text-to-video": createTextToVideoWizardConfig("text-to-video"),
166
166
  };
167
167
 
168
+ /**
169
+ * DEFAULT WIZARD CONFIG
170
+ * Used for ALL scenarios that don't have specific config
171
+ * Couple/Partner scenarios → 2 photo uploads
172
+ */
173
+ const DEFAULT_WIZARD_CONFIG = (scenarioId: string): WizardFeatureConfig => ({
174
+ id: scenarioId,
175
+ name: scenarioId,
176
+ steps: [
177
+ {
178
+ id: "photo_a",
179
+ type: "photo_upload",
180
+ label: "First Partner",
181
+ titleKey: "photoUpload.step1.title",
182
+ subtitleKey: "photoUpload.step1.subtitle",
183
+ showFaceDetection: true,
184
+ showPhotoTips: true,
185
+ required: true,
186
+ },
187
+ {
188
+ id: "photo_b",
189
+ type: "photo_upload",
190
+ label: "Second Partner",
191
+ titleKey: "photoUpload.step2.title",
192
+ subtitleKey: "photoUpload.step2.subtitle",
193
+ showFaceDetection: true,
194
+ showPhotoTips: true,
195
+ required: true,
196
+ },
197
+ ],
198
+ });
199
+
168
200
  /**
169
201
  * Get wizard config for a scenario
202
+ * Returns specific config if exists, otherwise returns DEFAULT config
203
+ * This means ALL scenarios work automatically!
170
204
  */
171
- export const getScenarioWizardConfig = (scenarioId: string): WizardFeatureConfig | null => {
172
- return SCENARIO_WIZARD_CONFIGS[scenarioId] || null;
205
+ export const getScenarioWizardConfig = (scenarioId: string): WizardFeatureConfig => {
206
+ return SCENARIO_WIZARD_CONFIGS[scenarioId] || DEFAULT_WIZARD_CONFIG(scenarioId);
173
207
  };
174
208
 
175
209
  /**