@umituz/react-native-ai-generation-content 1.83.65 → 1.83.67
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.83.
|
|
3
|
+
"version": "1.83.67",
|
|
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",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"url": "git+https://github.com/umituz/react-native-ai-generation-content.git"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@umituz/react-native-auth": "
|
|
44
|
+
"@umituz/react-native-auth": "*"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@react-navigation/native": ">=6.0.0",
|
|
48
48
|
"@tanstack/react-query": ">=5.0.0",
|
|
49
|
-
"@umituz/react-native-ai-fal-provider": "
|
|
50
|
-
"@umituz/react-native-design-system": "
|
|
51
|
-
"@umituz/react-native-firebase": "
|
|
52
|
-
"@umituz/react-native-subscription": "
|
|
53
|
-
"@umituz/react-native-video-editor": "
|
|
49
|
+
"@umituz/react-native-ai-fal-provider": "*",
|
|
50
|
+
"@umituz/react-native-design-system": "*",
|
|
51
|
+
"@umituz/react-native-firebase": "*",
|
|
52
|
+
"@umituz/react-native-subscription": "*",
|
|
53
|
+
"@umituz/react-native-video-editor": "*",
|
|
54
54
|
"expo": ">=54.0.0",
|
|
55
55
|
"expo-video": ">=1.0.0",
|
|
56
56
|
"firebase": ">=10.0.0",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"@types/react": "~19.1.10",
|
|
73
73
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
74
74
|
"@typescript-eslint/parser": "^8.54.0",
|
|
75
|
-
"@umituz/react-native-ai-fal-provider": "
|
|
76
|
-
"@umituz/react-native-design-system": "
|
|
77
|
-
"@umituz/react-native-firebase": "
|
|
78
|
-
"@umituz/react-native-subscription": "
|
|
75
|
+
"@umituz/react-native-ai-fal-provider": "*",
|
|
76
|
+
"@umituz/react-native-design-system": "*",
|
|
77
|
+
"@umituz/react-native-firebase": "*",
|
|
78
|
+
"@umituz/react-native-subscription": "*",
|
|
79
79
|
"eslint": "^9.39.2",
|
|
80
80
|
"eslint-plugin-react": "^7.37.5",
|
|
81
81
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -21,8 +21,6 @@ import type {
|
|
|
21
21
|
AIFeatureGateReturn,
|
|
22
22
|
} from "../types/access-control.types";
|
|
23
23
|
|
|
24
|
-
declare const __DEV__: boolean;
|
|
25
|
-
|
|
26
24
|
const handlePromiseResult = (
|
|
27
25
|
result: void | Promise<void>,
|
|
28
26
|
onSuccess?: () => void,
|
|
@@ -68,30 +66,12 @@ export function useAIFeatureGate(options: AIFeatureGateOptions): AIFeatureGateRe
|
|
|
68
66
|
|
|
69
67
|
const requireFeature = useCallback(
|
|
70
68
|
(action: () => void | Promise<void>): boolean => {
|
|
71
|
-
if (__DEV__) {
|
|
72
|
-
console.log("[AIFeatureGate] requireFeature:", {
|
|
73
|
-
isOffline,
|
|
74
|
-
hasFirebaseUser,
|
|
75
|
-
isCreditsLoaded,
|
|
76
|
-
isPremium,
|
|
77
|
-
creditBalance,
|
|
78
|
-
creditCost,
|
|
79
|
-
hasCredits,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
|
|
83
69
|
if (isOffline) {
|
|
84
|
-
if (__DEV__) {
|
|
85
|
-
console.log("[AIFeatureGate] BLOCKED: User is offline");
|
|
86
|
-
}
|
|
87
70
|
onNetworkError?.();
|
|
88
71
|
return false;
|
|
89
72
|
}
|
|
90
73
|
|
|
91
74
|
if (hasFirebaseUser && !isCreditsLoaded && isCreditsLoading) {
|
|
92
|
-
if (__DEV__) {
|
|
93
|
-
console.log("[AIFeatureGate] WAITING: Credits still loading");
|
|
94
|
-
}
|
|
95
75
|
return false;
|
|
96
76
|
}
|
|
97
77
|
|
package/src/domains/generation/wizard/infrastructure/strategies/video-generation.strategy.ts
CHANGED
|
@@ -55,8 +55,8 @@ export async function buildVideoInput(
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
return {
|
|
58
|
-
sourceImageBase64: photos[0],
|
|
59
|
-
targetImageBase64: photos[1] || photos[0],
|
|
58
|
+
sourceImageBase64: photos[0] || undefined,
|
|
59
|
+
targetImageBase64: photos[1] || photos[0] || undefined,
|
|
60
60
|
prompt: finalPrompt,
|
|
61
61
|
duration: extractDuration(wizardData),
|
|
62
62
|
aspectRatio: extractAspectRatio(wizardData),
|