@umituz/react-native-ai-generation-content 1.20.28 → 1.20.29
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.20.
|
|
3
|
+
"version": "1.20.29",
|
|
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",
|
|
@@ -228,6 +228,8 @@ export const useGenerationOrchestrator = <TInput, TResult>(
|
|
|
228
228
|
|
|
229
229
|
// Handle lifecycle completion
|
|
230
230
|
handleLifecycleComplete("success", result);
|
|
231
|
+
|
|
232
|
+
return result;
|
|
231
233
|
},
|
|
232
234
|
[strategy, userId, alertMessages, deductCredit, showSuccess, onSuccess, handleLifecycleComplete],
|
|
233
235
|
);
|
|
@@ -361,7 +363,7 @@ export const useGenerationOrchestrator = <TInput, TResult>(
|
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
// 5. Execute generation
|
|
364
|
-
await executeGeneration(input);
|
|
366
|
+
return await executeGeneration(input);
|
|
365
367
|
} catch (err) {
|
|
366
368
|
const error = parseError(err);
|
|
367
369
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
@@ -375,6 +377,7 @@ export const useGenerationOrchestrator = <TInput, TResult>(
|
|
|
375
377
|
|
|
376
378
|
// Handle lifecycle completion for errors
|
|
377
379
|
handleLifecycleComplete("error", undefined, error);
|
|
380
|
+
throw error; // Re-throw so caller knows it failed
|
|
378
381
|
} finally {
|
|
379
382
|
isGeneratingRef.current = false;
|
|
380
383
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|