@depths/waves 0.1.0 → 0.2.0
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/README.md +2040 -300
- package/dist/chunk-7QPNRHMW.mjs +484 -0
- package/dist/chunk-PKLHVWMD.mjs +3158 -0
- package/dist/cli.js +3212 -180
- package/dist/cli.mjs +132 -56
- package/dist/index.d.mts +27 -12
- package/dist/index.d.ts +27 -12
- package/dist/index.js +3140 -191
- package/dist/index.mjs +3 -5
- package/dist/registry-C6H9G0df.d.mts +204 -0
- package/dist/registry-C6H9G0df.d.ts +204 -0
- package/dist/remotion/index.d.mts +3 -3
- package/dist/remotion/index.d.ts +3 -3
- package/dist/remotion/index.js +2860 -106
- package/dist/remotion/index.mjs +3 -6
- package/package.json +19 -19
- package/dist/chunk-TGAL5RQN.mjs +0 -404
- package/dist/chunk-WGQITADJ.mjs +0 -284
- package/dist/registry-hVIyqwS6.d.mts +0 -355
- package/dist/registry-hVIyqwS6.d.ts +0 -355
package/dist/index.mjs
CHANGED
|
@@ -4,27 +4,25 @@ import {
|
|
|
4
4
|
__wavesVersion,
|
|
5
5
|
getPromptPayload,
|
|
6
6
|
getSystemPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7QPNRHMW.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ComponentRegistry,
|
|
10
|
-
ComponentSchemas,
|
|
11
10
|
VideoIRSchema,
|
|
12
11
|
WavesError,
|
|
13
12
|
WavesRenderError,
|
|
14
13
|
WavesValidationError,
|
|
15
14
|
globalRegistry,
|
|
16
15
|
registerBuiltInComponents
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PKLHVWMD.mjs";
|
|
18
17
|
|
|
19
18
|
// src/index.ts
|
|
20
19
|
async function renderVideo(ir, options) {
|
|
21
20
|
registerBuiltInComponents();
|
|
22
|
-
const engine = new WavesEngine(globalRegistry, new IRValidator());
|
|
21
|
+
const engine = new WavesEngine(globalRegistry, new IRValidator(globalRegistry));
|
|
23
22
|
await engine.render(ir, options);
|
|
24
23
|
}
|
|
25
24
|
export {
|
|
26
25
|
ComponentRegistry,
|
|
27
|
-
ComponentSchemas,
|
|
28
26
|
IRValidator,
|
|
29
27
|
VideoIRSchema,
|
|
30
28
|
WavesEngine,
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
type ComponentKind = 'primitive' | 'composite' | 'template';
|
|
5
|
+
type ComponentCategory = 'primitive' | 'text' | 'image' | 'media' | 'transition' | 'layout' | 'data' | 'social' | 'branding';
|
|
6
|
+
interface ComponentMetadata {
|
|
7
|
+
kind: ComponentKind;
|
|
8
|
+
category: ComponentCategory;
|
|
9
|
+
description: string;
|
|
10
|
+
llmGuidance?: string;
|
|
11
|
+
examples?: Array<Record<string, unknown>>;
|
|
12
|
+
internal?: boolean;
|
|
13
|
+
acceptsChildren?: boolean;
|
|
14
|
+
minChildren?: number;
|
|
15
|
+
maxChildren?: number;
|
|
16
|
+
}
|
|
17
|
+
interface RegisteredComponent<P = unknown> {
|
|
18
|
+
type: string;
|
|
19
|
+
component: ComponentType<P>;
|
|
20
|
+
propsSchema: z.ZodType<P>;
|
|
21
|
+
metadata: ComponentMetadata;
|
|
22
|
+
}
|
|
23
|
+
type PropsValidationResult = {
|
|
24
|
+
success: true;
|
|
25
|
+
data: unknown;
|
|
26
|
+
} | {
|
|
27
|
+
success: false;
|
|
28
|
+
error: z.ZodError;
|
|
29
|
+
};
|
|
30
|
+
declare class ComponentRegistry {
|
|
31
|
+
private readonly components;
|
|
32
|
+
register<P>(registration: RegisteredComponent<P>): void;
|
|
33
|
+
get(type: string): RegisteredComponent | undefined;
|
|
34
|
+
getTypes(): string[];
|
|
35
|
+
getTypesForLLM(options?: {
|
|
36
|
+
includeInternal?: boolean;
|
|
37
|
+
}): string[];
|
|
38
|
+
has(type: string): boolean;
|
|
39
|
+
getJSONSchemaForLLM(options?: {
|
|
40
|
+
includeInternal?: boolean;
|
|
41
|
+
}): Record<string, unknown>;
|
|
42
|
+
validateProps(type: string, props: unknown): PropsValidationResult;
|
|
43
|
+
}
|
|
44
|
+
declare const globalRegistry: ComponentRegistry;
|
|
45
|
+
|
|
46
|
+
type TimingSpec = {
|
|
47
|
+
from: number;
|
|
48
|
+
durationInFrames: number;
|
|
49
|
+
};
|
|
50
|
+
type BackgroundSpec = {
|
|
51
|
+
type: 'color';
|
|
52
|
+
value: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'image';
|
|
55
|
+
value: string;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'video';
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
type TransitionSpec = {
|
|
61
|
+
type: string;
|
|
62
|
+
durationInFrames: number;
|
|
63
|
+
props?: Record<string, unknown> | undefined;
|
|
64
|
+
};
|
|
65
|
+
type ComponentNode = {
|
|
66
|
+
id: string;
|
|
67
|
+
type: string;
|
|
68
|
+
timing?: TimingSpec | undefined;
|
|
69
|
+
props?: Record<string, unknown> | undefined;
|
|
70
|
+
metadata?: Record<string, unknown> | undefined;
|
|
71
|
+
children?: ComponentNode[] | undefined;
|
|
72
|
+
};
|
|
73
|
+
type VideoIRv2 = {
|
|
74
|
+
version: '2.0';
|
|
75
|
+
video: {
|
|
76
|
+
id?: string;
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
fps?: number;
|
|
80
|
+
durationInFrames: number;
|
|
81
|
+
};
|
|
82
|
+
audio?: {
|
|
83
|
+
background?: string | undefined;
|
|
84
|
+
volume?: number | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
segments?: Array<{
|
|
87
|
+
id: string;
|
|
88
|
+
durationInFrames: number;
|
|
89
|
+
root: ComponentNode;
|
|
90
|
+
transitionToNext?: TransitionSpec | undefined;
|
|
91
|
+
}> | undefined;
|
|
92
|
+
timeline?: ComponentNode[] | undefined;
|
|
93
|
+
};
|
|
94
|
+
type VideoIR = VideoIRv2;
|
|
95
|
+
declare const TimingSpecSchema: z.ZodObject<{
|
|
96
|
+
from: z.ZodNumber;
|
|
97
|
+
durationInFrames: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
declare const AssetPathSchema: z.ZodString;
|
|
100
|
+
declare const BackgroundSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"color">;
|
|
102
|
+
value: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"image">;
|
|
105
|
+
value: z.ZodString;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"video">;
|
|
108
|
+
value: z.ZodString;
|
|
109
|
+
}, z.core.$strip>], "type">;
|
|
110
|
+
declare const TransitionSpecSchema: z.ZodObject<{
|
|
111
|
+
type: z.ZodString;
|
|
112
|
+
durationInFrames: z.ZodNumber;
|
|
113
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
declare const ComponentNodeSchema: z.ZodType<ComponentNode>;
|
|
116
|
+
declare const VideoIRv2Schema: z.ZodObject<{
|
|
117
|
+
version: z.ZodLiteral<"2.0">;
|
|
118
|
+
video: z.ZodObject<{
|
|
119
|
+
id: z.ZodDefault<z.ZodString>;
|
|
120
|
+
width: z.ZodNumber;
|
|
121
|
+
height: z.ZodNumber;
|
|
122
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
123
|
+
durationInFrames: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
background: z.ZodOptional<z.ZodString>;
|
|
127
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
durationInFrames: z.ZodNumber;
|
|
132
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
133
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
type: z.ZodString;
|
|
135
|
+
durationInFrames: z.ZodNumber;
|
|
136
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>>>;
|
|
139
|
+
timeline: z.ZodOptional<z.ZodArray<z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
declare const VideoIRv2AuthoringSchema: z.ZodObject<{
|
|
142
|
+
version: z.ZodLiteral<"2.0">;
|
|
143
|
+
video: z.ZodObject<{
|
|
144
|
+
id: z.ZodDefault<z.ZodString>;
|
|
145
|
+
width: z.ZodNumber;
|
|
146
|
+
height: z.ZodNumber;
|
|
147
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
durationInFrames: z.ZodNumber;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
background: z.ZodOptional<z.ZodString>;
|
|
152
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
durationInFrames: z.ZodNumber;
|
|
157
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
158
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
type: z.ZodString;
|
|
160
|
+
durationInFrames: z.ZodNumber;
|
|
161
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
timeline: z.ZodOptional<z.ZodNever>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
declare const VideoIRSchema: z.ZodObject<{
|
|
167
|
+
version: z.ZodLiteral<"2.0">;
|
|
168
|
+
video: z.ZodObject<{
|
|
169
|
+
id: z.ZodDefault<z.ZodString>;
|
|
170
|
+
width: z.ZodNumber;
|
|
171
|
+
height: z.ZodNumber;
|
|
172
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
173
|
+
durationInFrames: z.ZodNumber;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
background: z.ZodOptional<z.ZodString>;
|
|
177
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
durationInFrames: z.ZodNumber;
|
|
182
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
183
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
type: z.ZodString;
|
|
185
|
+
durationInFrames: z.ZodNumber;
|
|
186
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
}, z.core.$strip>>>;
|
|
189
|
+
timeline: z.ZodOptional<z.ZodArray<z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
|
|
192
|
+
type TimedComponentNode = Omit<ComponentNode, 'timing' | 'children'> & {
|
|
193
|
+
timing: TimingSpec;
|
|
194
|
+
children?: TimedComponentNode[] | undefined;
|
|
195
|
+
};
|
|
196
|
+
type CompiledVideoIR = Omit<VideoIRv2, 'segments' | 'timeline'> & {
|
|
197
|
+
version: '2.0';
|
|
198
|
+
timeline: TimedComponentNode[];
|
|
199
|
+
segments?: undefined;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare function registerBuiltInComponents(): void;
|
|
203
|
+
|
|
204
|
+
export { AssetPathSchema as A, type BackgroundSpec as B, ComponentRegistry as C, type TimingSpec as T, type VideoIRv2 as V, type CompiledVideoIR as a, type ComponentKind as b, type ComponentCategory as c, BackgroundSpecSchema as d, type ComponentNode as e, ComponentNodeSchema as f, TimingSpecSchema as g, type TransitionSpec as h, TransitionSpecSchema as i, type VideoIR as j, VideoIRSchema as k, VideoIRv2AuthoringSchema as l, VideoIRv2Schema as m, globalRegistry as n, registerBuiltInComponents as r };
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
type ComponentKind = 'primitive' | 'composite' | 'template';
|
|
5
|
+
type ComponentCategory = 'primitive' | 'text' | 'image' | 'media' | 'transition' | 'layout' | 'data' | 'social' | 'branding';
|
|
6
|
+
interface ComponentMetadata {
|
|
7
|
+
kind: ComponentKind;
|
|
8
|
+
category: ComponentCategory;
|
|
9
|
+
description: string;
|
|
10
|
+
llmGuidance?: string;
|
|
11
|
+
examples?: Array<Record<string, unknown>>;
|
|
12
|
+
internal?: boolean;
|
|
13
|
+
acceptsChildren?: boolean;
|
|
14
|
+
minChildren?: number;
|
|
15
|
+
maxChildren?: number;
|
|
16
|
+
}
|
|
17
|
+
interface RegisteredComponent<P = unknown> {
|
|
18
|
+
type: string;
|
|
19
|
+
component: ComponentType<P>;
|
|
20
|
+
propsSchema: z.ZodType<P>;
|
|
21
|
+
metadata: ComponentMetadata;
|
|
22
|
+
}
|
|
23
|
+
type PropsValidationResult = {
|
|
24
|
+
success: true;
|
|
25
|
+
data: unknown;
|
|
26
|
+
} | {
|
|
27
|
+
success: false;
|
|
28
|
+
error: z.ZodError;
|
|
29
|
+
};
|
|
30
|
+
declare class ComponentRegistry {
|
|
31
|
+
private readonly components;
|
|
32
|
+
register<P>(registration: RegisteredComponent<P>): void;
|
|
33
|
+
get(type: string): RegisteredComponent | undefined;
|
|
34
|
+
getTypes(): string[];
|
|
35
|
+
getTypesForLLM(options?: {
|
|
36
|
+
includeInternal?: boolean;
|
|
37
|
+
}): string[];
|
|
38
|
+
has(type: string): boolean;
|
|
39
|
+
getJSONSchemaForLLM(options?: {
|
|
40
|
+
includeInternal?: boolean;
|
|
41
|
+
}): Record<string, unknown>;
|
|
42
|
+
validateProps(type: string, props: unknown): PropsValidationResult;
|
|
43
|
+
}
|
|
44
|
+
declare const globalRegistry: ComponentRegistry;
|
|
45
|
+
|
|
46
|
+
type TimingSpec = {
|
|
47
|
+
from: number;
|
|
48
|
+
durationInFrames: number;
|
|
49
|
+
};
|
|
50
|
+
type BackgroundSpec = {
|
|
51
|
+
type: 'color';
|
|
52
|
+
value: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'image';
|
|
55
|
+
value: string;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'video';
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
type TransitionSpec = {
|
|
61
|
+
type: string;
|
|
62
|
+
durationInFrames: number;
|
|
63
|
+
props?: Record<string, unknown> | undefined;
|
|
64
|
+
};
|
|
65
|
+
type ComponentNode = {
|
|
66
|
+
id: string;
|
|
67
|
+
type: string;
|
|
68
|
+
timing?: TimingSpec | undefined;
|
|
69
|
+
props?: Record<string, unknown> | undefined;
|
|
70
|
+
metadata?: Record<string, unknown> | undefined;
|
|
71
|
+
children?: ComponentNode[] | undefined;
|
|
72
|
+
};
|
|
73
|
+
type VideoIRv2 = {
|
|
74
|
+
version: '2.0';
|
|
75
|
+
video: {
|
|
76
|
+
id?: string;
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
fps?: number;
|
|
80
|
+
durationInFrames: number;
|
|
81
|
+
};
|
|
82
|
+
audio?: {
|
|
83
|
+
background?: string | undefined;
|
|
84
|
+
volume?: number | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
segments?: Array<{
|
|
87
|
+
id: string;
|
|
88
|
+
durationInFrames: number;
|
|
89
|
+
root: ComponentNode;
|
|
90
|
+
transitionToNext?: TransitionSpec | undefined;
|
|
91
|
+
}> | undefined;
|
|
92
|
+
timeline?: ComponentNode[] | undefined;
|
|
93
|
+
};
|
|
94
|
+
type VideoIR = VideoIRv2;
|
|
95
|
+
declare const TimingSpecSchema: z.ZodObject<{
|
|
96
|
+
from: z.ZodNumber;
|
|
97
|
+
durationInFrames: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
declare const AssetPathSchema: z.ZodString;
|
|
100
|
+
declare const BackgroundSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"color">;
|
|
102
|
+
value: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"image">;
|
|
105
|
+
value: z.ZodString;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"video">;
|
|
108
|
+
value: z.ZodString;
|
|
109
|
+
}, z.core.$strip>], "type">;
|
|
110
|
+
declare const TransitionSpecSchema: z.ZodObject<{
|
|
111
|
+
type: z.ZodString;
|
|
112
|
+
durationInFrames: z.ZodNumber;
|
|
113
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
declare const ComponentNodeSchema: z.ZodType<ComponentNode>;
|
|
116
|
+
declare const VideoIRv2Schema: z.ZodObject<{
|
|
117
|
+
version: z.ZodLiteral<"2.0">;
|
|
118
|
+
video: z.ZodObject<{
|
|
119
|
+
id: z.ZodDefault<z.ZodString>;
|
|
120
|
+
width: z.ZodNumber;
|
|
121
|
+
height: z.ZodNumber;
|
|
122
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
123
|
+
durationInFrames: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
background: z.ZodOptional<z.ZodString>;
|
|
127
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
durationInFrames: z.ZodNumber;
|
|
132
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
133
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
type: z.ZodString;
|
|
135
|
+
durationInFrames: z.ZodNumber;
|
|
136
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>>>;
|
|
139
|
+
timeline: z.ZodOptional<z.ZodArray<z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
declare const VideoIRv2AuthoringSchema: z.ZodObject<{
|
|
142
|
+
version: z.ZodLiteral<"2.0">;
|
|
143
|
+
video: z.ZodObject<{
|
|
144
|
+
id: z.ZodDefault<z.ZodString>;
|
|
145
|
+
width: z.ZodNumber;
|
|
146
|
+
height: z.ZodNumber;
|
|
147
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
durationInFrames: z.ZodNumber;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
background: z.ZodOptional<z.ZodString>;
|
|
152
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
durationInFrames: z.ZodNumber;
|
|
157
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
158
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
type: z.ZodString;
|
|
160
|
+
durationInFrames: z.ZodNumber;
|
|
161
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
timeline: z.ZodOptional<z.ZodNever>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
declare const VideoIRSchema: z.ZodObject<{
|
|
167
|
+
version: z.ZodLiteral<"2.0">;
|
|
168
|
+
video: z.ZodObject<{
|
|
169
|
+
id: z.ZodDefault<z.ZodString>;
|
|
170
|
+
width: z.ZodNumber;
|
|
171
|
+
height: z.ZodNumber;
|
|
172
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
173
|
+
durationInFrames: z.ZodNumber;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
background: z.ZodOptional<z.ZodString>;
|
|
177
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
durationInFrames: z.ZodNumber;
|
|
182
|
+
root: z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>;
|
|
183
|
+
transitionToNext: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
type: z.ZodString;
|
|
185
|
+
durationInFrames: z.ZodNumber;
|
|
186
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
}, z.core.$strip>>>;
|
|
189
|
+
timeline: z.ZodOptional<z.ZodArray<z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
|
|
192
|
+
type TimedComponentNode = Omit<ComponentNode, 'timing' | 'children'> & {
|
|
193
|
+
timing: TimingSpec;
|
|
194
|
+
children?: TimedComponentNode[] | undefined;
|
|
195
|
+
};
|
|
196
|
+
type CompiledVideoIR = Omit<VideoIRv2, 'segments' | 'timeline'> & {
|
|
197
|
+
version: '2.0';
|
|
198
|
+
timeline: TimedComponentNode[];
|
|
199
|
+
segments?: undefined;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare function registerBuiltInComponents(): void;
|
|
203
|
+
|
|
204
|
+
export { AssetPathSchema as A, type BackgroundSpec as B, ComponentRegistry as C, type TimingSpec as T, type VideoIRv2 as V, type CompiledVideoIR as a, type ComponentKind as b, type ComponentCategory as c, BackgroundSpecSchema as d, type ComponentNode as e, ComponentNodeSchema as f, TimingSpecSchema as g, type TransitionSpec as h, TransitionSpecSchema as i, type VideoIR as j, VideoIRSchema as k, VideoIRv2AuthoringSchema as l, VideoIRv2Schema as m, globalRegistry as n, registerBuiltInComponents as r };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export { n as globalRegistry, r as registerBuiltInComponents } from '../registry-
|
|
2
|
+
import { a as CompiledVideoIR, C as ComponentRegistry } from '../registry-C6H9G0df.mjs';
|
|
3
|
+
export { n as globalRegistry, r as registerBuiltInComponents } from '../registry-C6H9G0df.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const WavesComposition: React.FC<{
|
|
7
|
-
ir:
|
|
7
|
+
ir: CompiledVideoIR;
|
|
8
8
|
registry: ComponentRegistry;
|
|
9
9
|
}>;
|
|
10
10
|
|
package/dist/remotion/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export { n as globalRegistry, r as registerBuiltInComponents } from '../registry-
|
|
2
|
+
import { a as CompiledVideoIR, C as ComponentRegistry } from '../registry-C6H9G0df.js';
|
|
3
|
+
export { n as globalRegistry, r as registerBuiltInComponents } from '../registry-C6H9G0df.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
declare const WavesComposition: React.FC<{
|
|
7
|
-
ir:
|
|
7
|
+
ir: CompiledVideoIR;
|
|
8
8
|
registry: ComponentRegistry;
|
|
9
9
|
}>;
|
|
10
10
|
|