@umituz/react-native-ai-generation-content 1.17.129 → 1.17.131
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 +2 -2
- package/src/domains/prompts/infrastructure/services/FuturePredictionService.ts +0 -4
- package/src/domains/prompts/presentation/hooks/useFaceSwap.ts +0 -2
- package/src/domains/prompts/presentation/hooks/useImageEnhancement.ts +0 -2
- package/src/domains/prompts/presentation/hooks/usePhotoRestoration.ts +0 -2
- package/src/domains/prompts/presentation/hooks/useStyleTransfer.ts +0 -2
- package/src/infrastructure/services/generation-orchestrator.service.ts +1 -2
- package/src/infrastructure/services/job-poller.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.131",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"expo-linear-gradient": "~15.0.7",
|
|
91
91
|
"expo-localization": "^17.0.8",
|
|
92
92
|
"expo-sharing": "^14.0.8",
|
|
93
|
-
"expo-video": "^
|
|
93
|
+
"expo-video": "^3.0.15",
|
|
94
94
|
"firebase": "^12.6.0",
|
|
95
95
|
"i18next": "^25.7.3",
|
|
96
96
|
"react": "19.1.0",
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
validateFuturePredictionConfig,
|
|
11
11
|
getFutureYear,
|
|
12
12
|
} from '../../domain/entities/FuturePredictionConfig';
|
|
13
|
-
import { PromptGenerationService } from './PromptGenerationService';
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Core preservation instruction for photorealistic couple/family transformations
|
|
@@ -90,10 +89,7 @@ Style:
|
|
|
90
89
|
`.trim();
|
|
91
90
|
|
|
92
91
|
export class FuturePredictionService implements IFuturePredictionService {
|
|
93
|
-
private promptService: PromptGenerationService;
|
|
94
|
-
|
|
95
92
|
constructor() {
|
|
96
|
-
this.promptService = new PromptGenerationService();
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
generateTemplate(
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import type { FaceSwapConfig, FaceSwapGenerationResult } from '../../domain/entities/FaceSwapConfig';
|
|
3
3
|
import type { IFaceSwapService } from '../../domain/repositories/IAIPromptServices';
|
|
4
|
-
import type { ITemplateRepository } from '../../domain/repositories/ITemplateRepository';
|
|
5
4
|
import type { IPromptHistoryRepository } from '../../domain/repositories/IPromptHistoryRepository';
|
|
6
5
|
import { createGeneratedPrompt } from '../../domain/entities/GeneratedPrompt';
|
|
7
6
|
import { useAsyncState } from './useAsyncState';
|
|
@@ -20,7 +19,6 @@ export interface UseFaceSwapActions {
|
|
|
20
19
|
|
|
21
20
|
export const useFaceSwap = (
|
|
22
21
|
faceSwapService: IFaceSwapService,
|
|
23
|
-
templateRepository: ITemplateRepository,
|
|
24
22
|
historyRepository: IPromptHistoryRepository
|
|
25
23
|
): UseFaceSwapState & UseFaceSwapActions => {
|
|
26
24
|
const {
|
|
@@ -2,7 +2,6 @@ import { useCallback } from 'react';
|
|
|
2
2
|
import type { ImageEnhancementConfig, EnhancementAdjustments } from '../../domain/entities/ImageEnhancementConfig';
|
|
3
3
|
import type { AIPromptTemplate } from '../../domain/entities/AIPromptTemplate';
|
|
4
4
|
import type { IImageEnhancementService } from '../../domain/repositories/IAIPromptServices';
|
|
5
|
-
import type { ITemplateRepository } from '../../domain/repositories/ITemplateRepository';
|
|
6
5
|
import type { IPromptHistoryRepository } from '../../domain/repositories/IPromptHistoryRepository';
|
|
7
6
|
import { createGeneratedPrompt } from '../../domain/entities/GeneratedPrompt';
|
|
8
7
|
import { useAsyncState } from './useAsyncState';
|
|
@@ -28,7 +27,6 @@ export interface UseImageEnhancementActions {
|
|
|
28
27
|
|
|
29
28
|
export const useImageEnhancement = (
|
|
30
29
|
service: IImageEnhancementService,
|
|
31
|
-
templateRepository: ITemplateRepository,
|
|
32
30
|
historyRepository: IPromptHistoryRepository
|
|
33
31
|
): UseImageEnhancementState & UseImageEnhancementActions => {
|
|
34
32
|
const {
|
|
@@ -2,7 +2,6 @@ import { useCallback } from 'react';
|
|
|
2
2
|
import type { PhotoRestorationConfig } from '../../domain/entities/PhotoRestorationConfig';
|
|
3
3
|
import type { AIPromptTemplate } from '../../domain/entities/AIPromptTemplate';
|
|
4
4
|
import type { IPhotoRestorationService } from '../../domain/repositories/IAIPromptServices';
|
|
5
|
-
import type { ITemplateRepository } from '../../domain/repositories/ITemplateRepository';
|
|
6
5
|
import type { IPromptHistoryRepository } from '../../domain/repositories/IPromptHistoryRepository';
|
|
7
6
|
import { createGeneratedPrompt } from '../../domain/entities/GeneratedPrompt';
|
|
8
7
|
import { useAsyncState } from './useAsyncState';
|
|
@@ -28,7 +27,6 @@ export interface UsePhotoRestorationActions {
|
|
|
28
27
|
|
|
29
28
|
export const usePhotoRestoration = (
|
|
30
29
|
service: IPhotoRestorationService,
|
|
31
|
-
templateRepository: ITemplateRepository,
|
|
32
30
|
historyRepository: IPromptHistoryRepository
|
|
33
31
|
): UsePhotoRestorationState & UsePhotoRestorationActions => {
|
|
34
32
|
const {
|
|
@@ -3,7 +3,6 @@ import type { StyleTransferConfig } from '../../domain/entities/StyleTransferCon
|
|
|
3
3
|
import type { AIPromptTemplate } from '../../domain/entities/AIPromptTemplate';
|
|
4
4
|
import type { IStyleTransferService } from '../../domain/repositories/IAIPromptServices';
|
|
5
5
|
import { StyleTransferService } from '../../infrastructure/services/StyleTransferService';
|
|
6
|
-
import type { ITemplateRepository } from '../../domain/repositories/ITemplateRepository';
|
|
7
6
|
import type { IPromptHistoryRepository } from '../../domain/repositories/IPromptHistoryRepository';
|
|
8
7
|
import { createGeneratedPrompt } from '../../domain/entities/GeneratedPrompt';
|
|
9
8
|
import { useAsyncState } from './useAsyncState';
|
|
@@ -31,7 +30,6 @@ export interface UseStyleTransferActions {
|
|
|
31
30
|
|
|
32
31
|
export const useStyleTransfer = (
|
|
33
32
|
service: IStyleTransferService,
|
|
34
|
-
templateRepository: ITemplateRepository,
|
|
35
33
|
historyRepository: IPromptHistoryRepository
|
|
36
34
|
): UseStyleTransferState & UseStyleTransferActions => {
|
|
37
35
|
const {
|
|
@@ -86,8 +86,7 @@ class GenerationOrchestratorService {
|
|
|
86
86
|
provider,
|
|
87
87
|
request.model,
|
|
88
88
|
submission.requestId,
|
|
89
|
-
|
|
90
|
-
(status, attempt, config) => {
|
|
89
|
+
(status: import("../../domain/interfaces").JobStatus, attempt: number, config: PollingConfig) => {
|
|
91
90
|
this.progressManager.updateProgressFromStatus(
|
|
92
91
|
status,
|
|
93
92
|
attempt,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { IAIProvider, JobStatus } from "../../domain/interfaces";
|
|
7
|
-
import { DEFAULT_POLLING_CONFIG, type PollingConfig
|
|
7
|
+
import { DEFAULT_POLLING_CONFIG, type PollingConfig } from "../../domain/entities";
|
|
8
8
|
import { isTransientError } from "../utils/error-classifier.util";
|
|
9
9
|
import { createPollingDelay } from "../utils/polling-interval.util";
|
|
10
10
|
|
|
@@ -26,7 +26,6 @@ export class JobPoller {
|
|
|
26
26
|
provider: IAIProvider,
|
|
27
27
|
model: string,
|
|
28
28
|
requestId: string,
|
|
29
|
-
onProgress?: (progress: GenerationProgress) => void,
|
|
30
29
|
onStatusUpdate?: (status: JobStatus, attempt: number, config: PollingConfig) => void,
|
|
31
30
|
): Promise<T> {
|
|
32
31
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|