@umituz/react-native-ai-generation-content 1.90.14 → 1.90.15

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.90.14",
3
+ "version": "1.90.15",
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",
@@ -126,8 +126,6 @@ export function CreationImagePreview({
126
126
  style={styles.image}
127
127
  contentFit="cover"
128
128
  cachePolicy="disk"
129
- placeholder={{ blurhash: "L6PZfSi_.AyE_3t7t7R**0o#DgR4" }}
130
- placeholderContentFit="cover"
131
129
  />
132
130
  {isLoading && (
133
131
  <View style={styles.loadingOverlay}>
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { useEffect } from 'react';
7
- import type { Creation } from '../../../domain/entities/Creation';
7
+ import type { Creation } from '../../domain/entities/Creation';
8
8
 
9
9
  export interface UseProcessingJobsPollerConfig {
10
10
  userId: string | null;
@@ -31,8 +31,8 @@ export function buildCoupleGenerationResult(
31
31
 
32
32
  // 5. RESOLVE COUPLE INPUT - Doğru target ve image'lar
33
33
  logBuilderStep(prefix, "STEP 5: RESOLVE COUPLE INPUT", {
34
- partner1Uri: partner1PhotoUri,
35
- partner2Uri: partner2PhotoUri,
34
+ partner1Uri: partner1PhotoUri || "",
35
+ partner2Uri: partner2PhotoUri || "",
36
36
  isCoupleMode,
37
37
  singleTarget: "p-image-edit/pruna",
38
38
  coupleTarget: "p-image-edit/pruna"
@@ -39,8 +39,8 @@ export async function buildCoupleGenerationInput(
39
39
  hasCustomInstructions: !!params.customInstructions,
40
40
  hasStrength: params.strength !== undefined,
41
41
  strength: params.strength,
42
- partner1Uri: params.partner1PhotoUri,
43
- partner2Uri: params.partner2PhotoUri,
42
+ partner1Uri: params.partner1PhotoUri || "",
43
+ partner2Uri: params.partner2PhotoUri || "",
44
44
  });
45
45
 
46
46
  // Phase 1: Prepare photo URIs and analyze appearance
@@ -37,8 +37,8 @@ export async function buildScenarioGenerationInput(
37
37
  isCoupleMode,
38
38
  scenarioPromptLength: scenarioPrompt.length,
39
39
  scenarioPromptPreview: scenarioPrompt.substring(0, 200),
40
- partner1Uri: partner1PhotoUri,
41
- partner2Uri: partner2PhotoUri,
40
+ partner1Uri: partner1PhotoUri || "",
41
+ partner2Uri: partner2PhotoUri || "",
42
42
  });
43
43
 
44
44
  // 1. GET PHOTO URIs
@@ -80,7 +80,7 @@ export function useAIGeneration(
80
80
 
81
81
  // Use orchestrator for lifecycle management
82
82
  const orchestrator = useGenerationOrchestrator(strategy, {
83
- userId,
83
+ userId: userId || null,
84
84
  alertMessages: (alertMessages || DEFAULT_ALERT_MESSAGES) as typeof DEFAULT_ALERT_MESSAGES,
85
85
  onSuccess: async (result) => onSuccess?.(result),
86
86
  onError: onError ? async (error) => onError(error.message) : undefined,