@umituz/react-native-ai-generation-content 1.37.37 → 1.37.38
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.37.
|
|
3
|
+
"version": "1.37.38",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -40,7 +40,11 @@ export {
|
|
|
40
40
|
export type { ConfiguredScenario } from "./infrastructure/scenario-registry";
|
|
41
41
|
|
|
42
42
|
// Utils
|
|
43
|
-
export {
|
|
43
|
+
export {
|
|
44
|
+
createStoryTemplate,
|
|
45
|
+
createPhotorealisticPrompt,
|
|
46
|
+
createCreativePrompt,
|
|
47
|
+
} from "./infrastructure/utils/scenario-utils";
|
|
44
48
|
|
|
45
49
|
// Wizard Configurations - App-agnostic, classifies by INPUT REQUIREMENTS
|
|
46
50
|
export {
|
|
@@ -12,8 +12,17 @@ export const PHOTOREALISTIC_BASE = {
|
|
|
12
12
|
lighting: "cinematic lighting",
|
|
13
13
|
} as const;
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Creative prompt constants for non-realistic AI generation
|
|
17
|
+
* Used for meme, cartoon, or stylized content generation
|
|
18
|
+
*/
|
|
19
|
+
export const CREATIVE_BASE = {
|
|
20
|
+
lighting: "vibrant creative lighting",
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
15
23
|
/**
|
|
16
24
|
* Creates a photorealistic AI prompt by combining scene description with quality modifiers
|
|
25
|
+
* Used for realistic image/video generation (future us, video apps)
|
|
17
26
|
* @param scene - The scene-specific description (what's happening, who, where)
|
|
18
27
|
* @param lightingOverride - Optional custom lighting description
|
|
19
28
|
* @returns Complete photorealistic prompt
|
|
@@ -26,6 +35,21 @@ export const createPhotorealisticPrompt = (
|
|
|
26
35
|
return `${PHOTOREALISTIC_BASE.quality}, ${scene}, ${lighting}`;
|
|
27
36
|
};
|
|
28
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Creates a creative AI prompt without photorealistic constraints
|
|
40
|
+
* Used for meme apps or creative/stylized content
|
|
41
|
+
* @param scene - The scene-specific description (what's happening, who, where)
|
|
42
|
+
* @param lightingOverride - Optional custom lighting description
|
|
43
|
+
* @returns Creative prompt without photorealistic prefix
|
|
44
|
+
*/
|
|
45
|
+
export const createCreativePrompt = (
|
|
46
|
+
scene: string,
|
|
47
|
+
lightingOverride?: string,
|
|
48
|
+
): string => {
|
|
49
|
+
const lighting = lightingOverride ?? CREATIVE_BASE.lighting;
|
|
50
|
+
return `${scene}, ${lighting}`;
|
|
51
|
+
};
|
|
52
|
+
|
|
29
53
|
export const createStoryTemplate = (
|
|
30
54
|
scenarioContext: string,
|
|
31
55
|
futureDescription: string,
|