@umituz/react-native-ai-generation-content 1.18.1 → 1.18.2
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.18.
|
|
3
|
+
"version": "1.18.2",
|
|
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",
|
|
@@ -57,7 +57,11 @@ export const useGenerationOrchestrator = <TInput, TResult>(
|
|
|
57
57
|
const creditCost = strategy.getCreditCost();
|
|
58
58
|
const hasCredits = await checkCredits(creditCost);
|
|
59
59
|
if (!hasCredits) {
|
|
60
|
-
|
|
60
|
+
// Open paywall instead of showing error
|
|
61
|
+
isGeneratingRef.current = false;
|
|
62
|
+
setState(INITIAL_STATE);
|
|
63
|
+
onCreditsExhausted?.();
|
|
64
|
+
return;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
setState((prev) => ({ ...prev, status: "generating", progress: 10 }));
|