@umituz/react-native-ai-generation-content 1.45.0 → 1.46.0
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.
|
|
3
|
+
"version": "1.46.0",
|
|
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",
|
|
@@ -48,8 +48,8 @@ export interface ImageGenerationConfig<TInput extends ImageGenerationInput, TRes
|
|
|
48
48
|
};
|
|
49
49
|
/** Optional: Build creation for saving */
|
|
50
50
|
buildCreation?: (result: TResult, input: TInput) => Creation | null;
|
|
51
|
-
/** Credit cost
|
|
52
|
-
creditCost
|
|
51
|
+
/** Credit cost for this generation - REQUIRED, determined by the app */
|
|
52
|
+
creditCost: number;
|
|
53
53
|
/** Alert messages for errors */
|
|
54
54
|
alertMessages: AlertMessages;
|
|
55
55
|
/** Callbacks */
|
|
@@ -93,7 +93,7 @@ export const useImageGeneration = <
|
|
|
93
93
|
processResult,
|
|
94
94
|
buildExecutorInput,
|
|
95
95
|
buildCreation,
|
|
96
|
-
creditCost
|
|
96
|
+
creditCost,
|
|
97
97
|
alertMessages,
|
|
98
98
|
onCreditsExhausted,
|
|
99
99
|
onSuccess,
|