@umituz/react-native-ai-generation-content 1.72.25 → 1.72.26

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.72.25",
3
+ "version": "1.72.26",
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",
@@ -17,8 +17,6 @@ export interface BaseWizardFlowProps {
17
17
  readonly onGenerationComplete?: () => void;
18
18
  /** Called on generation error */
19
19
  readonly onGenerationError?: (error: string) => void;
20
- /** Called when access check passes and generation is about to start - use for credit deduction */
21
- readonly onCreditDeduction?: () => void | Promise<void>;
22
20
  /** Called when back is pressed on first step */
23
21
  readonly onBack: () => void;
24
22
  /** Translation function */
@@ -27,7 +27,6 @@ export const ImageToVideoWizardFlow: React.FC<ImageToVideoWizardFlowProps> = (pr
27
27
  onNetworkError,
28
28
  onGenerationComplete,
29
29
  onGenerationError,
30
- onCreditDeduction,
31
30
  onBack,
32
31
  t,
33
32
  alertMessages,
@@ -38,7 +37,6 @@ export const ImageToVideoWizardFlow: React.FC<ImageToVideoWizardFlowProps> = (pr
38
37
  const { requireFeature } = useAIFeatureGate({
39
38
  creditCost,
40
39
  onNetworkError,
41
- onSuccess: onCreditDeduction,
42
40
  });
43
41
 
44
42
  const scenario = useMemo(
@@ -26,7 +26,6 @@ export const TextToImageWizardFlow: React.FC<TextToImageWizardFlowProps> = (prop
26
26
  onNetworkError,
27
27
  onGenerationComplete,
28
28
  onGenerationError,
29
- onCreditDeduction,
30
29
  onBack,
31
30
  t,
32
31
  alertMessages,
@@ -37,7 +36,6 @@ export const TextToImageWizardFlow: React.FC<TextToImageWizardFlowProps> = (prop
37
36
  const { requireFeature } = useAIFeatureGate({
38
37
  creditCost,
39
38
  onNetworkError,
40
- onSuccess: onCreditDeduction,
41
39
  });
42
40
 
43
41
  if (!alertMessages) {
@@ -27,7 +27,6 @@ export const TextToVideoWizardFlow: React.FC<TextToVideoWizardFlowProps> = (prop
27
27
  onNetworkError,
28
28
  onGenerationComplete,
29
29
  onGenerationError,
30
- onCreditDeduction,
31
30
  onBack,
32
31
  t,
33
32
  alertMessages,
@@ -38,7 +37,6 @@ export const TextToVideoWizardFlow: React.FC<TextToVideoWizardFlowProps> = (prop
38
37
  const { requireFeature } = useAIFeatureGate({
39
38
  creditCost,
40
39
  onNetworkError,
41
- onSuccess: onCreditDeduction,
42
40
  });
43
41
 
44
42
  const scenario = useMemo(