@plasius/video 0.1.2 → 0.1.4

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.
@@ -0,0 +1,53 @@
1
+ import type { AIVideoGenerationStage } from "./types.js";
2
+
3
+ export interface AIVideoStageSummary {
4
+ stage: AIVideoGenerationStage;
5
+ label: string;
6
+ mainUI: string;
7
+ description: string;
8
+ }
9
+
10
+ export const aiVideoStageFlow: readonly AIVideoStageSummary[] = [
11
+ {
12
+ stage: "idle",
13
+ label: "Idle",
14
+ mainUI: "Prompt input",
15
+ description: "Base prompt entry with optional image upload and advanced settings.",
16
+ },
17
+ {
18
+ stage: "generatingImages",
19
+ label: "Generating Images",
20
+ mainUI: "Skeleton grid",
21
+ description: "Asynchronous generation feedback with shimmer placeholders.",
22
+ },
23
+ {
24
+ stage: "imageSelection",
25
+ label: "Image Selection",
26
+ mainUI: "Image grid",
27
+ description: "Select, refine, save, and mark an image as the video source.",
28
+ },
29
+ {
30
+ stage: "generatingVideo",
31
+ label: "Generating Video",
32
+ mainUI: "Image + progress",
33
+ description: "Motion extraction and generation progress with live feedback.",
34
+ },
35
+ {
36
+ stage: "playback",
37
+ label: "Playback",
38
+ mainUI: "Video player",
39
+ description: "Playback controls, download, regenerate, and voiceover entry point.",
40
+ },
41
+ {
42
+ stage: "voiceover",
43
+ label: "Voiceover",
44
+ mainUI: "Bottom voice panel",
45
+ description: "Editable script, voice presets, speed/emotion controls, waveform preview.",
46
+ },
47
+ {
48
+ stage: "export",
49
+ label: "Export",
50
+ mainUI: "Export modal",
51
+ description: "Final artifact export options with quality and format metadata.",
52
+ },
53
+ ] as const;
@@ -0,0 +1,52 @@
1
+ export const aiVideoGenerationTokens = {
2
+ color: {
3
+ background: "#0F1117",
4
+ surface: "#161A23",
5
+ accentPrimary: "#6C5CE7",
6
+ accentSecondary: "#00D4FF",
7
+ success: "#00C896",
8
+ warning: "#FFB020",
9
+ error: "#FF4D4F",
10
+ textPrimary: "#E6EAF2",
11
+ textSecondary: "#A0A8B8",
12
+ borderSubtle: "rgba(255,255,255,0.05)",
13
+ placeholderText: "rgba(255,255,255,0.35)",
14
+ },
15
+ typography: {
16
+ headingFontFamily: "Inter, 'SF Pro Display', sans-serif",
17
+ bodyFontFamily: "Inter, sans-serif",
18
+ h1Px: 28,
19
+ h2Px: 20,
20
+ bodyPx: 16,
21
+ smallPx: 13,
22
+ promptPxMin: 16,
23
+ promptPxMax: 18,
24
+ },
25
+ layout: {
26
+ headerHeightPx: 64,
27
+ promptBarMinHeightPx: 140,
28
+ gridGapPx: 16,
29
+ cardAspectRatio: "16 / 9",
30
+ },
31
+ radius: {
32
+ promptPx: 12,
33
+ cardPx: 14,
34
+ panelPx: 14,
35
+ },
36
+ spacing: {
37
+ xxsPx: 4,
38
+ xsPx: 8,
39
+ smPx: 12,
40
+ mdPx: 16,
41
+ lgPx: 20,
42
+ xlPx: 24,
43
+ },
44
+ animation: {
45
+ fastMs: 200,
46
+ standardMs: 280,
47
+ slowMs: 300,
48
+ easing: "cubic-bezier(0.4, 0.0, 0.2, 1)",
49
+ },
50
+ } as const;
51
+
52
+ export type AIVideoGenerationTokens = typeof aiVideoGenerationTokens;
@@ -0,0 +1,62 @@
1
+ export type AIVideoGenerationStage =
2
+ | "idle"
3
+ | "generatingImages"
4
+ | "imageSelection"
5
+ | "generatingVideo"
6
+ | "playback"
7
+ | "voiceover"
8
+ | "export";
9
+
10
+ export interface AIVideoPromptVersion {
11
+ id: string;
12
+ label: string;
13
+ basePrompt: string;
14
+ refinement?: string;
15
+ isActive?: boolean;
16
+ }
17
+
18
+ export interface AIVideoImageVariant {
19
+ id: string;
20
+ label: string;
21
+ src?: string;
22
+ alt?: string;
23
+ isSelected?: boolean;
24
+ isSaved?: boolean;
25
+ }
26
+
27
+ export interface AIVideoMotionDraft {
28
+ cameraMotion: string;
29
+ environmentalMotion: string;
30
+ subjectMotion: string;
31
+ }
32
+
33
+ export interface AIVideoVoicePreset {
34
+ id: string;
35
+ label: string;
36
+ }
37
+
38
+ export interface AIVideoVoiceSettings {
39
+ script: string;
40
+ voiceId: string;
41
+ speed: number;
42
+ emotion: string;
43
+ }
44
+
45
+ export interface AIVideoGenerationScreenModel {
46
+ stage: AIVideoGenerationStage;
47
+ projectName: string;
48
+ prompt: string;
49
+ promptPlaceholder?: string;
50
+ canGenerate: boolean;
51
+ statusText?: string;
52
+ generationProgress?: number;
53
+ imageVariants: AIVideoImageVariant[];
54
+ selectedImageId?: string;
55
+ promptVersions: AIVideoPromptVersion[];
56
+ motionDraft: AIVideoMotionDraft;
57
+ motionPrompt?: string;
58
+ uploadedImageName?: string;
59
+ videoSource?: string;
60
+ voiceSettings: AIVideoVoiceSettings;
61
+ voicePresets: AIVideoVoicePreset[];
62
+ }
package/src/index.ts CHANGED
@@ -5,5 +5,7 @@ export interface VideoPackageInfo {
5
5
 
6
6
  export const videoPackageInfo: VideoPackageInfo = {
7
7
  name: "@plasius/video",
8
- version: "0.1.1",
8
+ version: "0.1.2",
9
9
  };
10
+
11
+ export * from "./ai-video-generation/index.js";