@umituz/react-native-ai-generation-content 1.83.65 → 1.83.66

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.65",
3
+ "version": "1.83.66",
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",
@@ -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
 
@@ -9,11 +9,6 @@ export interface AIFeatureGateOptions {
9
9
  */
10
10
  creditCost: number;
11
11
 
12
- /**
13
- * Optional feature name for analytics tracking
14
- */
15
- featureName?: string;
16
-
17
12
  /**
18
13
  * Callback fired when network is unavailable
19
14
  */