@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 +1 -1
- package/src/domains/generation/infrastructure/flow/useFlow.ts +0 -2
- package/src/domains/generation/wizard/infrastructure/strategies/image-generation.strategy.ts +1 -1
- package/src/domains/generation/wizard/infrastructure/strategies/video-generation.strategy.ts +1 -1
- package/src/presentation/hooks/generation/orchestrator.ts +1 -1
- package/src/presentation/hooks/generation/useDualImageGeneration.ts +0 -1
- package/src/presentation/hooks/generation/useImageGeneration.ts +0 -1
- package/src/presentation/hooks/generation/useVideoGeneration.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.81.
|
|
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",
|
package/src/domains/generation/wizard/infrastructure/strategies/image-generation.strategy.ts
CHANGED
|
@@ -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
|
|
84
|
+
const { scenario } = options;
|
|
85
85
|
|
|
86
86
|
// Validate model early - fail fast
|
|
87
87
|
if (!scenario.model) {
|
package/src/domains/generation/wizard/infrastructure/strategies/video-generation.strategy.ts
CHANGED
|
@@ -67,7 +67,7 @@ export async function buildVideoInput(
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export function createVideoStrategy(options: CreateVideoStrategyOptions): WizardStrategy {
|
|
70
|
-
const { scenario, modelConfig
|
|
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,
|
|
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 });
|