@umituz/react-native-ai-generation-content 1.17.168 → 1.17.169
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/prompts/index.ts +45 -307
- package/src/features/text-to-image/domain/constants/index.ts +4 -16
- package/src/index.ts +68 -501
- /package/src/{features/text-to-image/domain/constants/prompts.constants.ts → domains/prompts/domain/entities/sample-prompts.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,226 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @umituz/react-native-ai-prompts - Public API
|
|
3
|
-
*
|
|
4
|
-
* AI prompt templates and utilities for React Native applications
|
|
5
|
-
* Following SOLID, DRY, KISS principles with maximum maintainability
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* import {
|
|
9
|
-
* useFaceSwap,
|
|
10
|
-
* useTemplateRepository,
|
|
11
|
-
* FaceSwapService,
|
|
12
|
-
* TemplateRepository
|
|
13
|
-
* } from '@umituz/react-native-ai-prompts';
|
|
14
3
|
*/
|
|
15
4
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
export type { AIPromptCategory, AIPromptVariableType, AIPromptError, AIPromptResult } from './domain/entities/types';
|
|
6
|
+
export type { AIPromptVariable, AIPromptSafety, AIPromptVersion } from './domain/entities/value-objects';
|
|
7
|
+
export { createPromptVersion, formatVersion } from './domain/entities/value-objects';
|
|
19
8
|
|
|
20
|
-
export type {
|
|
21
|
-
|
|
22
|
-
AIPromptVariableType,
|
|
23
|
-
AIPromptError,
|
|
24
|
-
AIPromptResult,
|
|
25
|
-
} from './domain/entities/types';
|
|
9
|
+
export type { AIPromptTemplate, CreateAIPromptTemplateParams } from './domain/entities/AIPromptTemplate';
|
|
10
|
+
export { createAIPromptTemplate, updateTemplateVersion, getTemplateString } from './domain/entities/AIPromptTemplate';
|
|
26
11
|
|
|
27
|
-
export type {
|
|
28
|
-
|
|
29
|
-
AIPromptSafety,
|
|
30
|
-
AIPromptVersion,
|
|
31
|
-
} from './domain/entities/value-objects';
|
|
12
|
+
export type { GeneratedPrompt, CreateGeneratedPromptParams } from './domain/entities/GeneratedPrompt';
|
|
13
|
+
export { createGeneratedPrompt, isPromptRecent } from './domain/entities/GeneratedPrompt';
|
|
32
14
|
|
|
33
|
-
export {
|
|
34
|
-
|
|
35
|
-
formatVersion,
|
|
36
|
-
} from './domain/entities/value-objects';
|
|
15
|
+
export type { FaceSwapConfig, FaceSwapTemplate, FaceSwapTemplateVariable, FaceSwapSafety, FaceSwapGenerationResult } from './domain/entities/FaceSwapConfig';
|
|
16
|
+
export { validateFaceSwapConfig, createFaceSwapVariable } from './domain/entities/FaceSwapConfig';
|
|
37
17
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// =============================================================================
|
|
18
|
+
export type { PhotoRestorationConfig, PhotoRestorationTemplate, PhotoRestorationVariable, PhotoRestorationQuality, PhotoRestorationResult } from './domain/entities/PhotoRestorationConfig';
|
|
19
|
+
export { validatePhotoRestorationConfig, createPhotoRestorationVariable, getQualityLevel } from './domain/entities/PhotoRestorationConfig';
|
|
41
20
|
|
|
42
|
-
export type {
|
|
43
|
-
|
|
44
|
-
CreateAIPromptTemplateParams,
|
|
45
|
-
} from './domain/entities/AIPromptTemplate';
|
|
21
|
+
export type { ImageEnhancementConfig, ImageEnhancementTemplate, ImageEnhancementVariable, EnhancementSettings, ImageEnhancementResult, EnhancementAdjustments } from './domain/entities/ImageEnhancementConfig';
|
|
22
|
+
export { validateImageEnhancementConfig, createImageEnhancementVariable, calculateAdjustments } from './domain/entities/ImageEnhancementConfig';
|
|
46
23
|
|
|
47
|
-
export {
|
|
48
|
-
|
|
49
|
-
updateTemplateVersion,
|
|
50
|
-
getTemplateString,
|
|
51
|
-
} from './domain/entities/AIPromptTemplate';
|
|
24
|
+
export type { StyleTransferConfig, StyleTransferTemplate, StyleTransferVariable, StyleTransferSettings, StyleTransferResult } from './domain/entities/StyleTransferConfig';
|
|
25
|
+
export { validateStyleTransferConfig, createStyleTransferVariable, getStyleStrengthValue, getArtisticModeDescription } from './domain/entities/StyleTransferConfig';
|
|
52
26
|
|
|
53
|
-
export type {
|
|
54
|
-
|
|
55
|
-
CreateGeneratedPromptParams,
|
|
56
|
-
} from './domain/entities/GeneratedPrompt';
|
|
27
|
+
export type { BackgroundRemovalConfig, BackgroundRemovalTemplate, BackgroundRemovalVariable, BackgroundRemovalSettings, BackgroundRemovalResult, DetectedObject } from './domain/entities/BackgroundRemovalConfig';
|
|
28
|
+
export { validateBackgroundRemovalConfig, createBackgroundRemovalVariable, getProcessingTime, getQualityScore } from './domain/entities/BackgroundRemovalConfig';
|
|
57
29
|
|
|
58
|
-
export {
|
|
59
|
-
|
|
60
|
-
isPromptRecent,
|
|
61
|
-
} from './domain/entities/GeneratedPrompt';
|
|
30
|
+
export type { TextGenerationConfig, TextGenerationTemplate, TextGenerationVariable, TextGenerationSettings, TextGenerationResult } from './domain/entities/TextGenerationConfig';
|
|
31
|
+
export { validateTextGenerationConfig, createTextGenerationVariable, getTokenCount, getTemperature, getTopP } from './domain/entities/TextGenerationConfig';
|
|
62
32
|
|
|
63
|
-
export type {
|
|
64
|
-
|
|
65
|
-
FaceSwapTemplate,
|
|
66
|
-
FaceSwapTemplateVariable,
|
|
67
|
-
FaceSwapSafety,
|
|
68
|
-
FaceSwapGenerationResult,
|
|
69
|
-
} from './domain/entities/FaceSwapConfig';
|
|
33
|
+
export type { ColorizationConfig, ColorizationTemplate, ColorizationVariable, ColorizationSettings, ColorizationResult } from './domain/entities/ColorizationConfig';
|
|
34
|
+
export { validateColorizationConfig, createColorizationVariable, getColorizationQuality, getEraDescription, getSuggestedColorPalette } from './domain/entities/ColorizationConfig';
|
|
70
35
|
|
|
71
|
-
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
} from './domain/entities/FaceSwapConfig';
|
|
36
|
+
export type { FuturePredictionConfig, FuturePredictionTemplate, FuturePredictionVariable, FuturePredictionSettings, FuturePredictionResult, FuturePredictionMetadata, FuturePredictionOutputType } from './domain/entities/FuturePredictionConfig';
|
|
37
|
+
export { validateFuturePredictionConfig, createFuturePredictionVariable, getFutureYear } from './domain/entities/FuturePredictionConfig';
|
|
38
|
+
export { IDENTITY_INSTRUCTION, createScenarioPrompt } from './infrastructure/services/FuturePredictionService';
|
|
75
39
|
|
|
76
|
-
export type {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
PhotoRestorationVariable,
|
|
80
|
-
PhotoRestorationQuality,
|
|
81
|
-
PhotoRestorationResult,
|
|
82
|
-
} from './domain/entities/PhotoRestorationConfig';
|
|
83
|
-
|
|
84
|
-
export {
|
|
85
|
-
validatePhotoRestorationConfig,
|
|
86
|
-
createPhotoRestorationVariable,
|
|
87
|
-
getQualityLevel,
|
|
88
|
-
} from './domain/entities/PhotoRestorationConfig';
|
|
89
|
-
|
|
90
|
-
export type {
|
|
91
|
-
ImageEnhancementConfig,
|
|
92
|
-
ImageEnhancementTemplate,
|
|
93
|
-
ImageEnhancementVariable,
|
|
94
|
-
EnhancementSettings,
|
|
95
|
-
ImageEnhancementResult,
|
|
96
|
-
EnhancementAdjustments,
|
|
97
|
-
} from './domain/entities/ImageEnhancementConfig';
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
validateImageEnhancementConfig,
|
|
101
|
-
createImageEnhancementVariable,
|
|
102
|
-
calculateAdjustments,
|
|
103
|
-
} from './domain/entities/ImageEnhancementConfig';
|
|
104
|
-
|
|
105
|
-
export type {
|
|
106
|
-
StyleTransferConfig,
|
|
107
|
-
StyleTransferTemplate,
|
|
108
|
-
StyleTransferVariable,
|
|
109
|
-
StyleTransferSettings,
|
|
110
|
-
StyleTransferResult,
|
|
111
|
-
} from './domain/entities/StyleTransferConfig';
|
|
112
|
-
|
|
113
|
-
export {
|
|
114
|
-
validateStyleTransferConfig,
|
|
115
|
-
createStyleTransferVariable,
|
|
116
|
-
getStyleStrengthValue,
|
|
117
|
-
getArtisticModeDescription,
|
|
118
|
-
} from './domain/entities/StyleTransferConfig';
|
|
119
|
-
|
|
120
|
-
export type {
|
|
121
|
-
BackgroundRemovalConfig,
|
|
122
|
-
BackgroundRemovalTemplate,
|
|
123
|
-
BackgroundRemovalVariable,
|
|
124
|
-
BackgroundRemovalSettings,
|
|
125
|
-
BackgroundRemovalResult,
|
|
126
|
-
DetectedObject,
|
|
127
|
-
} from './domain/entities/BackgroundRemovalConfig';
|
|
128
|
-
|
|
129
|
-
export {
|
|
130
|
-
validateBackgroundRemovalConfig,
|
|
131
|
-
createBackgroundRemovalVariable,
|
|
132
|
-
getProcessingTime,
|
|
133
|
-
getQualityScore,
|
|
134
|
-
} from './domain/entities/BackgroundRemovalConfig';
|
|
135
|
-
|
|
136
|
-
export type {
|
|
137
|
-
TextGenerationConfig,
|
|
138
|
-
TextGenerationTemplate,
|
|
139
|
-
TextGenerationVariable,
|
|
140
|
-
TextGenerationSettings,
|
|
141
|
-
TextGenerationResult,
|
|
142
|
-
} from './domain/entities/TextGenerationConfig';
|
|
143
|
-
|
|
144
|
-
export {
|
|
145
|
-
validateTextGenerationConfig,
|
|
146
|
-
createTextGenerationVariable,
|
|
147
|
-
getTokenCount,
|
|
148
|
-
getTemperature,
|
|
149
|
-
getTopP,
|
|
150
|
-
} from './domain/entities/TextGenerationConfig';
|
|
151
|
-
|
|
152
|
-
export type {
|
|
153
|
-
ColorizationConfig,
|
|
154
|
-
ColorizationTemplate,
|
|
155
|
-
ColorizationVariable,
|
|
156
|
-
ColorizationSettings,
|
|
157
|
-
ColorizationResult,
|
|
158
|
-
} from './domain/entities/ColorizationConfig';
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
validateColorizationConfig,
|
|
162
|
-
createColorizationVariable,
|
|
163
|
-
getColorizationQuality,
|
|
164
|
-
getEraDescription,
|
|
165
|
-
getSuggestedColorPalette,
|
|
166
|
-
} from './domain/entities/ColorizationConfig';
|
|
167
|
-
|
|
168
|
-
export type {
|
|
169
|
-
FuturePredictionConfig,
|
|
170
|
-
FuturePredictionTemplate,
|
|
171
|
-
FuturePredictionVariable,
|
|
172
|
-
FuturePredictionSettings,
|
|
173
|
-
FuturePredictionResult,
|
|
174
|
-
FuturePredictionMetadata,
|
|
175
|
-
FuturePredictionOutputType,
|
|
176
|
-
} from './domain/entities/FuturePredictionConfig';
|
|
177
|
-
|
|
178
|
-
export {
|
|
179
|
-
validateFuturePredictionConfig,
|
|
180
|
-
createFuturePredictionVariable,
|
|
181
|
-
getFutureYear,
|
|
182
|
-
} from './domain/entities/FuturePredictionConfig';
|
|
183
|
-
|
|
184
|
-
export {
|
|
185
|
-
IDENTITY_INSTRUCTION,
|
|
186
|
-
createScenarioPrompt,
|
|
187
|
-
} from './infrastructure/services/FuturePredictionService';
|
|
188
|
-
|
|
189
|
-
// =============================================================================
|
|
190
|
-
// DOMAIN LAYER - Repository Interfaces
|
|
191
|
-
// =============================================================================
|
|
192
|
-
|
|
193
|
-
export type {
|
|
194
|
-
ITemplateRepository,
|
|
195
|
-
} from './domain/repositories/ITemplateRepository';
|
|
196
|
-
|
|
197
|
-
export type {
|
|
198
|
-
IPromptHistoryRepository,
|
|
199
|
-
} from './domain/repositories/IPromptHistoryRepository';
|
|
200
|
-
|
|
201
|
-
export type {
|
|
202
|
-
IFaceSwapService,
|
|
203
|
-
IPhotoRestorationService,
|
|
204
|
-
IImageEnhancementService,
|
|
205
|
-
IStyleTransferService,
|
|
206
|
-
IBackgroundRemovalService,
|
|
207
|
-
ITextGenerationService,
|
|
208
|
-
IColorizationService,
|
|
209
|
-
IPromptGenerationService,
|
|
210
|
-
IFuturePredictionService,
|
|
211
|
-
} from './domain/repositories/IAIPromptServices';
|
|
212
|
-
|
|
213
|
-
// =============================================================================
|
|
214
|
-
// INFRASTRUCTURE LAYER - Repositories
|
|
215
|
-
// =============================================================================
|
|
40
|
+
export type { ITemplateRepository } from './domain/repositories/ITemplateRepository';
|
|
41
|
+
export type { IPromptHistoryRepository } from './domain/repositories/IPromptHistoryRepository';
|
|
42
|
+
export type { IFaceSwapService, IPhotoRestorationService, IImageEnhancementService, IStyleTransferService, IBackgroundRemovalService, ITextGenerationService, IColorizationService, IPromptGenerationService, IFuturePredictionService } from './domain/repositories/IAIPromptServices';
|
|
216
43
|
|
|
217
44
|
export { TemplateRepository } from './infrastructure/repositories/TemplateRepository';
|
|
218
45
|
export { PromptHistoryRepository } from './infrastructure/repositories/PromptHistoryRepository';
|
|
219
46
|
|
|
220
|
-
// =============================================================================
|
|
221
|
-
// INFRASTRUCTURE LAYER - Services
|
|
222
|
-
// =============================================================================
|
|
223
|
-
|
|
224
47
|
export { PromptGenerationService } from './infrastructure/services/PromptGenerationService';
|
|
225
48
|
export { FaceSwapService } from './infrastructure/services/FaceSwapService';
|
|
226
49
|
export { PhotoRestorationService } from './infrastructure/services/PhotoRestorationService';
|
|
@@ -231,125 +54,40 @@ export { TextGenerationService } from './infrastructure/services/TextGenerationS
|
|
|
231
54
|
export { ColorizationService } from './infrastructure/services/ColorizationService';
|
|
232
55
|
export { FuturePredictionService } from './infrastructure/services/FuturePredictionService';
|
|
233
56
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
export type {
|
|
239
|
-
ThemeColors,
|
|
240
|
-
ThemeSpacing,
|
|
241
|
-
ThemeTypography,
|
|
242
|
-
Theme,
|
|
243
|
-
} from './presentation/theme/types';
|
|
244
|
-
|
|
245
|
-
export {
|
|
246
|
-
createTheme,
|
|
247
|
-
defaultTheme,
|
|
248
|
-
} from './presentation/theme/types';
|
|
249
|
-
|
|
250
|
-
export {
|
|
251
|
-
useTheme,
|
|
252
|
-
setTheme,
|
|
253
|
-
getTheme,
|
|
254
|
-
resetTheme,
|
|
255
|
-
} from './presentation/theme/theme';
|
|
256
|
-
|
|
257
|
-
export {
|
|
258
|
-
createStyleSheet,
|
|
259
|
-
spacing,
|
|
260
|
-
color,
|
|
261
|
-
typography,
|
|
262
|
-
} from './presentation/theme/utils';
|
|
263
|
-
|
|
264
|
-
// =============================================================================
|
|
265
|
-
// PRESENTATION LAYER - Hooks
|
|
266
|
-
// =============================================================================
|
|
267
|
-
|
|
268
|
-
export type {
|
|
269
|
-
AsyncState,
|
|
270
|
-
AsyncActions,
|
|
271
|
-
} from './presentation/hooks/useAsyncState';
|
|
57
|
+
export type { ThemeColors, ThemeSpacing, ThemeTypography, Theme } from './presentation/theme/types';
|
|
58
|
+
export { createTheme, defaultTheme } from './presentation/theme/types';
|
|
59
|
+
export { useTheme, setTheme, getTheme, resetTheme } from './presentation/theme/theme';
|
|
60
|
+
export { createStyleSheet, spacing, color, typography } from './presentation/theme/utils';
|
|
272
61
|
|
|
62
|
+
export type { AsyncState, AsyncActions } from './presentation/hooks/useAsyncState';
|
|
273
63
|
export { useAsyncState } from './presentation/hooks/useAsyncState';
|
|
274
64
|
|
|
275
|
-
export type {
|
|
276
|
-
UseTemplateState,
|
|
277
|
-
UseTemplateActions,
|
|
278
|
-
} from './presentation/hooks/useTemplateRepository';
|
|
279
|
-
|
|
65
|
+
export type { UseTemplateState, UseTemplateActions } from './presentation/hooks/useTemplateRepository';
|
|
280
66
|
export { useTemplateRepository } from './presentation/hooks/useTemplateRepository';
|
|
281
67
|
|
|
282
|
-
export type {
|
|
283
|
-
UseFaceSwapState,
|
|
284
|
-
UseFaceSwapActions,
|
|
285
|
-
} from './presentation/hooks/useFaceSwap';
|
|
286
|
-
|
|
68
|
+
export type { UseFaceSwapState, UseFaceSwapActions } from './presentation/hooks/useFaceSwap';
|
|
287
69
|
export { useFaceSwap } from './presentation/hooks/useFaceSwap';
|
|
288
70
|
|
|
289
|
-
export type {
|
|
290
|
-
UsePhotoRestorationState,
|
|
291
|
-
UsePhotoRestorationActions,
|
|
292
|
-
} from './presentation/hooks/usePhotoRestoration';
|
|
293
|
-
|
|
71
|
+
export type { UsePhotoRestorationState, UsePhotoRestorationActions } from './presentation/hooks/usePhotoRestoration';
|
|
294
72
|
export { usePhotoRestoration } from './presentation/hooks/usePhotoRestoration';
|
|
295
73
|
|
|
296
|
-
export type {
|
|
297
|
-
UseImageEnhancementState,
|
|
298
|
-
UseImageEnhancementActions,
|
|
299
|
-
} from './presentation/hooks/useImageEnhancement';
|
|
300
|
-
|
|
74
|
+
export type { UseImageEnhancementState, UseImageEnhancementActions } from './presentation/hooks/useImageEnhancement';
|
|
301
75
|
export { useImageEnhancement } from './presentation/hooks/useImageEnhancement';
|
|
302
76
|
|
|
303
|
-
export type {
|
|
304
|
-
UseStyleTransferState,
|
|
305
|
-
UseStyleTransferActions,
|
|
306
|
-
} from './presentation/hooks/useStyleTransfer';
|
|
307
|
-
|
|
77
|
+
export type { UseStyleTransferState, UseStyleTransferActions } from './presentation/hooks/useStyleTransfer';
|
|
308
78
|
export { useStyleTransfer } from './presentation/hooks/useStyleTransfer';
|
|
309
79
|
|
|
310
|
-
export type {
|
|
311
|
-
AIConfig,
|
|
312
|
-
UseAIServicesState,
|
|
313
|
-
UseAIServicesActions,
|
|
314
|
-
} from './presentation/hooks/useAIServices';
|
|
315
|
-
|
|
80
|
+
export type { AIConfig, UseAIServicesState, UseAIServicesActions } from './presentation/hooks/useAIServices';
|
|
316
81
|
export { useAIServices } from './presentation/hooks/useAIServices';
|
|
317
82
|
|
|
318
|
-
export type {
|
|
319
|
-
UsePromptGenerationState,
|
|
320
|
-
UsePromptGenerationActions,
|
|
321
|
-
} from './presentation/hooks/usePromptGeneration';
|
|
322
|
-
|
|
83
|
+
export type { UsePromptGenerationState, UsePromptGenerationActions } from './presentation/hooks/usePromptGeneration';
|
|
323
84
|
export { usePromptGeneration } from './presentation/hooks/usePromptGeneration';
|
|
324
85
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
// =============================================================================
|
|
328
|
-
|
|
329
|
-
export {
|
|
330
|
-
IDENTITY_SEGMENTS,
|
|
331
|
-
IDENTITY_NEGATIVE_SEGMENTS,
|
|
332
|
-
ANIME_STYLE_SEGMENTS,
|
|
333
|
-
QUALITY_SEGMENTS,
|
|
334
|
-
QUALITY_NEGATIVE_SEGMENTS,
|
|
335
|
-
ANTI_REALISM_SEGMENTS,
|
|
336
|
-
ANATOMY_NEGATIVE_SEGMENTS,
|
|
337
|
-
PRESET_COLLECTIONS,
|
|
338
|
-
} from './domain/entities/image-prompt-segments';
|
|
339
|
-
|
|
340
|
-
export type {
|
|
341
|
-
IdentitySegment,
|
|
342
|
-
AnimeStyleSegment,
|
|
343
|
-
QualitySegment,
|
|
344
|
-
} from './domain/entities/image-prompt-segments';
|
|
86
|
+
export { IDENTITY_SEGMENTS, IDENTITY_NEGATIVE_SEGMENTS, ANIME_STYLE_SEGMENTS, QUALITY_SEGMENTS, QUALITY_NEGATIVE_SEGMENTS, ANTI_REALISM_SEGMENTS, ANATOMY_NEGATIVE_SEGMENTS, PRESET_COLLECTIONS } from './domain/entities/image-prompt-segments';
|
|
87
|
+
export type { IdentitySegment, AnimeStyleSegment, QualitySegment } from './domain/entities/image-prompt-segments';
|
|
345
88
|
|
|
346
|
-
export {
|
|
347
|
-
|
|
348
|
-
createAnimeSelfiePrompt,
|
|
349
|
-
createStyleTransferPrompt,
|
|
350
|
-
} from './infrastructure/services/ImagePromptBuilder';
|
|
89
|
+
export { ImagePromptBuilder, createAnimeSelfiePrompt, createStyleTransferPrompt } from './infrastructure/services/ImagePromptBuilder';
|
|
90
|
+
export type { ImagePromptResult, ImagePromptBuilderOptions } from './infrastructure/services/ImagePromptBuilder';
|
|
351
91
|
|
|
352
|
-
export
|
|
353
|
-
|
|
354
|
-
ImagePromptBuilderOptions,
|
|
355
|
-
} from './infrastructure/services/ImagePromptBuilder';
|
|
92
|
+
export { DEFAULT_TEXT_TO_IMAGE_PROMPTS, DEFAULT_TEXT_TO_VOICE_PROMPTS } from './domain/entities/sample-prompts';
|
|
93
|
+
export type { PromptSuggestion } from './domain/entities/sample-prompts';
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text-to-Image Constants
|
|
3
|
-
* All constant exports for text-to-image feature
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
export { DEFAULT_IMAGE_STYLES } from "./styles.constants";
|
|
7
|
-
|
|
8
2
|
export {
|
|
9
|
-
DEFAULT_NUM_IMAGES_OPTIONS,
|
|
10
|
-
|
|
11
|
-
IMAGE_SIZE_VALUES,
|
|
12
|
-
OUTPUT_FORMAT_VALUES,
|
|
13
|
-
DEFAULT_FORM_VALUES,
|
|
3
|
+
DEFAULT_NUM_IMAGES_OPTIONS, ASPECT_RATIO_VALUES, IMAGE_SIZE_VALUES,
|
|
4
|
+
OUTPUT_FORMAT_VALUES, DEFAULT_FORM_VALUES,
|
|
14
5
|
} from "./options.constants";
|
|
15
|
-
|
|
16
6
|
export {
|
|
17
|
-
DEFAULT_TEXT_TO_IMAGE_PROMPTS,
|
|
18
|
-
|
|
19
|
-
type PromptSuggestion,
|
|
20
|
-
} from "./prompts.constants";
|
|
7
|
+
DEFAULT_TEXT_TO_IMAGE_PROMPTS, DEFAULT_TEXT_TO_VOICE_PROMPTS, type PromptSuggestion,
|
|
8
|
+
} from "../../../../domains/prompts/domain/entities/sample-prompts";
|
package/src/index.ts
CHANGED
|
@@ -1,572 +1,139 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @umituz/react-native-ai-generation-content
|
|
3
3
|
* Provider-agnostic AI generation orchestration
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* import {
|
|
7
|
-
* providerRegistry,
|
|
8
|
-
* generationOrchestrator,
|
|
9
|
-
* useGeneration,
|
|
10
|
-
* } from '@umituz/react-native-ai-generation-content';
|
|
11
4
|
*/
|
|
12
5
|
|
|
13
|
-
|
|
14
6
|
if (typeof __DEV__ !== "undefined" && __DEV__) console.log("📍 [LIFECYCLE] @umituz/react-native-ai-generation-content/index.ts - Module loading");
|
|
15
7
|
|
|
16
|
-
// =============================================================================
|
|
17
|
-
// DOMAIN LAYER - Types & Interfaces
|
|
18
|
-
// =============================================================================
|
|
19
|
-
|
|
20
8
|
export type {
|
|
21
|
-
AIProviderConfig,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
AIJobStatusType,
|
|
26
|
-
AILogEntry,
|
|
27
|
-
SubscribeOptions,
|
|
28
|
-
RunOptions,
|
|
29
|
-
ImageFeatureType,
|
|
30
|
-
VideoFeatureType,
|
|
31
|
-
ImageFeatureInputData,
|
|
32
|
-
VideoFeatureInputData,
|
|
33
|
-
ProviderCapabilities,
|
|
34
|
-
ProviderProgressInfo,
|
|
35
|
-
// App Services Interfaces
|
|
36
|
-
INetworkService,
|
|
37
|
-
ICreditService,
|
|
38
|
-
IPaywallService,
|
|
39
|
-
IAuthService,
|
|
40
|
-
IAnalyticsService,
|
|
41
|
-
IAppServices,
|
|
42
|
-
PartialAppServices,
|
|
9
|
+
AIProviderConfig, IAIProvider, JobSubmission, JobStatus, AIJobStatusType, AILogEntry,
|
|
10
|
+
SubscribeOptions, RunOptions, ImageFeatureType, VideoFeatureType, ImageFeatureInputData,
|
|
11
|
+
VideoFeatureInputData, ProviderCapabilities, ProviderProgressInfo, INetworkService,
|
|
12
|
+
ICreditService, IPaywallService, IAuthService, IAnalyticsService, IAppServices, PartialAppServices,
|
|
43
13
|
} from "./domain/interfaces";
|
|
44
14
|
|
|
45
|
-
export {
|
|
46
|
-
AIErrorType,
|
|
47
|
-
} from "./domain/entities";
|
|
15
|
+
export { AIErrorType } from "./domain/entities";
|
|
48
16
|
|
|
49
17
|
export type {
|
|
50
|
-
AIErrorInfo,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
GenerationProgress,
|
|
57
|
-
GenerationRequest,
|
|
58
|
-
PollingConfig,
|
|
59
|
-
PollingState,
|
|
60
|
-
PollingOptions,
|
|
61
|
-
ProgressStageConfig,
|
|
62
|
-
ProgressConfig,
|
|
63
|
-
MiddlewareContext,
|
|
64
|
-
MiddlewareResultContext,
|
|
65
|
-
BeforeGenerateHook,
|
|
66
|
-
AfterGenerateHook,
|
|
67
|
-
GenerationMiddleware,
|
|
68
|
-
MiddlewareChain,
|
|
69
|
-
// Background Job Types
|
|
70
|
-
BackgroundJobStatus,
|
|
71
|
-
BackgroundJob,
|
|
72
|
-
AddJobInput,
|
|
73
|
-
UpdateJobInput,
|
|
74
|
-
JobExecutorConfig,
|
|
75
|
-
BackgroundQueueConfig,
|
|
76
|
-
GenerationMode,
|
|
18
|
+
AIErrorInfo, AIErrorMessages, GenerationCapability, GenerationStatus, GenerationMetadata,
|
|
19
|
+
GenerationResult, GenerationProgress, GenerationRequest, PollingConfig, PollingState,
|
|
20
|
+
PollingOptions, ProgressStageConfig, ProgressConfig, MiddlewareContext, MiddlewareResultContext,
|
|
21
|
+
BeforeGenerateHook, AfterGenerateHook, GenerationMiddleware, MiddlewareChain,
|
|
22
|
+
BackgroundJobStatus, BackgroundJob, AddJobInput, UpdateJobInput, JobExecutorConfig,
|
|
23
|
+
BackgroundQueueConfig, GenerationMode,
|
|
77
24
|
} from "./domain/entities";
|
|
78
25
|
|
|
79
26
|
export { DEFAULT_POLLING_CONFIG, DEFAULT_PROGRESS_STAGES, DEFAULT_QUEUE_CONFIG } from "./domain/entities";
|
|
80
27
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
// =============================================================================
|
|
84
|
-
|
|
85
|
-
export type {
|
|
86
|
-
ImageProcessingMode,
|
|
87
|
-
ModeConfig,
|
|
88
|
-
ModeCatalog,
|
|
89
|
-
} from "./domain/entities/processing-modes.types";
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
DEFAULT_PROCESSING_MODES,
|
|
93
|
-
getModeConfig,
|
|
94
|
-
getFreeModes,
|
|
95
|
-
getPremiumModes,
|
|
96
|
-
getPromptRequiredModes,
|
|
97
|
-
} from "./domain/constants/processing-modes.constants";
|
|
98
|
-
|
|
99
|
-
// =============================================================================
|
|
100
|
-
// INFRASTRUCTURE LAYER - App Services Configuration
|
|
101
|
-
// =============================================================================
|
|
28
|
+
export type { ImageProcessingMode, ModeConfig, ModeCatalog } from "./domain/entities/processing-modes.types";
|
|
29
|
+
export { DEFAULT_PROCESSING_MODES, getModeConfig, getFreeModes, getPremiumModes, getPromptRequiredModes } from "./domain/constants/processing-modes.constants";
|
|
102
30
|
|
|
103
31
|
export {
|
|
104
|
-
configureAppServices,
|
|
105
|
-
|
|
106
|
-
getAppServices,
|
|
107
|
-
isAppServicesConfigured,
|
|
108
|
-
resetAppServices,
|
|
109
|
-
getNetworkService,
|
|
110
|
-
getCreditService,
|
|
111
|
-
getPaywallService,
|
|
112
|
-
getAuthService,
|
|
113
|
-
getAnalyticsService,
|
|
32
|
+
configureAppServices, updateAppServices, getAppServices, isAppServicesConfigured,
|
|
33
|
+
resetAppServices, getNetworkService, getCreditService, getPaywallService, getAuthService, getAnalyticsService,
|
|
114
34
|
} from "./infrastructure/config";
|
|
115
35
|
|
|
116
|
-
// =============================================================================
|
|
117
|
-
// INFRASTRUCTURE LAYER - Services
|
|
118
|
-
// =============================================================================
|
|
119
|
-
|
|
120
36
|
export {
|
|
121
|
-
providerRegistry,
|
|
122
|
-
|
|
123
|
-
pollJob,
|
|
124
|
-
createJobPoller,
|
|
125
|
-
generationWrapper,
|
|
126
|
-
createGenerationWrapper,
|
|
127
|
-
executeImageFeature,
|
|
128
|
-
hasImageFeatureSupport,
|
|
129
|
-
executeVideoFeature,
|
|
130
|
-
hasVideoFeatureSupport,
|
|
37
|
+
providerRegistry, generationOrchestrator, pollJob, createJobPoller, generationWrapper,
|
|
38
|
+
createGenerationWrapper, executeImageFeature, hasImageFeatureSupport, executeVideoFeature, hasVideoFeatureSupport,
|
|
131
39
|
} from "./infrastructure/services";
|
|
132
40
|
|
|
133
41
|
export type {
|
|
134
|
-
OrchestratorConfig,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
WrapperConfig,
|
|
138
|
-
ImageResultExtractor,
|
|
139
|
-
ExecuteImageFeatureOptions,
|
|
140
|
-
ImageFeatureResult,
|
|
141
|
-
ImageFeatureRequest,
|
|
142
|
-
VideoResultExtractor,
|
|
143
|
-
ExecuteVideoFeatureOptions,
|
|
144
|
-
VideoFeatureResult,
|
|
145
|
-
VideoFeatureRequest,
|
|
42
|
+
OrchestratorConfig, PollJobOptions, PollJobResult, WrapperConfig, ImageResultExtractor,
|
|
43
|
+
ExecuteImageFeatureOptions, ImageFeatureResult, ImageFeatureRequest, VideoResultExtractor,
|
|
44
|
+
ExecuteVideoFeatureOptions, VideoFeatureResult, VideoFeatureRequest,
|
|
146
45
|
} from "./infrastructure/services";
|
|
147
46
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
// =============================================================================
|
|
47
|
+
export { createCreditCheckMiddleware, createHistoryTrackingMiddleware } from "./infrastructure/middleware";
|
|
48
|
+
export type { CreditCheckConfig, HistoryConfig, HistoryEntry } from "./infrastructure/middleware";
|
|
151
49
|
|
|
152
50
|
export {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
HistoryEntry,
|
|
161
|
-
} from "./infrastructure/middleware";
|
|
162
|
-
|
|
163
|
-
// =============================================================================
|
|
164
|
-
// INFRASTRUCTURE LAYER - Utils
|
|
165
|
-
// =============================================================================
|
|
166
|
-
|
|
167
|
-
export {
|
|
168
|
-
// Error classification
|
|
169
|
-
classifyError,
|
|
170
|
-
isTransientError,
|
|
171
|
-
isPermanentError,
|
|
172
|
-
isResultNotReady,
|
|
173
|
-
// Polling
|
|
174
|
-
calculatePollingInterval,
|
|
175
|
-
createPollingDelay,
|
|
176
|
-
// Progress
|
|
177
|
-
getProgressForStatus,
|
|
178
|
-
interpolateProgress,
|
|
179
|
-
createProgressTracker,
|
|
180
|
-
calculatePollingProgress,
|
|
181
|
-
// Status checking
|
|
182
|
-
checkStatusForErrors,
|
|
183
|
-
isJobComplete,
|
|
184
|
-
isJobProcessing,
|
|
185
|
-
isJobFailed,
|
|
186
|
-
// Result validation & URL extraction
|
|
187
|
-
validateResult,
|
|
188
|
-
extractOutputUrl,
|
|
189
|
-
extractOutputUrls,
|
|
190
|
-
extractVideoUrl,
|
|
191
|
-
extractThumbnailUrl,
|
|
192
|
-
extractAudioUrl,
|
|
193
|
-
extractImageUrls,
|
|
194
|
-
// Photo generation utils
|
|
195
|
-
cleanBase64,
|
|
196
|
-
addBase64Prefix,
|
|
197
|
-
preparePhoto,
|
|
198
|
-
preparePhotos,
|
|
199
|
-
isValidBase64,
|
|
200
|
-
getBase64Size,
|
|
201
|
-
getBase64SizeMB,
|
|
202
|
-
// Feature utils
|
|
203
|
-
prepareImage,
|
|
204
|
-
createDevCallbacks,
|
|
205
|
-
createFeatureUtils,
|
|
206
|
-
// Video helpers
|
|
207
|
-
showVideoGenerationSuccess,
|
|
208
|
-
handleGenerationError,
|
|
209
|
-
showContentModerationWarning,
|
|
51
|
+
classifyError, isTransientError, isPermanentError, isResultNotReady, calculatePollingInterval,
|
|
52
|
+
createPollingDelay, getProgressForStatus, interpolateProgress, createProgressTracker,
|
|
53
|
+
calculatePollingProgress, checkStatusForErrors, isJobComplete, isJobProcessing, isJobFailed,
|
|
54
|
+
validateResult, extractOutputUrl, extractOutputUrls, extractVideoUrl, extractThumbnailUrl,
|
|
55
|
+
extractAudioUrl, extractImageUrls, cleanBase64, addBase64Prefix, preparePhoto, preparePhotos,
|
|
56
|
+
isValidBase64, getBase64Size, getBase64SizeMB, prepareImage, createDevCallbacks, createFeatureUtils,
|
|
57
|
+
showVideoGenerationSuccess, handleGenerationError, showContentModerationWarning,
|
|
210
58
|
} from "./infrastructure/utils";
|
|
211
59
|
|
|
212
60
|
export type {
|
|
213
|
-
IntervalOptions,
|
|
214
|
-
|
|
215
|
-
StatusCheckResult,
|
|
216
|
-
ResultValidation,
|
|
217
|
-
ValidateResultOptions,
|
|
218
|
-
PhotoInput,
|
|
219
|
-
PreparedImage,
|
|
220
|
-
// Feature utils types
|
|
221
|
-
ImageSelector,
|
|
222
|
-
VideoSaver,
|
|
223
|
-
AlertFunction,
|
|
224
|
-
FeatureUtilsConfig,
|
|
225
|
-
// Video helpers types
|
|
226
|
-
VideoAlertFunction,
|
|
61
|
+
IntervalOptions, ProgressOptions, StatusCheckResult, ResultValidation, ValidateResultOptions,
|
|
62
|
+
PhotoInput, PreparedImage, ImageSelector, VideoSaver, AlertFunction, FeatureUtilsConfig, VideoAlertFunction,
|
|
227
63
|
} from "./infrastructure/utils";
|
|
228
64
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
// =============================================================================
|
|
232
|
-
|
|
233
|
-
export {
|
|
234
|
-
enhancePromptWithLanguage,
|
|
235
|
-
getSupportedLanguages,
|
|
236
|
-
getLanguageName,
|
|
237
|
-
ModerationWrapper,
|
|
238
|
-
generateSynchronously,
|
|
239
|
-
} from "./infrastructure/wrappers";
|
|
240
|
-
|
|
241
|
-
export type {
|
|
242
|
-
ModerationResult,
|
|
243
|
-
ModerationConfig,
|
|
244
|
-
SynchronousGenerationInput,
|
|
245
|
-
SynchronousGenerationConfig,
|
|
246
|
-
} from "./infrastructure/wrappers";
|
|
247
|
-
|
|
248
|
-
// =============================================================================
|
|
249
|
-
// PRESENTATION LAYER - Hooks
|
|
250
|
-
// =============================================================================
|
|
65
|
+
export { enhancePromptWithLanguage, getSupportedLanguages, getLanguageName, ModerationWrapper, generateSynchronously } from "./infrastructure/wrappers";
|
|
66
|
+
export type { ModerationResult, ModerationConfig, SynchronousGenerationInput, SynchronousGenerationConfig } from "./infrastructure/wrappers";
|
|
251
67
|
|
|
252
68
|
export {
|
|
253
|
-
useGeneration,
|
|
254
|
-
|
|
255
|
-
useBackgroundGeneration,
|
|
256
|
-
usePhotoGeneration,
|
|
257
|
-
useGenerationFlow,
|
|
258
|
-
useGenerationCallbacksBuilder,
|
|
259
|
-
useAIFeatureCallbacks,
|
|
69
|
+
useGeneration, usePendingJobs, useBackgroundGeneration, usePhotoGeneration,
|
|
70
|
+
useGenerationFlow, useGenerationCallbacksBuilder, useAIFeatureCallbacks,
|
|
260
71
|
} from "./presentation/hooks";
|
|
261
72
|
|
|
262
73
|
export type {
|
|
263
|
-
UseGenerationOptions,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
UsePhotoGenerationReturn,
|
|
271
|
-
PhotoGenerationInput,
|
|
272
|
-
PhotoGenerationResult,
|
|
273
|
-
PhotoGenerationError,
|
|
274
|
-
PhotoGenerationConfig,
|
|
275
|
-
PhotoGenerationState,
|
|
276
|
-
PhotoGenerationStatus,
|
|
277
|
-
UseGenerationFlowOptions,
|
|
278
|
-
UseGenerationFlowReturn,
|
|
279
|
-
CreditType,
|
|
280
|
-
GenerationExecutionResult,
|
|
281
|
-
GenerationCallbacksConfig,
|
|
282
|
-
GenerationCallbacks,
|
|
283
|
-
UseGenerationCallbacksBuilderOptions,
|
|
284
|
-
AIFeatureCallbacksConfig,
|
|
285
|
-
AIFeatureCallbacks,
|
|
286
|
-
AIFeatureGenerationResult,
|
|
74
|
+
UseGenerationOptions, UseGenerationReturn, UsePendingJobsOptions, UsePendingJobsReturn,
|
|
75
|
+
UseBackgroundGenerationOptions, UseBackgroundGenerationReturn, DirectExecutionResult,
|
|
76
|
+
UsePhotoGenerationReturn, PhotoGenerationInput, PhotoGenerationResult, PhotoGenerationError,
|
|
77
|
+
PhotoGenerationConfig, PhotoGenerationState, PhotoGenerationStatus, UseGenerationFlowOptions,
|
|
78
|
+
UseGenerationFlowReturn, CreditType, GenerationExecutionResult, GenerationCallbacksConfig,
|
|
79
|
+
GenerationCallbacks, UseGenerationCallbacksBuilderOptions, AIFeatureCallbacksConfig,
|
|
80
|
+
AIFeatureCallbacks, AIFeatureGenerationResult,
|
|
287
81
|
} from "./presentation/hooks";
|
|
288
82
|
|
|
289
|
-
// =============================================================================
|
|
290
|
-
// PRESENTATION LAYER - Components
|
|
291
|
-
// =============================================================================
|
|
292
|
-
|
|
293
83
|
export {
|
|
294
|
-
GenerationProgressModal,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
ResultStoryCard,
|
|
304
|
-
ResultActions,
|
|
305
|
-
DEFAULT_RESULT_CONFIG,
|
|
306
|
-
PhotoStep,
|
|
307
|
-
// Image Picker
|
|
308
|
-
DualImagePicker,
|
|
309
|
-
// New Generic Sections
|
|
310
|
-
PromptInput,
|
|
311
|
-
AIGenerationHero,
|
|
312
|
-
ExamplePrompts,
|
|
313
|
-
ModerationSummary,
|
|
314
|
-
// Buttons
|
|
315
|
-
GenerateButton,
|
|
316
|
-
// Display
|
|
317
|
-
ResultDisplay,
|
|
318
|
-
AIGenerationResult,
|
|
319
|
-
ErrorDisplay,
|
|
320
|
-
// Headers
|
|
321
|
-
FeatureHeader,
|
|
322
|
-
AIGenScreenHeader,
|
|
323
|
-
CreditBadge,
|
|
324
|
-
|
|
325
|
-
// Photo Upload
|
|
326
|
-
PhotoUploadCard,
|
|
327
|
-
// Modals
|
|
328
|
-
SettingsSheet,
|
|
329
|
-
// Selectors
|
|
330
|
-
StyleSelector,
|
|
331
|
-
AspectRatioSelector,
|
|
332
|
-
DurationSelector,
|
|
333
|
-
GridSelector,
|
|
334
|
-
StylePresetsGrid,
|
|
335
|
-
AIGenerationForm,
|
|
336
|
-
|
|
84
|
+
GenerationProgressModal, GenerationProgressContent, GenerationProgressBar, PendingJobCard,
|
|
85
|
+
PendingJobProgressBar, PendingJobCardActions, GenerationResultContent, ResultHeader,
|
|
86
|
+
ResultImageCard, ResultStoryCard, ResultActions, DEFAULT_RESULT_CONFIG, PhotoStep,
|
|
87
|
+
DualImagePicker, PromptInput, AIGenerationHero, ExamplePrompts, ModerationSummary,
|
|
88
|
+
GenerateButton, ResultDisplay, AIGenerationResult, ErrorDisplay, FeatureHeader,
|
|
89
|
+
AIGenScreenHeader, CreditBadge, PhotoUploadCard, SettingsSheet, StyleSelector,
|
|
90
|
+
AspectRatioSelector, DurationSelector, GridSelector, StylePresetsGrid, AIGenerationForm,
|
|
91
|
+
createAspectRatioOptions, createDurationOptions, createStyleOptions, createStyleOptionsFromConfig,
|
|
92
|
+
ASPECT_RATIO_IDS, COMMON_DURATIONS,
|
|
337
93
|
} from "./presentation/components";
|
|
338
94
|
|
|
339
95
|
export type {
|
|
340
|
-
GenerationProgressModalProps,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
ResultActionsProps,
|
|
354
|
-
ResultConfig,
|
|
355
|
-
ResultHeaderConfig,
|
|
356
|
-
ResultImageConfig,
|
|
357
|
-
ResultStoryConfig,
|
|
358
|
-
ResultActionsConfig,
|
|
359
|
-
ResultLayoutConfig,
|
|
360
|
-
ResultActionButton,
|
|
361
|
-
PhotoStepProps,
|
|
362
|
-
// Image Picker
|
|
363
|
-
DualImagePickerProps,
|
|
364
|
-
PromptInputProps,
|
|
365
|
-
AIGenerationHeroProps,
|
|
366
|
-
ExamplePromptsProps,
|
|
367
|
-
ModerationSummaryProps,
|
|
368
|
-
StylePresetsGridProps,
|
|
369
|
-
StylePreset,
|
|
370
|
-
// Buttons
|
|
371
|
-
GenerateButtonProps,
|
|
372
|
-
// Display
|
|
373
|
-
ResultDisplayProps,
|
|
374
|
-
ResultDisplayAction,
|
|
375
|
-
AIGenerationResultProps,
|
|
376
|
-
AIGenerationResultAction,
|
|
377
|
-
ErrorDisplayProps,
|
|
378
|
-
// Headers
|
|
379
|
-
FeatureHeaderProps,
|
|
380
|
-
AIGenScreenHeaderProps,
|
|
381
|
-
NavigationButtonType,
|
|
382
|
-
CreditBadgeProps,
|
|
383
|
-
|
|
384
|
-
// Photo Upload
|
|
385
|
-
PhotoUploadCardProps,
|
|
386
|
-
PhotoUploadCardConfig,
|
|
387
|
-
// Modals
|
|
388
|
-
SettingsSheetProps,
|
|
389
|
-
// Selectors
|
|
390
|
-
StyleSelectorProps,
|
|
391
|
-
AspectRatioSelectorProps,
|
|
392
|
-
DurationSelectorProps,
|
|
393
|
-
GridSelectorProps,
|
|
394
|
-
GridSelectorOption,
|
|
395
|
-
|
|
396
|
-
StyleOption,
|
|
397
|
-
AspectRatioOption,
|
|
398
|
-
DurationValue,
|
|
399
|
-
// Selector Factories
|
|
400
|
-
AspectRatioTranslations,
|
|
401
|
-
DurationOption,
|
|
402
|
-
StyleTranslations,
|
|
403
|
-
AIGenerationFormProps,
|
|
404
|
-
AIGenerationFormTranslations,
|
|
96
|
+
GenerationProgressModalProps, GenerationProgressRenderProps, GenerationProgressContentProps,
|
|
97
|
+
GenerationProgressBarProps, PendingJobCardProps, StatusLabels, PendingJobProgressBarProps,
|
|
98
|
+
PendingJobCardActionsProps, GenerationResultData, GenerationResultContentProps, ResultHeaderProps,
|
|
99
|
+
ResultImageCardProps, ResultStoryCardProps, ResultActionsProps, ResultConfig, ResultHeaderConfig,
|
|
100
|
+
ResultImageConfig, ResultStoryConfig, ResultActionsConfig, ResultLayoutConfig, ResultActionButton,
|
|
101
|
+
PhotoStepProps, DualImagePickerProps, PromptInputProps, AIGenerationHeroProps, ExamplePromptsProps,
|
|
102
|
+
ModerationSummaryProps, StylePresetsGridProps, StylePreset, GenerateButtonProps, ResultDisplayProps,
|
|
103
|
+
ResultDisplayAction, AIGenerationResultProps, AIGenerationResultAction, ErrorDisplayProps,
|
|
104
|
+
FeatureHeaderProps, AIGenScreenHeaderProps, NavigationButtonType, CreditBadgeProps,
|
|
105
|
+
PhotoUploadCardProps, PhotoUploadCardConfig, SettingsSheetProps, StyleSelectorProps,
|
|
106
|
+
AspectRatioSelectorProps, DurationSelectorProps, GridSelectorProps, GridSelectorOption,
|
|
107
|
+
StyleOption, AspectRatioOption, DurationValue, AspectRatioTranslations, DurationOption,
|
|
108
|
+
StyleTranslations, AIGenerationFormProps, AIGenerationFormTranslations,
|
|
405
109
|
} from "./presentation/components";
|
|
406
110
|
|
|
407
|
-
|
|
408
|
-
export {
|
|
409
|
-
createAspectRatioOptions,
|
|
410
|
-
createDurationOptions,
|
|
411
|
-
createStyleOptions,
|
|
412
|
-
createStyleOptionsFromConfig,
|
|
413
|
-
ASPECT_RATIO_IDS,
|
|
414
|
-
COMMON_DURATIONS,
|
|
415
|
-
} from "./presentation/components";
|
|
416
|
-
|
|
417
|
-
// =============================================================================
|
|
418
|
-
// PRESENTATION LAYER - Flow Configuration
|
|
419
|
-
// =============================================================================
|
|
420
|
-
|
|
421
|
-
export {
|
|
422
|
-
DEFAULT_SINGLE_PHOTO_FLOW,
|
|
423
|
-
DEFAULT_DUAL_PHOTO_FLOW,
|
|
424
|
-
} from "./presentation/types/flow-config.types";
|
|
425
|
-
|
|
111
|
+
export { DEFAULT_SINGLE_PHOTO_FLOW, DEFAULT_DUAL_PHOTO_FLOW } from "./presentation/types/flow-config.types";
|
|
426
112
|
export type {
|
|
427
|
-
PhotoStepConfig,
|
|
428
|
-
|
|
429
|
-
PreviewStepConfig,
|
|
430
|
-
GenerationFlowConfig,
|
|
431
|
-
PhotoStepData,
|
|
432
|
-
TextInputStepData,
|
|
433
|
-
GenerationFlowState,
|
|
113
|
+
PhotoStepConfig, TextInputStepConfig, PreviewStepConfig, GenerationFlowConfig,
|
|
114
|
+
PhotoStepData, TextInputStepData, GenerationFlowState,
|
|
434
115
|
} from "./presentation/types/flow-config.types";
|
|
435
116
|
|
|
436
|
-
// =============================================================================
|
|
437
|
-
// DOMAINS - AI Prompts
|
|
438
|
-
// =============================================================================
|
|
439
|
-
|
|
440
117
|
export * from "./domains/prompts";
|
|
441
|
-
|
|
442
|
-
// =============================================================================
|
|
443
|
-
// DOMAINS - Content Moderation
|
|
444
|
-
// =============================================================================
|
|
445
|
-
|
|
446
118
|
export * from "./domains/content-moderation";
|
|
447
|
-
|
|
448
|
-
// =============================================================================
|
|
449
|
-
// DOMAINS - Creations
|
|
450
|
-
// =============================================================================
|
|
451
|
-
|
|
452
119
|
export * from "./domains/creations";
|
|
453
|
-
|
|
454
|
-
// =============================================================================
|
|
455
|
-
// DOMAINS - Face Detection
|
|
456
|
-
// =============================================================================
|
|
457
|
-
|
|
458
120
|
export * from "./domains/face-detection";
|
|
459
|
-
|
|
460
|
-
// =============================================================================
|
|
461
|
-
// FEATURES - Image-to-Image (Base)
|
|
462
|
-
// =============================================================================
|
|
463
|
-
|
|
464
121
|
export * from "./features/image-to-image";
|
|
465
|
-
|
|
466
|
-
// =============================================================================
|
|
467
|
-
// FEATURES - Background
|
|
468
|
-
// =============================================================================
|
|
469
|
-
|
|
470
122
|
export * from "./features/replace-background";
|
|
471
|
-
|
|
472
|
-
// =============================================================================
|
|
473
|
-
// FEATURES - Upscaling
|
|
474
|
-
// =============================================================================
|
|
475
|
-
|
|
476
123
|
export * from "./features/upscaling";
|
|
477
124
|
export * from "./features/script-generator";
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
// =============================================================================
|
|
481
|
-
// FEATURES - Photo Restoration
|
|
482
|
-
// =============================================================================
|
|
483
|
-
|
|
484
125
|
export * from "./features/photo-restoration";
|
|
485
|
-
|
|
486
|
-
// =============================================================================
|
|
487
|
-
// FEATURES - Shared Dual Image Video Types
|
|
488
|
-
// =============================================================================
|
|
489
|
-
|
|
490
|
-
export type {
|
|
491
|
-
DualImageVideoProcessingStartData,
|
|
492
|
-
DualImageVideoResult,
|
|
493
|
-
DualImageVideoFeatureConfig,
|
|
494
|
-
} from "./features/shared/dual-image-video";
|
|
495
|
-
|
|
496
|
-
// =============================================================================
|
|
497
|
-
// FEATURES - AI Hug
|
|
498
|
-
// =============================================================================
|
|
499
|
-
|
|
126
|
+
export type { DualImageVideoProcessingStartData, DualImageVideoResult, DualImageVideoFeatureConfig } from "./features/shared/dual-image-video";
|
|
500
127
|
export * from "./features/ai-hug";
|
|
501
|
-
|
|
502
|
-
// =============================================================================
|
|
503
|
-
// FEATURES - AI Kiss
|
|
504
|
-
// =============================================================================
|
|
505
|
-
|
|
506
128
|
export * from "./features/ai-kiss";
|
|
507
|
-
|
|
508
|
-
// =============================================================================
|
|
509
|
-
// FEATURES - Face Swap
|
|
510
|
-
// =============================================================================
|
|
511
|
-
|
|
512
129
|
export * from "./features/face-swap";
|
|
513
|
-
|
|
514
|
-
// =============================================================================
|
|
515
|
-
// FEATURES - Anime Selfie
|
|
516
|
-
// =============================================================================
|
|
517
|
-
|
|
518
130
|
export * from "./features/anime-selfie";
|
|
519
|
-
|
|
520
|
-
// =============================================================================
|
|
521
|
-
// FEATURES - Remove Background
|
|
522
|
-
// =============================================================================
|
|
523
|
-
|
|
524
131
|
export * from "./features/remove-background";
|
|
525
|
-
|
|
526
|
-
// =============================================================================
|
|
527
|
-
// FEATURES - Remove Object
|
|
528
|
-
// =============================================================================
|
|
529
|
-
|
|
530
132
|
export * from "./features/remove-object";
|
|
531
|
-
|
|
532
|
-
// =============================================================================
|
|
533
|
-
// FEATURES - Text-to-Video
|
|
534
|
-
// =============================================================================
|
|
535
|
-
|
|
536
133
|
export * from "./features/text-to-video";
|
|
537
|
-
|
|
538
|
-
// =============================================================================
|
|
539
|
-
// FEATURES - Text-to-Image
|
|
540
|
-
// =============================================================================
|
|
541
|
-
|
|
542
134
|
export * from "./features/text-to-image";
|
|
543
|
-
|
|
544
|
-
// =============================================================================
|
|
545
|
-
// FEATURES - Image-to-Video
|
|
546
|
-
// =============================================================================
|
|
547
|
-
|
|
548
135
|
export * from "./features/image-to-video";
|
|
549
|
-
|
|
550
|
-
// =============================================================================
|
|
551
|
-
// FEATURES - Text-to-Voice
|
|
552
|
-
// =============================================================================
|
|
553
|
-
|
|
554
136
|
export * from "./features/text-to-voice";
|
|
555
|
-
|
|
556
|
-
// =============================================================================
|
|
557
|
-
// FEATURES - HD Touch Up
|
|
558
|
-
// =============================================================================
|
|
559
|
-
|
|
560
137
|
export * from "./features/hd-touch-up";
|
|
561
|
-
|
|
562
|
-
// =============================================================================
|
|
563
|
-
// FEATURES - Meme Generator
|
|
564
|
-
// =============================================================================
|
|
565
|
-
|
|
566
138
|
export * from "./features/meme-generator";
|
|
567
|
-
|
|
568
|
-
// =============================================================================
|
|
569
|
-
// INFRASTRUCTURE - Orchestration
|
|
570
|
-
// =============================================================================
|
|
571
|
-
|
|
572
139
|
export * from "./infrastructure/orchestration";
|