@umituz/react-native-ai-generation-content 1.84.8 → 1.84.10

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.84.8",
3
+ "version": "1.84.10",
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",
@@ -12,7 +12,7 @@ import { extractPhotosAsBase64 } from "./shared/photo-extraction.utils";
12
12
  import type { WizardVideoInput, CreateVideoStrategyOptions } from "./video-generation.types";
13
13
  import { validatePhotoCount, validateWizardVideoInput } from "./video-generation.types";
14
14
  import { executeVideoGeneration, submitVideoGenerationToQueue } from "./video-generation.executor";
15
- import { readAsStringAsync, EncodingType } from "expo-file-system";
15
+ import { readFileAsBase64 } from "@umituz/react-native-design-system/filesystem";
16
16
 
17
17
 
18
18
 
@@ -25,7 +25,8 @@ async function extractAudioAsBase64(wizardData: Record<string, unknown>): Promis
25
25
  if (!audioData?.uri) return undefined;
26
26
 
27
27
  try {
28
- const base64 = await readAsStringAsync(audioData.uri, { encoding: EncodingType.Base64 });
28
+ const base64 = await readFileAsBase64(audioData.uri);
29
+ if (!base64) return undefined;
29
30
  if (typeof __DEV__ !== "undefined" && __DEV__) {
30
31
  console.log("[VideoStrategy] Audio extracted as base64", { length: base64.length });
31
32
  }