@umituz/react-native-ai-generation-content 1.27.29 → 1.27.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/domains/generation/infrastructure/flow/step-builder.ts +1 -1
- package/src/domains/generation/wizard/configs/text-to-video.config.ts +24 -0
- package/src/domains/generation/wizard/infrastructure/strategies/video-generation.strategy.ts +2 -2
- package/src/domains/generation/wizard/infrastructure/utils/wizard-data-extractors.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.30",
|
|
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",
|
|
@@ -77,7 +77,7 @@ export const buildStepsFromScenario = (
|
|
|
77
77
|
type: StepType.FEATURE_SELECTION,
|
|
78
78
|
config: {
|
|
79
79
|
id: "DURATION_SELECTION",
|
|
80
|
-
durations: config.durationSelection.durations ?? [
|
|
80
|
+
durations: config.durationSelection.durations ?? [4, 8, 12],
|
|
81
81
|
required: config.durationSelection.required ?? false,
|
|
82
82
|
},
|
|
83
83
|
required: config.durationSelection.required ?? false,
|
|
@@ -20,6 +20,30 @@ export const TEXT_TO_VIDEO_WIZARD_CONFIG: WizardFeatureConfig = {
|
|
|
20
20
|
maxLength: 500,
|
|
21
21
|
multiline: true,
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
id: "resolution",
|
|
25
|
+
type: "selection",
|
|
26
|
+
titleKey: "generation.resolution.title",
|
|
27
|
+
selectionType: "resolution",
|
|
28
|
+
options: [
|
|
29
|
+
{ id: "720p", label: "720p", value: "720p" },
|
|
30
|
+
{ id: "default", label: "Default", value: "default" },
|
|
31
|
+
],
|
|
32
|
+
required: true,
|
|
33
|
+
defaultValue: "720p",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "aspect_ratio",
|
|
37
|
+
type: "selection",
|
|
38
|
+
titleKey: "generation.aspectRatio.title",
|
|
39
|
+
selectionType: "aspect_ratio",
|
|
40
|
+
options: [
|
|
41
|
+
{ id: "16:9", label: "16:9", value: "16:9" },
|
|
42
|
+
{ id: "9:16", label: "9:16", value: "9:16" },
|
|
43
|
+
],
|
|
44
|
+
required: true,
|
|
45
|
+
defaultValue: "16:9",
|
|
46
|
+
},
|
|
23
47
|
{
|
|
24
48
|
id: "duration",
|
|
25
49
|
type: "selection",
|
package/src/domains/generation/wizard/infrastructure/strategies/video-generation.strategy.ts
CHANGED
|
@@ -94,8 +94,8 @@ export async function buildVideoInput(
|
|
|
94
94
|
throw new Error("Prompt is required for video generation");
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// Extract duration using type-safe extractor (default:
|
|
98
|
-
const duration = extractDuration(wizardData,
|
|
97
|
+
// Extract duration using type-safe extractor (default: 4 seconds for Sora 2)
|
|
98
|
+
const duration = extractDuration(wizardData, 4);
|
|
99
99
|
|
|
100
100
|
return {
|
|
101
101
|
sourceImageBase64: photos[0],
|