@umituz/react-native-ai-generation-content 1.81.3 → 1.81.4

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.3",
3
+ "version": "1.81.4",
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",
@@ -83,22 +83,22 @@ export const WizardFlowContent: React.FC<WizardFlowContentProps> = (props) => {
83
83
  const prevStepIdRef = useRef<string | undefined>(undefined);
84
84
  const repository = useMemo(() => createCreationsRepository("creations"), []);
85
85
 
86
- const flowSteps = useMemo<StepDefinition[]>(
87
- () =>
88
- buildFlowStepsFromWizard(featureConfig, {
89
- includePreview: true,
90
- includeGenerating: true,
91
- includeResult: !skipResultStep,
92
- }),
93
- [featureConfig, skipResultStep],
94
- );
95
-
96
- if (typeof __DEV__ !== "undefined" && __DEV__) {
97
- console.log("[WizardFlowContent] flowSteps built", {
98
- totalSteps: flowSteps.length,
99
- steps: flowSteps.map((s, i) => `${i}: ${s.id} (${s.type})`),
86
+ const flowSteps = useMemo<StepDefinition[]>(() => {
87
+ const steps = buildFlowStepsFromWizard(featureConfig, {
88
+ includePreview: true,
89
+ includeGenerating: true,
90
+ includeResult: !skipResultStep,
100
91
  });
101
- }
92
+
93
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
94
+ console.log("[WizardFlowContent] flowSteps built", {
95
+ totalSteps: steps.length,
96
+ steps: steps.map((s, i) => `${i}: ${s.id} (${s.type})`),
97
+ });
98
+ }
99
+
100
+ return steps;
101
+ }, [featureConfig, skipResultStep]);
102
102
 
103
103
  const flow = useFlow({ steps: flowSteps, initialStepIndex: 0 });
104
104
  const {
@@ -66,7 +66,6 @@ export const pollQueueStatus = async (params: PollParams): Promise<void> => {
66
66
 
67
67
  try {
68
68
  const status = await provider.getJobStatus(model, requestId);
69
- if (__DEV__) console.log("[VideoQueueGeneration] Poll:", status.status);
70
69
 
71
70
  // Reset consecutive errors on successful poll
72
71
  consecutiveErrorsRef.current = 0;
@@ -49,13 +49,6 @@ class ProviderRegistry {
49
49
  }
50
50
 
51
51
  getActiveProvider(): IAIProvider | null {
52
- if (typeof __DEV__ !== "undefined" && __DEV__) {
53
- console.log("[ProviderRegistry] getActiveProvider() called", {
54
- activeProviderId: this.activeProviderId,
55
- registeredProviders: Array.from(this.providers.keys()),
56
- });
57
- }
58
-
59
52
  if (!this.activeProviderId) {
60
53
  if (typeof __DEV__ !== "undefined" && __DEV__) {
61
54
  console.warn("[ProviderRegistry] No active provider set!");
@@ -63,16 +56,7 @@ class ProviderRegistry {
63
56
  return null;
64
57
  }
65
58
 
66
- const provider = this.providers.get(this.activeProviderId) ?? null;
67
-
68
- if (typeof __DEV__ !== "undefined" && __DEV__) {
69
- console.log("[ProviderRegistry] getActiveProvider() returning", {
70
- providerId: provider?.providerId,
71
- isInitialized: provider?.isInitialized(),
72
- });
73
- }
74
-
75
- return provider;
59
+ return this.providers.get(this.activeProviderId) ?? null;
76
60
  }
77
61
 
78
62
  getProvider(providerId: string): IAIProvider | null {