@umituz/react-native-ai-generation-content 1.81.0 → 1.81.1

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.81.0",
3
+ "version": "1.81.1",
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",
@@ -103,5 +103,3 @@ export const useFlow = (config: UseFlowConfig): UseFlowReturn => {
103
103
  getPartnerName,
104
104
  };
105
105
  };
106
-
107
- declare const __DEV__: boolean;
@@ -81,7 +81,7 @@ function applyStyleEnhancements(prompt: string, wizardData: Record<string, unkno
81
81
  // ============================================================================
82
82
 
83
83
  export function createImageStrategy(options: CreateImageStrategyOptions): WizardStrategy {
84
- const { scenario, creditCost } = options;
84
+ const { scenario } = options;
85
85
 
86
86
  // Validate model early - fail fast
87
87
  if (!scenario.model) {
@@ -67,7 +67,7 @@ export async function buildVideoInput(
67
67
  }
68
68
 
69
69
  export function createVideoStrategy(options: CreateVideoStrategyOptions): WizardStrategy {
70
- const { scenario, modelConfig, creditCost } = options;
70
+ const { scenario, modelConfig } = options;
71
71
 
72
72
  // Validate model early - fail fast
73
73
  if (!scenario.model) {
@@ -23,7 +23,7 @@ export const useGenerationOrchestrator = <TInput, TResult>(
23
23
  strategy: GenerationStrategy<TInput, TResult>,
24
24
  config: GenerationConfig,
25
25
  ): UseGenerationOrchestratorReturn<TInput, TResult> => {
26
- const { userId, alertMessages, onCreditsExhausted, onSuccess, onError, moderation, lifecycle } = config;
26
+ const { userId, alertMessages, onSuccess, onError, moderation, lifecycle } = config;
27
27
 
28
28
  if (typeof __DEV__ !== "undefined" && __DEV__) {
29
29
  console.log("[Orchestrator] Hook initialized:", { userId });
@@ -27,7 +27,6 @@ export const useDualImageGeneration = (
27
27
  creditCost,
28
28
  alertMessages,
29
29
  imageAspect = [1, 1],
30
- onCreditsExhausted,
31
30
  onSuccess,
32
31
  onError,
33
32
  } = config;
@@ -47,7 +47,6 @@ export const useImageGeneration = <TInput extends ImageGenerationInput, TResult>
47
47
  buildCreation,
48
48
  creditCost,
49
49
  alertMessages,
50
- onCreditsExhausted,
51
50
  onSuccess,
52
51
  onError,
53
52
  } = config;
@@ -50,7 +50,6 @@ export const useVideoGeneration = <TResult>(
50
50
  buildCreation,
51
51
  creditCost = 1,
52
52
  alertMessages,
53
- onCreditsExhausted,
54
53
  onSuccess,
55
54
  onError,
56
55
  } = config;