@umituz/react-native-ai-generation-content 1.17.167 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-ai-generation-content",
3
- "version": "1.17.167",
3
+ "version": "1.17.169",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Image Prompt Segments
3
+ * Reusable building blocks for composing AI image generation prompts
4
+ */
5
+
6
+ // =============================================================================
7
+ // IDENTITY PRESERVATION
8
+ // =============================================================================
9
+
10
+ export const IDENTITY_SEGMENTS = {
11
+ samePerson: "same person",
12
+ preserveIdentity: "preserve identity",
13
+ preserveGender: "preserve original gender",
14
+ preserveFace: "preserve original face structure",
15
+ preserveHair: "preserve original hair color and style",
16
+ preserveEyes: "preserve original eye color",
17
+ sameFeatures: "same facial features",
18
+ maintainLikeness: "maintain likeness",
19
+ } as const;
20
+
21
+ export const IDENTITY_NEGATIVE_SEGMENTS = {
22
+ genderSwap: "gender swap",
23
+ differentPerson: "different person",
24
+ wrongGender: "wrong gender",
25
+ changedIdentity: "changed identity",
26
+ } as const;
27
+
28
+ // =============================================================================
29
+ // ANIME STYLE
30
+ // =============================================================================
31
+
32
+ export const ANIME_STYLE_SEGMENTS = {
33
+ base: "2D anime illustration",
34
+ japaneseStyle: "japanese anime art style",
35
+ celShaded: "cel-shaded anime character",
36
+ animeEyes: "large sparkling anime eyes with detailed iris",
37
+ animeSkin: "smooth cel-shaded skin with subtle anime blush",
38
+ animeHair: "stylized anime hair with highlights",
39
+ ghibli: "Studio Ghibli inspired",
40
+ vibrantColors: "vibrant anime colors",
41
+ cleanLineart: "clean anime lineart",
42
+ professionalPortrait: "professional anime portrait",
43
+ } as const;
44
+
45
+ // =============================================================================
46
+ // QUALITY
47
+ // =============================================================================
48
+
49
+ export const QUALITY_SEGMENTS = {
50
+ highQuality: "high quality",
51
+ detailed: "highly detailed",
52
+ sharp: "sharp focus",
53
+ professional: "professional",
54
+ masterpiece: "masterpiece",
55
+ bestQuality: "best quality",
56
+ } as const;
57
+
58
+ export const QUALITY_NEGATIVE_SEGMENTS = {
59
+ lowQuality: "low quality",
60
+ blurry: "blurry",
61
+ pixelated: "pixelated",
62
+ artifacts: "jpeg artifacts",
63
+ watermark: "watermark",
64
+ signature: "signature",
65
+ } as const;
66
+
67
+ // =============================================================================
68
+ // REALISM AVOIDANCE (for stylized outputs)
69
+ // =============================================================================
70
+
71
+ export const ANTI_REALISM_SEGMENTS = {
72
+ photorealistic: "photorealistic",
73
+ realisticPhoto: "realistic photo",
74
+ render3D: "3D render",
75
+ hyperrealistic: "hyperrealistic",
76
+ realPerson: "real person",
77
+ naturalSkin: "natural skin texture",
78
+ pores: "pores",
79
+ wrinkles: "wrinkles",
80
+ } as const;
81
+
82
+ // =============================================================================
83
+ // ANATOMY NEGATIVE
84
+ // =============================================================================
85
+
86
+ export const ANATOMY_NEGATIVE_SEGMENTS = {
87
+ deformedFace: "deformed face",
88
+ badAnatomy: "bad anatomy",
89
+ extraLimbs: "extra limbs",
90
+ mutatedHands: "mutated hands",
91
+ extraFingers: "extra fingers",
92
+ missingFingers: "missing fingers",
93
+ } as const;
94
+
95
+ // =============================================================================
96
+ // PRESET COLLECTIONS
97
+ // =============================================================================
98
+
99
+ export const PRESET_COLLECTIONS = {
100
+ fullIdentityPreservation: Object.values(IDENTITY_SEGMENTS),
101
+ basicIdentityPreservation: [
102
+ IDENTITY_SEGMENTS.samePerson,
103
+ IDENTITY_SEGMENTS.preserveGender,
104
+ IDENTITY_SEGMENTS.preserveFace,
105
+ ],
106
+ animeStyle: Object.values(ANIME_STYLE_SEGMENTS),
107
+ highQuality: Object.values(QUALITY_SEGMENTS),
108
+ antiRealism: Object.values(ANTI_REALISM_SEGMENTS),
109
+ anatomyNegative: Object.values(ANATOMY_NEGATIVE_SEGMENTS),
110
+ identityNegative: Object.values(IDENTITY_NEGATIVE_SEGMENTS),
111
+ } as const;
112
+
113
+ // =============================================================================
114
+ // TYPES
115
+ // =============================================================================
116
+
117
+ export type IdentitySegment = keyof typeof IDENTITY_SEGMENTS;
118
+ export type AnimeStyleSegment = keyof typeof ANIME_STYLE_SEGMENTS;
119
+ export type QualitySegment = keyof typeof QUALITY_SEGMENTS;
@@ -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
- // DOMAIN LAYER - Types and Value Objects
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
- AIPromptCategory,
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
- AIPromptVariable,
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
- createPromptVersion,
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
- // DOMAIN LAYER - Entities
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
- AIPromptTemplate,
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
- createAIPromptTemplate,
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
- GeneratedPrompt,
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
- createGeneratedPrompt,
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
- FaceSwapConfig,
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
- validateFaceSwapConfig,
73
- createFaceSwapVariable,
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
- PhotoRestorationConfig,
78
- PhotoRestorationTemplate,
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,93 +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
- // PRESENTATION LAYER - Theme
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';
83
+ export type { UsePromptGenerationState, UsePromptGenerationActions } from './presentation/hooks/usePromptGeneration';
84
+ export { usePromptGeneration } from './presentation/hooks/usePromptGeneration';
85
+
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';
88
+
89
+ export { ImagePromptBuilder, createAnimeSelfiePrompt, createStyleTransferPrompt } from './infrastructure/services/ImagePromptBuilder';
90
+ export type { ImagePromptResult, ImagePromptBuilderOptions } from './infrastructure/services/ImagePromptBuilder';
322
91
 
323
- export { usePromptGeneration } from './presentation/hooks/usePromptGeneration';
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';
@@ -0,0 +1,200 @@
1
+ /**
2
+ * ImagePromptBuilder
3
+ * Fluent builder for composing AI image generation prompts
4
+ *
5
+ * @example
6
+ * const { prompt, negativePrompt } = ImagePromptBuilder.create()
7
+ * .withIdentityPreservation()
8
+ * .withAnimeStyle()
9
+ * .withQuality()
10
+ * .build();
11
+ */
12
+
13
+ import {
14
+ IDENTITY_NEGATIVE_SEGMENTS,
15
+ ANIME_STYLE_SEGMENTS,
16
+ QUALITY_SEGMENTS,
17
+ QUALITY_NEGATIVE_SEGMENTS,
18
+ ANTI_REALISM_SEGMENTS,
19
+ ANATOMY_NEGATIVE_SEGMENTS,
20
+ PRESET_COLLECTIONS,
21
+ } from "../../domain/entities/image-prompt-segments";
22
+
23
+ export interface ImagePromptResult {
24
+ prompt: string;
25
+ negativePrompt: string;
26
+ }
27
+
28
+ export interface ImagePromptBuilderOptions {
29
+ separator?: string;
30
+ }
31
+
32
+ export class ImagePromptBuilder {
33
+ private positiveSegments: string[] = [];
34
+ private negativeSegments: string[] = [];
35
+ private readonly separator: string;
36
+
37
+ private constructor(options?: ImagePromptBuilderOptions) {
38
+ this.separator = options?.separator ?? ", ";
39
+ }
40
+
41
+ /**
42
+ * Create a new ImagePromptBuilder instance
43
+ */
44
+ static create(options?: ImagePromptBuilderOptions): ImagePromptBuilder {
45
+ return new ImagePromptBuilder(options);
46
+ }
47
+
48
+ /**
49
+ * Add identity preservation prompts
50
+ * Ensures the AI preserves the original person's features
51
+ */
52
+ withIdentityPreservation(full = true): this {
53
+ const segments = full
54
+ ? PRESET_COLLECTIONS.fullIdentityPreservation
55
+ : PRESET_COLLECTIONS.basicIdentityPreservation;
56
+
57
+ this.positiveSegments.push(...segments);
58
+ this.negativeSegments.push(...Object.values(IDENTITY_NEGATIVE_SEGMENTS));
59
+ return this;
60
+ }
61
+
62
+ /**
63
+ * Add anime style prompts
64
+ */
65
+ withAnimeStyle(): this {
66
+ this.positiveSegments.push(...Object.values(ANIME_STYLE_SEGMENTS));
67
+ this.negativeSegments.push(...Object.values(ANTI_REALISM_SEGMENTS));
68
+ return this;
69
+ }
70
+
71
+ /**
72
+ * Add quality enhancement prompts
73
+ */
74
+ withQuality(): this {
75
+ this.positiveSegments.push(...Object.values(QUALITY_SEGMENTS));
76
+ this.negativeSegments.push(...Object.values(QUALITY_NEGATIVE_SEGMENTS));
77
+ return this;
78
+ }
79
+
80
+ /**
81
+ * Add anatomy safety negative prompts
82
+ */
83
+ withAnatomySafety(): this {
84
+ this.negativeSegments.push(...Object.values(ANATOMY_NEGATIVE_SEGMENTS));
85
+ return this;
86
+ }
87
+
88
+ /**
89
+ * Add anti-realism prompts (for stylized outputs)
90
+ */
91
+ withAntiRealism(): this {
92
+ this.negativeSegments.push(...Object.values(ANTI_REALISM_SEGMENTS));
93
+ return this;
94
+ }
95
+
96
+ /**
97
+ * Add custom positive segments
98
+ */
99
+ withSegments(segments: string[]): this {
100
+ this.positiveSegments.push(...segments);
101
+ return this;
102
+ }
103
+
104
+ /**
105
+ * Add custom negative segments
106
+ */
107
+ withNegativeSegments(segments: string[]): this {
108
+ this.negativeSegments.push(...segments);
109
+ return this;
110
+ }
111
+
112
+ /**
113
+ * Add a single custom segment
114
+ */
115
+ withSegment(segment: string): this {
116
+ this.positiveSegments.push(segment);
117
+ return this;
118
+ }
119
+
120
+ /**
121
+ * Add a single negative segment
122
+ */
123
+ withNegativeSegment(segment: string): this {
124
+ this.negativeSegments.push(segment);
125
+ return this;
126
+ }
127
+
128
+ /**
129
+ * Prepend segments (add to beginning)
130
+ */
131
+ prependSegments(segments: string[]): this {
132
+ this.positiveSegments.unshift(...segments);
133
+ return this;
134
+ }
135
+
136
+ /**
137
+ * Create a new builder extending this one
138
+ */
139
+ extend(): ImagePromptBuilder {
140
+ const builder = ImagePromptBuilder.create({ separator: this.separator });
141
+ builder.positiveSegments = [...this.positiveSegments];
142
+ builder.negativeSegments = [...this.negativeSegments];
143
+ return builder;
144
+ }
145
+
146
+ /**
147
+ * Build the final prompt strings
148
+ */
149
+ build(): ImagePromptResult {
150
+ // Remove duplicates and filter empty values
151
+ const uniquePositive = [...new Set(this.positiveSegments)].filter(Boolean);
152
+ const uniqueNegative = [...new Set(this.negativeSegments)].filter(Boolean);
153
+
154
+ return {
155
+ prompt: uniquePositive.join(this.separator),
156
+ negativePrompt: uniqueNegative.join(this.separator),
157
+ };
158
+ }
159
+
160
+ /**
161
+ * Get current positive segments (for debugging)
162
+ */
163
+ getPositiveSegments(): string[] {
164
+ return [...this.positiveSegments];
165
+ }
166
+
167
+ /**
168
+ * Get current negative segments (for debugging)
169
+ */
170
+ getNegativeSegments(): string[] {
171
+ return [...this.negativeSegments];
172
+ }
173
+ }
174
+
175
+ // =============================================================================
176
+ // PRESET BUILDERS
177
+ // =============================================================================
178
+
179
+ /**
180
+ * Create an anime selfie prompt builder with identity preservation
181
+ */
182
+ export function createAnimeSelfiePrompt(): ImagePromptResult {
183
+ return ImagePromptBuilder.create()
184
+ .withIdentityPreservation()
185
+ .withAnimeStyle()
186
+ .withAnatomySafety()
187
+ .build();
188
+ }
189
+
190
+ /**
191
+ * Create a style transfer prompt builder with identity preservation
192
+ */
193
+ export function createStyleTransferPrompt(style: string): ImagePromptResult {
194
+ return ImagePromptBuilder.create()
195
+ .withIdentityPreservation()
196
+ .withSegment(`${style} style`)
197
+ .withQuality()
198
+ .withAnatomySafety()
199
+ .build();
200
+ }
@@ -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
- ASPECT_RATIO_VALUES,
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
- DEFAULT_TEXT_TO_VOICE_PROMPTS,
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
- IAIProvider,
23
- JobSubmission,
24
- JobStatus,
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
- AIErrorMessages,
52
- GenerationCapability,
53
- GenerationStatus,
54
- GenerationMetadata,
55
- GenerationResult,
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
- // DOMAIN LAYER - Processing Modes
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
- updateAppServices,
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
- generationOrchestrator,
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
- PollJobOptions,
136
- PollJobResult,
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
- // INFRASTRUCTURE LAYER - Middleware Factories
150
- // =============================================================================
47
+ export { createCreditCheckMiddleware, createHistoryTrackingMiddleware } from "./infrastructure/middleware";
48
+ export type { CreditCheckConfig, HistoryConfig, HistoryEntry } from "./infrastructure/middleware";
151
49
 
152
50
  export {
153
- createCreditCheckMiddleware,
154
- createHistoryTrackingMiddleware,
155
- } from "./infrastructure/middleware";
156
-
157
- export type {
158
- CreditCheckConfig,
159
- HistoryConfig,
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
- ProgressOptions,
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
- // INFRASTRUCTURE LAYER - Wrappers
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
- usePendingJobs,
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
- UseGenerationReturn,
265
- UsePendingJobsOptions,
266
- UsePendingJobsReturn,
267
- UseBackgroundGenerationOptions,
268
- UseBackgroundGenerationReturn,
269
- DirectExecutionResult,
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
- GenerationProgressContent,
296
- GenerationProgressBar,
297
- PendingJobCard,
298
- PendingJobProgressBar,
299
- PendingJobCardActions,
300
- GenerationResultContent,
301
- ResultHeader,
302
- ResultImageCard,
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
- GenerationProgressRenderProps,
342
- GenerationProgressContentProps,
343
- GenerationProgressBarProps,
344
- PendingJobCardProps,
345
- StatusLabels,
346
- PendingJobProgressBarProps,
347
- PendingJobCardActionsProps,
348
- GenerationResultData,
349
- GenerationResultContentProps,
350
- ResultHeaderProps,
351
- ResultImageCardProps,
352
- ResultStoryCardProps,
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
- // Selector Factories
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
- TextInputStepConfig,
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";