@remotion/cli 3.3.5 → 3.3.7
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/dist/ansi/ansi-diff.d.ts +1 -1
- package/dist/ansi/ansi-regex.d.ts +2 -2
- package/dist/benchmark.d.ts +1 -1
- package/dist/compositions.d.ts +1 -1
- package/dist/config/chromium-flags.d.ts +2 -3
- package/dist/config/codec.d.ts +1 -4
- package/dist/config/concurrency.d.ts +1 -1
- package/dist/config/image-format.d.ts +2 -3
- package/dist/config/index.d.ts +5 -5
- package/dist/config/log.d.ts +2 -3
- package/dist/config/number-of-gif-loops.d.ts +1 -1
- package/dist/config/override-webpack.d.ts +1 -1
- package/dist/config/pixel-format.d.ts +2 -3
- package/dist/config/scale.d.ts +1 -1
- package/dist/download-progress.d.ts +1 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
- package/dist/editor/components/FramePersistor.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/portals.d.ts +1 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts +4 -4
- package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +1 -2
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +1 -1
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +2 -2
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +1 -1
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +2 -2
- package/dist/editor/components/SizeSelector.d.ts +1 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +3 -3
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/ZoomPersistor.d.ts +1 -1
- package/dist/editor/helpers/calculate-timeline.d.ts +1 -1
- package/dist/editor/helpers/get-effective-translation.d.ts +4 -4
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +3 -3
- package/dist/editor/helpers/is-current-selected-still.d.ts +2 -2
- package/dist/editor/helpers/use-keybinding.d.ts +1 -0
- package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
- package/dist/editor/state/checkerboard.d.ts +1 -1
- package/dist/editor/state/folders.d.ts +1 -1
- package/dist/editor/state/highest-z-index.d.ts +1 -1
- package/dist/editor/state/in-out.d.ts +2 -2
- package/dist/editor/state/keybindings.d.ts +4 -4
- package/dist/editor/state/modals.d.ts +3 -3
- package/dist/editor/state/playbackrate.d.ts +1 -1
- package/dist/editor/state/preview-size.d.ts +1 -1
- package/dist/editor/state/rich-timeline.d.ts +1 -1
- package/dist/editor/state/sidebar.d.ts +2 -2
- package/dist/editor/state/timeline-ref.d.ts +1 -1
- package/dist/editor/state/z-index.d.ts +1 -1
- package/dist/get-cli-options.d.ts +4 -35
- package/dist/get-composition-id.d.ts +1 -1
- package/dist/get-composition-with-dimension-override.d.ts +1 -1
- package/dist/get-filename.d.ts +1 -1
- package/dist/get-final-output-codec.js +31 -32
- package/dist/get-latest-remotion-version.d.ts +1 -1
- package/dist/get-render-media-options.d.ts +1 -1
- package/dist/handle-common-errors.d.ts +1 -1
- package/dist/image-formats.d.ts +1 -3
- package/dist/index.d.ts +15 -51
- package/dist/initialize-cli.d.ts +1 -1
- package/dist/install.d.ts +1 -1
- package/dist/lambda-command.d.ts +1 -1
- package/dist/log.d.ts +4 -4
- package/dist/parse-command-line.d.ts +1 -1
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -1
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -1
- package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
- package/dist/preview-server/get-absolute-public-dir.d.ts +4 -0
- package/dist/preview-server/get-absolute-public-dir.js +14 -0
- package/dist/preview-server/get-files-in-public-folder.d.ts +2 -0
- package/dist/preview-server/get-files-in-public-folder.js +7 -0
- package/dist/preview-server/get-package-manager.d.ts +2 -2
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -1
- package/dist/preview-server/live-events.d.ts +1 -1
- package/dist/preview-server/project-info.d.ts +1 -1
- package/dist/preview-server/public-folder.d.ts +12 -0
- package/dist/preview-server/public-folder.js +39 -0
- package/dist/preview-server/routes.d.ts +1 -1
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/update-available.d.ts +1 -10
- package/dist/preview-server/write-files-definition-file.d.ts +2 -0
- package/dist/preview-server/write-files-definition-file.js +37 -0
- package/dist/preview.d.ts +1 -1
- package/dist/print-error.d.ts +1 -1
- package/dist/progress-bar.d.ts +10 -10
- package/dist/render.d.ts +1 -1
- package/dist/setup-cache.d.ts +1 -1
- package/dist/step.d.ts +1 -1
- package/dist/still.d.ts +1 -1
- package/dist/truthy.d.ts +1 -1
- package/dist/upgrade.d.ts +1 -1
- package/dist/user-passed-output-location.d.ts +2 -2
- package/dist/versions.d.ts +2 -2
- package/package.json +7 -7
package/dist/get-filename.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Codec } from '@remotion/renderer';
|
|
2
2
|
export declare const getOutputFilename: ({ codec, imageSequence, compositionName, defaultExtension, args, }: {
|
|
3
|
-
codec:
|
|
3
|
+
codec: any;
|
|
4
4
|
imageSequence: boolean;
|
|
5
5
|
compositionName: string;
|
|
6
6
|
defaultExtension: string;
|
|
@@ -3,58 +3,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getFinalOutputCodec = void 0;
|
|
4
4
|
const renderer_1 = require("@remotion/renderer");
|
|
5
5
|
const fileExtensions = {
|
|
6
|
-
webm: 'vp8',
|
|
7
|
-
hevc: 'h265',
|
|
8
|
-
mp3: 'mp3',
|
|
9
|
-
mov: 'prores',
|
|
10
|
-
wav: 'wav',
|
|
11
|
-
aac: 'aac',
|
|
12
|
-
mkv: 'h264-mkv',
|
|
13
|
-
gif: 'gif',
|
|
14
|
-
mp4: 'h264',
|
|
15
|
-
m4a: 'aac',
|
|
6
|
+
webm: ['vp8', 'vp9'],
|
|
7
|
+
hevc: ['h265'],
|
|
8
|
+
mp3: ['mp3'],
|
|
9
|
+
mov: ['prores'],
|
|
10
|
+
wav: ['wav'],
|
|
11
|
+
aac: ['aac'],
|
|
12
|
+
mkv: ['h264-mkv'],
|
|
13
|
+
gif: ['gif'],
|
|
14
|
+
mp4: ['h264'],
|
|
15
|
+
m4a: ['aac'],
|
|
16
16
|
};
|
|
17
17
|
const deriveExtensionFromFilename = (extension) => {
|
|
18
18
|
var _a;
|
|
19
19
|
if (extension === null) {
|
|
20
|
-
return
|
|
20
|
+
return [];
|
|
21
21
|
}
|
|
22
|
-
return (_a = fileExtensions[extension]) !== null && _a !== void 0 ? _a :
|
|
22
|
+
return (_a = fileExtensions[extension]) !== null && _a !== void 0 ? _a : [];
|
|
23
23
|
};
|
|
24
24
|
const getFinalOutputCodec = ({ cliFlag, configFile, downloadName, outName, }) => {
|
|
25
25
|
const downloadNameExtension = renderer_1.RenderInternals.getExtensionOfFilename(downloadName);
|
|
26
26
|
const outNameExtension = renderer_1.RenderInternals.getExtensionOfFilename(outName);
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
const derivedDownloadCodecs = deriveExtensionFromFilename(downloadNameExtension);
|
|
28
|
+
const derivedOutNameCodecs = deriveExtensionFromFilename(outNameExtension);
|
|
29
|
+
if (derivedDownloadCodecs.length > 0 &&
|
|
30
|
+
derivedOutNameCodecs.length > 0 &&
|
|
31
|
+
derivedDownloadCodecs.join('') !== derivedOutNameCodecs.join('')) {
|
|
32
32
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
33
33
|
}
|
|
34
|
-
if (
|
|
35
|
-
if (
|
|
36
|
-
|
|
34
|
+
if (cliFlag) {
|
|
35
|
+
if (derivedDownloadCodecs.length > 0 &&
|
|
36
|
+
derivedDownloadCodecs.indexOf(cliFlag) === -1) {
|
|
37
|
+
throw new TypeError(`The download name is ${downloadName} but --codec=${cliFlag} was passed. The download name implies a codec of ${derivedDownloadCodecs.join(' or ')} which does not align with the --codec flag.`);
|
|
38
|
+
}
|
|
39
|
+
if (derivedOutNameCodecs.length > 0 &&
|
|
40
|
+
derivedOutNameCodecs.indexOf(cliFlag) === -1) {
|
|
41
|
+
throw new TypeError(`The out name is ${outName} but --codec=${cliFlag} was passed. The out name implies a codec of ${derivedOutNameCodecs.join(' or ')} which does not align with the --codec flag.`);
|
|
37
42
|
}
|
|
43
|
+
return { codec: cliFlag, reason: 'from --codec flag' };
|
|
44
|
+
}
|
|
45
|
+
if (derivedDownloadCodecs.length > 0) {
|
|
38
46
|
return {
|
|
39
|
-
codec:
|
|
47
|
+
codec: derivedDownloadCodecs[0],
|
|
40
48
|
reason: 'derived from download name',
|
|
41
49
|
};
|
|
42
50
|
}
|
|
43
|
-
if (
|
|
44
|
-
if (cliFlag && derivedOutNameCodec !== cliFlag) {
|
|
45
|
-
throw new TypeError(`The out name is ${outName} but --codec=${cliFlag} was passed. The out name implies a codec of ${derivedOutNameCodec} which does not align with the --codec flag.`);
|
|
46
|
-
}
|
|
47
|
-
if (configFile && derivedOutNameCodec !== configFile) {
|
|
48
|
-
throw new TypeError(`The out name is ${outName} but ${configFile} was set as the codec in the config file. The out name implies a codec of ${derivedOutNameCodec} which does not align with the codec set in the config file.`);
|
|
49
|
-
}
|
|
51
|
+
if (derivedOutNameCodecs.length > 0) {
|
|
50
52
|
return {
|
|
51
|
-
codec:
|
|
53
|
+
codec: derivedOutNameCodecs[0],
|
|
52
54
|
reason: 'derived from out name',
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
|
-
if (cliFlag) {
|
|
56
|
-
return { codec: cliFlag, reason: 'from --codec flag' };
|
|
57
|
-
}
|
|
58
57
|
if (configFile) {
|
|
59
58
|
return {
|
|
60
59
|
codec: configFile,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLatestRemotionVersion: () =>
|
|
1
|
+
export declare const getLatestRemotionVersion: () => unknown;
|
|
@@ -3,6 +3,6 @@ export declare const getRenderMediaOptions: ({ outputLocation, config, serveUrl,
|
|
|
3
3
|
outputLocation: RenderMediaOptions['outputLocation'];
|
|
4
4
|
config: RenderMediaOptions['composition'];
|
|
5
5
|
serveUrl: string;
|
|
6
|
-
codec:
|
|
6
|
+
codec: any;
|
|
7
7
|
remotionRoot: string;
|
|
8
8
|
}) => Promise<RenderMediaOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const handleCommonError: (err: Error) =>
|
|
1
|
+
export declare const handleCommonError: (err: Error) => any;
|
package/dist/image-formats.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ConfigInternals } from './config';
|
|
3
|
-
export declare const getImageFormat: (codec: ReturnType<typeof ConfigInternals.getOutputCodecOrUndefined>) => ImageFormat;
|
|
1
|
+
export declare const getImageFormat: (codec: ReturnType<() => any>) => any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import minimist from 'minimist';
|
|
2
|
-
export declare const cli: () =>
|
|
2
|
+
export declare const cli: () => any;
|
|
3
3
|
export { ConfigInternals, overrideRemotion } from './config/index';
|
|
4
4
|
export * from './render';
|
|
5
5
|
export declare const CliInternals: {
|
|
@@ -61,81 +61,45 @@ export declare const CliInternals: {
|
|
|
61
61
|
};
|
|
62
62
|
makeProgressBar: (percentage: number) => string;
|
|
63
63
|
Log: {
|
|
64
|
-
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
65
|
-
info: (message?: any, ...optionalParams: any[]) => void;
|
|
66
|
-
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
67
|
-
error: (message?: any, ...optionalParams: any[]) => void;
|
|
64
|
+
verbose: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
65
|
+
info: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
66
|
+
warn: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
67
|
+
error: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
68
68
|
};
|
|
69
69
|
getCliOptions: (options: {
|
|
70
70
|
isLambda: boolean;
|
|
71
71
|
type: "still" | "series" | "get-compositions";
|
|
72
72
|
remotionRoot: string;
|
|
73
|
-
}) =>
|
|
74
|
-
puppeteerTimeout: number;
|
|
75
|
-
concurrency: number | null;
|
|
76
|
-
frameRange: import("@remotion/renderer").FrameRange | null;
|
|
77
|
-
shouldOutputImageSequence: boolean;
|
|
78
|
-
inputProps: object;
|
|
79
|
-
envVariables: Record<string, string>;
|
|
80
|
-
quality: number | undefined;
|
|
81
|
-
browser: import("@remotion/renderer").Browser;
|
|
82
|
-
crf: import("@remotion/renderer").Crf | null;
|
|
83
|
-
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
84
|
-
proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
85
|
-
everyNthFrame: number;
|
|
86
|
-
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
87
|
-
stillFrame: number;
|
|
88
|
-
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
89
|
-
ffmpegExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
90
|
-
ffprobeExecutable: import("@remotion/renderer").FfmpegExecutable;
|
|
91
|
-
logLevel: "error" | "verbose" | "info" | "warn";
|
|
92
|
-
scale: number;
|
|
93
|
-
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
94
|
-
overwrite: boolean;
|
|
95
|
-
port: number | null;
|
|
96
|
-
muted: boolean;
|
|
97
|
-
enforceAudioTrack: boolean;
|
|
98
|
-
publicDir: string | null;
|
|
99
|
-
ffmpegOverride: import("@remotion/renderer").FfmpegOverrideFn;
|
|
100
|
-
audioBitrate: string | null;
|
|
101
|
-
videoBitrate: string | null;
|
|
102
|
-
height: number | null;
|
|
103
|
-
width: number | null;
|
|
104
|
-
}>;
|
|
73
|
+
}) => unknown;
|
|
105
74
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
106
|
-
initializeCli: (remotionRoot: string) =>
|
|
75
|
+
initializeCli: (remotionRoot: string) => any;
|
|
107
76
|
BooleanFlags: string[];
|
|
108
77
|
quietFlagProvided: () => boolean;
|
|
109
78
|
parsedCli: import("./parse-command-line").CommandLineOptions & {
|
|
110
79
|
_: string[];
|
|
111
80
|
};
|
|
112
|
-
handleCommonError: (err: Error) =>
|
|
113
|
-
formatBytes: (number: number, options?:
|
|
114
|
-
locale: string;
|
|
115
|
-
bits?: boolean | undefined;
|
|
116
|
-
binary?: boolean | undefined;
|
|
117
|
-
signed: boolean;
|
|
118
|
-
}) => string;
|
|
81
|
+
handleCommonError: (err: Error) => any;
|
|
82
|
+
formatBytes: (number: number, options?: any) => string;
|
|
119
83
|
getFileSizeDownloadBar: (downloaded: number) => string;
|
|
120
84
|
getFinalCodec: (options: {
|
|
121
85
|
downloadName: string | null;
|
|
122
86
|
outName: string | null;
|
|
123
87
|
}) => {
|
|
124
|
-
codec:
|
|
88
|
+
codec: any;
|
|
125
89
|
reason: string;
|
|
126
90
|
};
|
|
127
91
|
determineFinalImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, isLambda, }: {
|
|
128
92
|
downloadName: string | null;
|
|
129
93
|
outName: string | null;
|
|
130
|
-
configImageFormat:
|
|
131
|
-
cliFlag:
|
|
94
|
+
configImageFormat: any;
|
|
95
|
+
cliFlag: any;
|
|
132
96
|
isLambda: boolean;
|
|
133
97
|
}) => {
|
|
134
98
|
format: import("@remotion/renderer").StillImageFormat;
|
|
135
99
|
source: string;
|
|
136
100
|
};
|
|
137
101
|
minimist: typeof minimist;
|
|
138
|
-
selectComposition: (validCompositions:
|
|
102
|
+
selectComposition: (validCompositions: unknown) => Promise<{
|
|
139
103
|
compositionId: string;
|
|
140
104
|
reason: string;
|
|
141
105
|
}>;
|
|
@@ -144,6 +108,6 @@ export declare const CliInternals: {
|
|
|
144
108
|
remainingArgs: string[];
|
|
145
109
|
reason: string;
|
|
146
110
|
};
|
|
147
|
-
getImageFormat: (codec:
|
|
148
|
-
printCompositions: (compositions: import("remotion").
|
|
111
|
+
getImageFormat: (codec: ReturnType<() => any>) => any;
|
|
112
|
+
printCompositions: (compositions: Pick<import("remotion").TComposition<unknown>, "height" | "width" | "id" | "fps" | "durationInFrames" | "defaultProps">[]) => void;
|
|
149
113
|
};
|
package/dist/initialize-cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const initializeCli: (remotionRoot: string) =>
|
|
1
|
+
export declare const initializeCli: (remotionRoot: string) => any;
|
package/dist/install.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const INSTALL_COMMAND: "install";
|
|
2
|
-
export declare const installCommand: (remotionRoot: string, args: string[]) =>
|
|
2
|
+
export declare const installCommand: (remotionRoot: string, args: string[]) => any;
|
package/dist/lambda-command.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const lambdaCommand: (remotionRoot: string, args: string[]) =>
|
|
1
|
+
export declare const lambdaCommand: (remotionRoot: string, args: string[]) => any;
|
package/dist/log.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
3
|
-
info: (message?: any, ...optionalParams: any[]) => void;
|
|
4
|
-
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
5
|
-
error: (message?: any, ...optionalParams: any[]) => void;
|
|
2
|
+
verbose: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
3
|
+
info: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
4
|
+
warn: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
5
|
+
error: (...args: Parameters<(message?: any, ...optionalParams: any[]) => void>) => void;
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BrowserExecutable, Codec, FfmpegExecutable, ImageFormat, OpenGlRenderer, PixelFormat, ProResProfile } from '@remotion/renderer';
|
|
2
|
-
export
|
|
2
|
+
export type CommandLineOptions = {
|
|
3
3
|
['browser-executable']: BrowserExecutable;
|
|
4
4
|
['ffmpeg-executable']: FfmpegExecutable;
|
|
5
5
|
['ffprobe-executable']: FfmpegExecutable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isColorSupported:
|
|
1
|
+
export declare const isColorSupported: any;
|
|
@@ -6,5 +6,5 @@ export declare function getValueContentRangeHeader(type: string, size: number, r
|
|
|
6
6
|
start: number;
|
|
7
7
|
end: number;
|
|
8
8
|
}): string;
|
|
9
|
-
export
|
|
9
|
+
export type MiddleWare = (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
10
10
|
export declare function middleware(context: DevMiddlewareContext): (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
5
5
|
* MIT Licensed
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
type Range = {
|
|
8
8
|
start: number;
|
|
9
9
|
end: number;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type Ranges = Range[] & {
|
|
12
12
|
type?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare function parseRange(size: number, str: string | string[]): -1 | Ranges | -2;
|
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type ScriptLine = {
|
|
8
8
|
lineNumber: number;
|
|
9
9
|
content: string;
|
|
10
10
|
highlight: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type SymbolicatedStackFrame = {
|
|
13
13
|
originalFunctionName: string | null;
|
|
14
14
|
originalFileName: string | null;
|
|
15
15
|
originalLineNumber: number | null;
|
|
16
16
|
originalColumnNumber: number | null;
|
|
17
17
|
originalScriptCode: ScriptLine[] | null;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type StackFrame = {
|
|
20
20
|
functionName: string | null;
|
|
21
21
|
fileName: string;
|
|
22
22
|
lineNumber: number;
|
|
23
23
|
columnNumber: number;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type SomeStackFrame = {
|
|
26
26
|
type: 'symbolicated';
|
|
27
27
|
frame: SymbolicatedStackFrame;
|
|
28
28
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const formatLocation: (location: string) =>
|
|
1
|
+
export declare const formatLocation: (location: string) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getAbsolutePublicDir = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const getAbsolutePublicDir = ({ userPassedPublicDir, remotionRoot, }) => {
|
|
9
|
+
const publicDir = userPassedPublicDir
|
|
10
|
+
? path_1.default.resolve(remotionRoot, userPassedPublicDir)
|
|
11
|
+
: path_1.default.join(remotionRoot, 'public');
|
|
12
|
+
return publicDir;
|
|
13
|
+
};
|
|
14
|
+
exports.getAbsolutePublicDir = getAbsolutePublicDir;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFilesInPublicFolder = void 0;
|
|
4
|
+
const getFilesInPublicFolder = (publicFolder) => {
|
|
5
|
+
return readRecursively({ folder: '.', startPath: publicFolder });
|
|
6
|
+
};
|
|
7
|
+
exports.getFilesInPublicFolder = getFilesInPublicFolder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const stripAnsi: (str: string) =>
|
|
1
|
+
export declare const stripAnsi: (str: string) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
3
3
|
import type { EventSourceEvent } from '../event-source-events';
|
|
4
|
-
export
|
|
4
|
+
export type LiveEventsServer = {
|
|
5
5
|
sendEventToClient: (event: EventSourceEvent) => void;
|
|
6
6
|
router: (request: IncomingMessage, response: ServerResponse) => void;
|
|
7
7
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StaticFile } from 'remotion';
|
|
2
|
+
export declare const initPublicFolderWatch: ({ publicDir, remotionRoot, onUpdate, }: {
|
|
3
|
+
publicDir: string;
|
|
4
|
+
remotionRoot: string;
|
|
5
|
+
onUpdate: () => void;
|
|
6
|
+
}) => void;
|
|
7
|
+
export declare const watchPublicFolder: ({ publicDir, remotionRoot, onUpdate, }: {
|
|
8
|
+
publicDir: string;
|
|
9
|
+
remotionRoot: string;
|
|
10
|
+
onUpdate: () => void;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const getFiles: () => StaticFile[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getFiles = exports.watchPublicFolder = exports.initPublicFolderWatch = void 0;
|
|
7
|
+
const bundler_1 = require("@remotion/bundler");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const write_files_definition_file_1 = require("./write-files-definition-file");
|
|
11
|
+
let files = [];
|
|
12
|
+
const initPublicFolderWatch = ({ publicDir, remotionRoot, onUpdate, }) => {
|
|
13
|
+
fetchFolder({ publicDir, remotionRoot });
|
|
14
|
+
(0, exports.watchPublicFolder)({ publicDir, remotionRoot, onUpdate });
|
|
15
|
+
};
|
|
16
|
+
exports.initPublicFolderWatch = initPublicFolderWatch;
|
|
17
|
+
const fetchFolder = ({ publicDir, remotionRoot, }) => {
|
|
18
|
+
files = bundler_1.BundlerInternals.readRecursively({
|
|
19
|
+
folder: '.',
|
|
20
|
+
startPath: publicDir,
|
|
21
|
+
}).map((f) => {
|
|
22
|
+
return {
|
|
23
|
+
...f,
|
|
24
|
+
path: f.path.split(path_1.default.sep).join('/'),
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
(0, write_files_definition_file_1.writeFilesDefinitionFile)(files, remotionRoot);
|
|
28
|
+
};
|
|
29
|
+
const watchPublicFolder = ({ publicDir, remotionRoot, onUpdate, }) => {
|
|
30
|
+
(0, fs_1.watch)(publicDir, { recursive: true }, () => {
|
|
31
|
+
fetchFolder({ publicDir, remotionRoot });
|
|
32
|
+
onUpdate();
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
exports.watchPublicFolder = watchPublicFolder;
|
|
36
|
+
const getFiles = () => {
|
|
37
|
+
return files;
|
|
38
|
+
};
|
|
39
|
+
exports.getFiles = getFiles;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
8
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
9
|
-
export declare const serveStatic: (root: string, hash: string, req: IncomingMessage, res: ServerResponse) =>
|
|
9
|
+
export declare const serveStatic: (root: string, hash: string, req: IncomingMessage, res: ServerResponse) => any;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import type { PackageManager } from './get-package-manager';
|
|
2
|
-
declare type Info = {
|
|
3
|
-
currentVersion: string;
|
|
4
|
-
latestVersion: string;
|
|
5
|
-
updateAvailable: boolean;
|
|
6
|
-
timedOut: boolean;
|
|
7
|
-
packageManager: PackageManager | 'unknown';
|
|
8
|
-
};
|
|
9
1
|
export declare const getRemotionVersion: () => any;
|
|
10
|
-
export declare const isUpdateAvailableWithTimeout: (remotionRoot: string) =>
|
|
11
|
-
export {};
|
|
2
|
+
export declare const isUpdateAvailableWithTimeout: (remotionRoot: string) => any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.writeFilesDefinitionFile = void 0;
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const writeFilesDefinitionFile = (files, remotionRoot) => {
|
|
10
|
+
const content = `
|
|
11
|
+
/*
|
|
12
|
+
This file will give you autocompletions for staticFile().
|
|
13
|
+
Enable autocompletion by adding "autocomplete.d.ts" to the "include" array in "tsconfig.json".
|
|
14
|
+
This file is auto-generated - do not edit this file!
|
|
15
|
+
You may add it to your \`.gitignore\`.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
declare global {
|
|
19
|
+
interface RemotionStaticPaths {
|
|
20
|
+
${files
|
|
21
|
+
.map((f) => {
|
|
22
|
+
// TODO: What if file contains '"'?
|
|
23
|
+
return ` ["${f.path}"]: unknown;`;
|
|
24
|
+
})
|
|
25
|
+
.join('\n')}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export {}
|
|
29
|
+
`.trimStart();
|
|
30
|
+
const folder = path_1.default.join(remotionRoot);
|
|
31
|
+
if (!(0, fs_1.existsSync)(folder)) {
|
|
32
|
+
(0, fs_1.mkdirSync)(folder);
|
|
33
|
+
}
|
|
34
|
+
// TODO: Create folder if exists
|
|
35
|
+
(0, fs_1.writeFileSync)(path_1.default.join(folder, 'autocomplete.d.ts'), content);
|
|
36
|
+
};
|
|
37
|
+
exports.writeFilesDefinitionFile = writeFilesDefinitionFile;
|
package/dist/preview.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const previewCommand: (remotionRoot: string, args: string[]) =>
|
|
1
|
+
export declare const previewCommand: (remotionRoot: string, args: string[]) => any;
|
package/dist/print-error.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const printError: (err: Error) =>
|
|
1
|
+
export declare const printError: (err: Error) => any;
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -6,32 +6,32 @@ export declare const createProgressBar: (quiet: boolean) => {
|
|
|
6
6
|
export declare const createOverwriteableCliOutput: (quiet: boolean) => {
|
|
7
7
|
update: (up: string) => boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type CopyingState = {
|
|
10
10
|
bytes: number;
|
|
11
11
|
doneIn: number | null;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type BundlingState = {
|
|
14
14
|
progress: number;
|
|
15
15
|
steps: RenderStep[];
|
|
16
16
|
doneIn: number | null;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type SymbolicLinksState = {
|
|
19
19
|
symlinks: string[];
|
|
20
20
|
};
|
|
21
21
|
export declare const makeBundlingAndCopyProgress: ({ bundling, copying, symLinks, }: {
|
|
22
22
|
bundling: BundlingState;
|
|
23
23
|
copying: CopyingState;
|
|
24
24
|
symLinks: SymbolicLinksState;
|
|
25
|
-
}) =>
|
|
26
|
-
|
|
25
|
+
}) => any;
|
|
26
|
+
type RenderingProgressInput = {
|
|
27
27
|
frames: number;
|
|
28
28
|
totalFrames: number;
|
|
29
29
|
steps: RenderStep[];
|
|
30
30
|
concurrency: number;
|
|
31
31
|
doneIn: number | null;
|
|
32
32
|
};
|
|
33
|
-
export declare const makeRenderingProgress: ({ frames, totalFrames, steps, concurrency, doneIn, }: RenderingProgressInput) =>
|
|
34
|
-
|
|
33
|
+
export declare const makeRenderingProgress: ({ frames, totalFrames, steps, concurrency, doneIn, }: RenderingProgressInput) => any;
|
|
34
|
+
type StitchingProgressInput = {
|
|
35
35
|
frames: number;
|
|
36
36
|
totalFrames: number;
|
|
37
37
|
steps: RenderStep[];
|
|
@@ -39,8 +39,8 @@ declare type StitchingProgressInput = {
|
|
|
39
39
|
stage: StitchingState;
|
|
40
40
|
codec: Codec;
|
|
41
41
|
};
|
|
42
|
-
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, codec, }: StitchingProgressInput) =>
|
|
43
|
-
export
|
|
42
|
+
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, codec, }: StitchingProgressInput) => any;
|
|
43
|
+
export type DownloadProgress = {
|
|
44
44
|
name: string;
|
|
45
45
|
id: number;
|
|
46
46
|
progress: number | null;
|
|
@@ -51,5 +51,5 @@ export declare const makeRenderingAndStitchingProgress: ({ rendering, stitching,
|
|
|
51
51
|
rendering: RenderingProgressInput;
|
|
52
52
|
stitching: StitchingProgressInput | null;
|
|
53
53
|
downloads: DownloadProgress[];
|
|
54
|
-
}) =>
|
|
54
|
+
}) => any;
|
|
55
55
|
export {};
|
package/dist/render.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const render: (remotionRoot: string, args: string[]) =>
|
|
1
|
+
export declare const render: (remotionRoot: string, args: string[]) => any;
|
package/dist/setup-cache.d.ts
CHANGED
package/dist/step.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RenderStep = 'bundling' | 'rendering' | 'stitching';
|
package/dist/still.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const still: (remotionRoot: string, args: string[]) =>
|
|
1
|
+
export declare const still: (remotionRoot: string, args: string[]) => any;
|
package/dist/truthy.d.ts
CHANGED