@umituz/react-native-ai-fal-provider 2.0.7 → 2.0.9

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-fal-provider",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "FAL AI provider for React Native - implements IAIProvider interface for unified AI generation",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -34,8 +34,6 @@ export interface ReplaceBackgroundOptions {
34
34
 
35
35
  export interface VideoFromImageOptions {
36
36
  readonly prompt?: string;
37
- /** @deprecated Use prompt instead */
38
- readonly motion_prompt?: string;
39
37
  /** Video duration in seconds (model-specific, e.g., 4, 8, 12 for Sora 2) */
40
38
  readonly duration?: number;
41
39
  /** Video resolution */
@@ -40,18 +40,30 @@ export {
40
40
  extractBase64,
41
41
  getDataUriExtension,
42
42
  isImageDataUri,
43
+ } from "./image-helpers.util";
44
+
45
+ export {
43
46
  uploadToFalStorage,
44
47
  uploadMultipleToFalStorage,
45
- calculateTimeoutWithJitter,
46
- formatCreditCost,
48
+ } from "./fal-storage.util";
49
+
50
+ export {
47
51
  truncatePrompt,
48
52
  sanitizePrompt,
53
+ } from "./prompt-helpers.util";
54
+
55
+ export {
56
+ calculateTimeoutWithJitter,
57
+ debounce,
58
+ throttle,
59
+ } from "./timing-helpers.util";
60
+
61
+ export {
62
+ formatCreditCost,
49
63
  buildErrorMessage,
50
64
  isDefined,
51
65
  removeNullish,
52
- debounce,
53
- throttle,
54
- } from "./helpers.util";
66
+ } from "./general-helpers.util";
55
67
 
56
68
  export {
57
69
  createJobMetadata,
@@ -31,7 +31,7 @@ export function buildVideoFromImageInput(
31
31
  b64.startsWith("data:") ? b64 : `data:image/jpeg;base64,${b64}`;
32
32
 
33
33
  return {
34
- prompt: options?.prompt || options?.motion_prompt || "Generate natural motion video",
34
+ prompt: options?.prompt || "Generate natural motion video",
35
35
  image_url: formatImage(base64),
36
36
  enable_safety_checker: false,
37
37
  ...(options?.duration && { duration: options.duration }),
@@ -1,34 +0,0 @@
1
- /**
2
- * Helper Utilities - Re-exports
3
- * Backward compatibility barrel file
4
- */
5
-
6
- export {
7
- formatImageDataUri,
8
- extractBase64,
9
- getDataUriExtension,
10
- isImageDataUri,
11
- } from "./image-helpers.util";
12
-
13
- export {
14
- uploadToFalStorage,
15
- uploadMultipleToFalStorage,
16
- } from "./fal-storage.util";
17
-
18
- export {
19
- truncatePrompt,
20
- sanitizePrompt,
21
- } from "./prompt-helpers.util";
22
-
23
- export {
24
- calculateTimeoutWithJitter,
25
- debounce,
26
- throttle,
27
- } from "./timing-helpers.util";
28
-
29
- export {
30
- formatCreditCost,
31
- buildErrorMessage,
32
- isDefined,
33
- removeNullish,
34
- } from "./general-helpers.util";