@remotion/cli 4.0.0-alpha13 → 4.0.0-alpha14
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 -0
- package/dist/ansi/ansi-regex.js +18 -0
- package/dist/benchmark.js +29 -14
- package/dist/cleanup-before-quit.js +3 -0
- package/dist/composition-prompts.d.ts +2 -2
- package/dist/compositions.js +8 -7
- package/dist/config/concurrency.d.ts +1 -1
- package/dist/config/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/jpeg-quality.d.ts +1 -1
- package/dist/config/jpeg-quality.js +1 -1
- package/dist/config/number-of-gif-loops.d.ts +1 -1
- package/dist/config/override-webpack.d.ts +1 -1
- package/dist/config/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- package/dist/config/scale.d.ts +1 -1
- package/dist/config/user-agent.d.ts +1 -1
- package/dist/editor/components/CanvasOrLoading.js +3 -0
- package/dist/editor/components/Checkbox.d.ts +1 -0
- package/dist/editor/components/Checkbox.js +2 -2
- package/dist/editor/components/ClipboardIcon.d.ts +2 -0
- package/dist/editor/components/ClipboardIcon.js +12 -0
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
- package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
- package/dist/editor/components/InlineAction.d.ts +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts +4 -4
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -2
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +2 -1
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +1 -1
- package/dist/editor/components/NewComposition/RemTextarea.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/RenderModal/DataEditor.d.ts +2 -3
- package/dist/editor/components/RenderModal/DataEditor.js +14 -5
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +1 -1
- package/dist/editor/components/RenderModal/MutedSetting.js +1 -1
- package/dist/editor/components/RenderModal/RenderModal.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModal.js +2 -2
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalAudio.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +3 -2
- package/dist/editor/components/RenderModal/RenderModalData.js +23 -34
- package/dist/editor/components/RenderModal/RenderModalGif.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +2 -3
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +1 -3
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +1 -7
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +14 -22
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +51 -42
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +5 -5
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +3 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +14 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +12 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +9 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +5 -30
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +8 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -3
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +10 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +39 -45
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +2 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +13 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +7 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +8 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +21 -21
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +6 -6
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +3 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +3 -3
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +10 -5
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +56 -15
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -1
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +1 -1
- package/dist/editor/components/RenderModal/layout.d.ts +0 -1
- package/dist/editor/components/RenderModal/layout.js +1 -7
- package/dist/editor/components/RenderQueue/actions.d.ts +2 -1
- package/dist/editor/components/RenderQueue/actions.js +7 -2
- package/dist/editor/components/RenderQueue/context.d.ts +1 -1
- package/dist/editor/components/RichTimelineToggle.d.ts +2 -0
- package/dist/editor/components/RichTimelineToggle.js +29 -0
- package/dist/editor/components/RightPanel.d.ts +1 -1
- package/dist/editor/components/RightPanel.js +1 -1
- package/dist/editor/components/SegmentedControl.d.ts +1 -1
- package/dist/editor/components/SegmentedControl.js +2 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
- package/dist/editor/components/Thumbnail.d.ts +8 -0
- package/dist/editor/components/Thumbnail.js +76 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
- package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +1 -1
- 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/UpdateCheck.js +2 -4
- package/dist/editor/components/get-zod-if-possible.d.ts +2 -2
- package/dist/editor/helpers/client-id.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +3 -3
- package/dist/editor/helpers/persist-open-folders.d.ts +1 -1
- package/dist/editor/helpers/render-modal-sections.d.ts +1 -2
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
- package/dist/editor/icons/film.d.ts +3 -0
- package/dist/editor/icons/film.js +8 -0
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- package/dist/editor/icons/timeline.d.ts +3 -0
- package/dist/editor/icons/timeline.js +9 -0
- package/dist/editor/state/checkerboard.d.ts +1 -1
- package/dist/editor/state/editor-zoom-gestures.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 +4 -4
- package/dist/editor/state/preview-size.d.ts +1 -1
- package/dist/editor/state/rich-timeline.d.ts +9 -0
- package/dist/editor/state/rich-timeline.js +17 -0
- package/dist/editor/state/sidebar.d.ts +3 -3
- package/dist/editor/state/timeline-ref.d.ts +1 -1
- package/dist/event-source-events.d.ts +1 -1
- package/dist/file-watcher.d.ts +1 -1
- package/dist/get-cli-options.d.ts +1 -1
- package/dist/get-composition-id.d.ts +10 -11
- package/dist/get-composition-id.js +9 -6
- package/dist/get-composition-with-dimension-override.d.ts +4 -4
- package/dist/get-composition-with-dimension-override.js +2 -2
- package/dist/get-render-media-options.d.ts +8 -0
- package/dist/get-render-media-options.js +55 -0
- package/dist/index.d.ts +5 -4
- package/dist/install.d.ts +2 -0
- package/dist/install.js +36 -0
- package/dist/is-javascript.d.ts +2 -0
- package/dist/is-javascript.js +9 -0
- package/dist/log.d.ts +1 -0
- package/dist/parse-command-line.d.ts +1 -1
- package/dist/preview-server/api-routes.js +2 -0
- package/dist/preview-server/api-types.d.ts +5 -4
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
- 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/dev-middleware/types.d.ts +1 -1
- 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/effects/proxy-console.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +2 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
- package/dist/preview-server/get-package-manager.d.ts +2 -2
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
- package/dist/preview-server/hot-middleware/types.d.ts +4 -4
- package/dist/preview-server/live-events.d.ts +1 -1
- package/dist/preview-server/live-events.js +10 -1
- package/dist/preview-server/project-info.d.ts +1 -1
- package/dist/preview-server/render-queue/job.d.ts +30 -21
- package/dist/preview-server/render-queue/process-still.js +1 -2
- package/dist/preview-server/routes/update-available.d.ts +3 -0
- package/dist/preview-server/routes/update-available.js +9 -0
- package/dist/preview-server/routes.d.ts +0 -1
- package/dist/preview-server/routes.js +1 -11
- package/dist/preview-server/update-available.d.ts +2 -10
- package/dist/preview.js +2 -0
- package/dist/progress-bar.d.ts +4 -4
- package/dist/progress-bar.js +3 -2
- package/dist/progress-types.d.ts +4 -4
- package/dist/render-flows/render.js +35 -28
- package/dist/render-flows/still.d.ts +1 -1
- package/dist/render-flows/still.js +23 -10
- package/dist/required-chromium-options.d.ts +2 -2
- package/dist/server-ready-comment.d.ts +1 -1
- package/dist/server-ready-comment.js +2 -2
- package/dist/setup-cache.js +10 -0
- package/dist/show-compositions-picker.d.ts +1 -1
- package/dist/step.d.ts +1 -1
- package/dist/studio.js +3 -3
- package/dist/truthy.d.ts +1 -1
- package/package.json +10 -12
package/dist/install.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installCommand = exports.INSTALL_COMMAND = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
exports.INSTALL_COMMAND = 'install';
|
|
7
|
+
const installCommand = async (remotionRoot, args) => {
|
|
8
|
+
const firstArg = args[0];
|
|
9
|
+
if (firstArg === 'ffmpeg') {
|
|
10
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfmpeg)({ remotionRoot });
|
|
11
|
+
if (wasAlreadyInstalled) {
|
|
12
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
16
|
+
}
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (firstArg === 'ffprobe') {
|
|
20
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfprobe)({ remotionRoot });
|
|
21
|
+
if (wasAlreadyInstalled) {
|
|
22
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
26
|
+
}
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
log_1.Log.error('Please specify either "ffmpeg" or "ffprobe" as the first argument to the install command');
|
|
30
|
+
log_1.Log.error();
|
|
31
|
+
log_1.Log.info('Example Usage: ');
|
|
32
|
+
log_1.Log.info(' remotion install ffmpeg');
|
|
33
|
+
log_1.Log.info(' remotion install ffprobe');
|
|
34
|
+
process.exit(1);
|
|
35
|
+
};
|
|
36
|
+
exports.installCommand = installCommand;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isJavascript = void 0;
|
|
4
|
+
const isJavascript = (fullPath) => {
|
|
5
|
+
const splitFullPath = fullPath.split('.');
|
|
6
|
+
const extension = splitFullPath[splitFullPath.length - 1];
|
|
7
|
+
return extension === 'jsx' || extension === 'js';
|
|
8
|
+
};
|
|
9
|
+
exports.isJavascript = isJavascript;
|
package/dist/log.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const Log: {
|
|
|
5
5
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
6
6
|
} & {
|
|
7
7
|
tag?: string | undefined;
|
|
8
|
+
secondTag?: string | undefined;
|
|
8
9
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
9
10
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
10
11
|
infoAdvanced: (options: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AudioCodec, BrowserExecutable, Codec, OpenGlRenderer, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
|
-
|
|
2
|
+
type CommandLineOptions = {
|
|
3
3
|
['browser-executable']: BrowserExecutable;
|
|
4
4
|
['pixel-format']: PixelFormat;
|
|
5
5
|
['image-format']: VideoImageFormat | StillImageFormat;
|
|
@@ -8,6 +8,7 @@ const open_in_file_explorer_1 = require("./routes/open-in-file-explorer");
|
|
|
8
8
|
const remove_render_1 = require("./routes/remove-render");
|
|
9
9
|
const subscribe_to_file_existence_1 = require("./routes/subscribe-to-file-existence");
|
|
10
10
|
const unsubscribe_from_file_existence_1 = require("./routes/unsubscribe-from-file-existence");
|
|
11
|
+
const update_available_1 = require("./routes/update-available");
|
|
11
12
|
const update_default_props_1 = require("./routes/update-default-props");
|
|
12
13
|
exports.allApiRoutes = {
|
|
13
14
|
'/api/cancel': cancel_render_1.handleCancelRender,
|
|
@@ -18,4 +19,5 @@ exports.allApiRoutes = {
|
|
|
18
19
|
'/api/open-in-file-explorer': open_in_file_explorer_1.handleOpenInFileExplorer,
|
|
19
20
|
'/api/update-default-props': update_default_props_1.updateDefaultPropsHandler,
|
|
20
21
|
'/api/can-update-default-props': can_update_default_props_1.canUpdateDefaultPropsHandler,
|
|
22
|
+
'/api/update-available': update_available_1.handleUpdate,
|
|
21
23
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
3
|
-
import type { AddRenderRequest, CancelRenderRequest, CancelRenderResponse, CanUpdateDefaultPropsRequest, CanUpdateDefaultPropsResponse, OpenInFileExplorerRequest, RemoveRenderRequest, SubscribeToFileExistenceRequest, SubscribeToFileExistenceResponse, UnsubscribeFromFileExistenceRequest, UpdateDefaultPropsRequest, UpdateDefaultPropsResponse } from './render-queue/job';
|
|
4
|
-
export
|
|
3
|
+
import type { AddRenderRequest, CancelRenderRequest, CancelRenderResponse, CanUpdateDefaultPropsRequest, CanUpdateDefaultPropsResponse, OpenInFileExplorerRequest, RemoveRenderRequest, SubscribeToFileExistenceRequest, SubscribeToFileExistenceResponse, UnsubscribeFromFileExistenceRequest, UpdateAvailableRequest, UpdateAvailableResponse, UpdateDefaultPropsRequest, UpdateDefaultPropsResponse } from './render-queue/job';
|
|
4
|
+
export type ApiHandler<ReqData, ResData> = (params: {
|
|
5
5
|
input: ReqData;
|
|
6
6
|
entryPoint: string;
|
|
7
7
|
remotionRoot: string;
|
|
8
8
|
request: IncomingMessage;
|
|
9
9
|
response: ServerResponse;
|
|
10
10
|
}) => Promise<ResData>;
|
|
11
|
-
|
|
11
|
+
type ReqAndRes<A, B> = {
|
|
12
12
|
Request: A;
|
|
13
13
|
Response: B;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type ApiRoutes = {
|
|
16
16
|
'/api/cancel': ReqAndRes<CancelRenderRequest, CancelRenderResponse>;
|
|
17
17
|
'/api/render': ReqAndRes<AddRenderRequest, undefined>;
|
|
18
18
|
'/api/unsubscribe-from-file-existence': ReqAndRes<UnsubscribeFromFileExistenceRequest, undefined>;
|
|
@@ -21,5 +21,6 @@ export declare type ApiRoutes = {
|
|
|
21
21
|
'/api/open-in-file-explorer': ReqAndRes<OpenInFileExplorerRequest, void>;
|
|
22
22
|
'/api/update-default-props': ReqAndRes<UpdateDefaultPropsRequest, UpdateDefaultPropsResponse>;
|
|
23
23
|
'/api/can-update-default-props': ReqAndRes<CanUpdateDefaultPropsRequest, CanUpdateDefaultPropsResponse>;
|
|
24
|
+
'/api/update-available': ReqAndRes<UpdateAvailableRequest, UpdateAvailableResponse>;
|
|
24
25
|
};
|
|
25
26
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isColorSupported: boolean;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var _a;
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.isColorSupported = void 0;
|
|
28
|
+
const tty = __importStar(require("tty"));
|
|
29
|
+
const argv = process.argv || [];
|
|
30
|
+
const env = process.env || {};
|
|
31
|
+
const isDisabled = 'NO_COLOR' in env || argv.includes('--no-color');
|
|
32
|
+
const isForced = 'FORCE_COLOR' in env || argv.includes('--color');
|
|
33
|
+
const isWindows = process.platform === 'win32';
|
|
34
|
+
const isCompatibleTerminal = ((_a = tty === null || tty === void 0 ? void 0 : tty.isatty) === null || _a === void 0 ? void 0 : _a.call(tty, 1)) && env.TERM && env.TERM !== 'dumb';
|
|
35
|
+
const isCI = 'CI' in env &&
|
|
36
|
+
('GITHUB_ACTIONS' in env || 'GITLAB_CI' in env || 'CIRCLECI' in env);
|
|
37
|
+
exports.isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
|
|
@@ -5,5 +5,5 @@ export declare function getValueContentRangeHeader(type: string, size: number, r
|
|
|
5
5
|
start: number;
|
|
6
6
|
end: number;
|
|
7
7
|
}): string;
|
|
8
|
-
export
|
|
8
|
+
export type MiddleWare = (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
9
9
|
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 | -2 | Ranges;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { webpack } from '@remotion/bundler';
|
|
2
2
|
import type memfs from 'memfs';
|
|
3
|
-
export
|
|
3
|
+
export type DevMiddlewareContext = {
|
|
4
4
|
state: boolean;
|
|
5
5
|
stats: webpack.Stats | undefined;
|
|
6
6
|
callbacks: ((stats: webpack.Stats) => undefined | Promise<void>)[];
|
|
@@ -4,14 +4,14 @@
|
|
|
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 ReactFrame = {
|
|
8
8
|
fileName: string | null;
|
|
9
9
|
lineNumber: number | null;
|
|
10
10
|
name: string | null;
|
|
11
11
|
};
|
|
12
12
|
declare const registerReactStack: () => void;
|
|
13
13
|
declare const unregisterReactStack: () => void;
|
|
14
|
-
|
|
14
|
+
type ErrorData = {
|
|
15
15
|
type: 'webpack-error';
|
|
16
16
|
message: string;
|
|
17
17
|
frames: ReactFrame[];
|
|
@@ -19,6 +19,6 @@ declare type ErrorData = {
|
|
|
19
19
|
type: 'build-error';
|
|
20
20
|
error: Error;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
type ConsoleProxyCallback = (data: ErrorData) => void;
|
|
23
23
|
declare const permanentRegister: (type: 'error', callback: ConsoleProxyCallback) => void;
|
|
24
24
|
export { permanentRegister, registerReactStack, unregisterReactStack };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type ErrorCallback = (error: Error) => void;
|
|
2
2
|
declare function registerUnhandledError(target: EventTarget, callback: ErrorCallback): void;
|
|
3
3
|
declare function unregisterUnhandledError(target: EventTarget): void;
|
|
4
4
|
export { registerUnhandledError as register, unregisterUnhandledError as unregister, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type ErrorCallback = (error: Error) => void;
|
|
2
2
|
declare function registerUnhandledRejection(target: EventTarget, callback: ErrorCallback): void;
|
|
3
3
|
declare function unregisterUnhandledRejection(target: EventTarget): void;
|
|
4
4
|
export { registerUnhandledRejection as register, unregisterUnhandledRejection as unregister, };
|
|
@@ -28,6 +28,7 @@ function extractSourceMapUrl(fileContents) {
|
|
|
28
28
|
}
|
|
29
29
|
return match[1].toString();
|
|
30
30
|
}
|
|
31
|
+
// TODO: Can import this from BrowserSafeApis.getSourceMapRemotely
|
|
31
32
|
async function getSourceMap(fileUri, fileContents) {
|
|
32
33
|
const sm = extractSourceMapUrl(fileContents);
|
|
33
34
|
if (sm === null) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const editorNames: readonly ["atom", "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta", "brackets", "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl", "code", "code-insiders", "vscodium", "/Applications/AppCode.app/Contents/MacOS/appcode", "/Applications/CLion.app/Contents/MacOS/clion", "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea", "/Applications/PhpStorm.app/Contents/MacOS/phpstorm", "/Applications/PyCharm.app/Contents/MacOS/pycharm", "/Applications/PyCharm CE.app/Contents/MacOS/pycharm", "/Applications/RubyMine.app/Contents/MacOS/rubymine", "/Applications/WebStorm.app/Contents/MacOS/webstorm", "/Applications/GoLand.app/Contents/MacOS/goland", "/Applications/Rider.app/Contents/MacOS/rider", "mvim", "emacs", "gvim", "idea", "phpstorm", "pycharm", "rubymine", "subl", "sublime_text", "vim", "webstorm", "goland", "rider", "Brackets.exe", "Code.exe", "Code - Insiders.exe", "VSCodium.exe", "atom.exe", "sublime_text.exe", "notepad++.exe", "clion.exe", "clion64.exe", "idea.exe", "idea64.exe", "phpstorm.exe", "phpstorm64.exe", "pycharm.exe", "pycharm64.exe", "rubymine.exe", "rubymine64.exe", "webstorm.exe", "webstorm64.exe", "goland.exe", "goland64.exe", "rider.exe", "rider64.exe", "nano"];
|
|
2
2
|
export declare const getDisplayNameForEditor: (editor: Editor | null) => string | null;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Editor = typeof editorNames[number];
|
|
4
|
+
type ProcessAndCommand = {
|
|
5
5
|
process: string;
|
|
6
6
|
command: Editor;
|
|
7
7
|
};
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
|
|
3
|
-
export
|
|
3
|
+
export type OnRetry = null | (() => void);
|
|
4
4
|
export declare const ErrorDisplay: React.FC<{
|
|
5
5
|
display: ErrorRecord;
|
|
6
6
|
keyboardShortcuts: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type SetErrors = {
|
|
3
3
|
setErrors: (errs: State) => void;
|
|
4
4
|
addError: (err: Error) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
7
|
-
|
|
7
|
+
type State = {
|
|
8
8
|
type: 'clear';
|
|
9
9
|
} | {
|
|
10
10
|
type: 'errors';
|
|
@@ -10,7 +10,7 @@ declare global {
|
|
|
10
10
|
__webpack_hot_middleware_reporter__: Reporter;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type Reporter = ReturnType<typeof createReporter>;
|
|
14
14
|
declare function createReporter(): {
|
|
15
15
|
cleanProblemsCache(): void;
|
|
16
16
|
problems(type: 'errors' | 'warnings', obj: HotMiddlewareMessage): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stripAnsi: (str: string) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stripAnsi = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Code inlined from https://github.com/chalk/strip-ansi#readme
|
|
6
|
+
* This file is MIT licensed.
|
|
7
|
+
*/
|
|
8
|
+
const ansiRegex = () => {
|
|
9
|
+
const pattern = [
|
|
10
|
+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
11
|
+
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))',
|
|
12
|
+
].join('|');
|
|
13
|
+
return new RegExp(pattern, 'g');
|
|
14
|
+
};
|
|
15
|
+
const stripAnsi = (str) => {
|
|
16
|
+
if (typeof str !== 'string') {
|
|
17
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof str}\``);
|
|
18
|
+
}
|
|
19
|
+
return str.replace(ansiRegex(), '');
|
|
20
|
+
};
|
|
21
|
+
exports.stripAnsi = stripAnsi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { webpack } from '@remotion/bundler';
|
|
2
|
-
export
|
|
2
|
+
export type HotMiddlewareMessage = {
|
|
3
3
|
action: 'building';
|
|
4
4
|
name?: string;
|
|
5
5
|
} | {
|
|
@@ -20,8 +20,8 @@ export declare const hotMiddlewareOptions: {
|
|
|
20
20
|
warn: boolean;
|
|
21
21
|
heartbeat: number;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type HotMiddlewareOptions = typeof hotMiddlewareOptions;
|
|
24
|
+
export type WebpackStats = ReturnType<webpack.Stats['toJson']>;
|
|
25
|
+
export type ModuleMap = {
|
|
26
26
|
[key: string]: string;
|
|
27
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { IncomingMessage, ServerResponse } from 'node: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
|
};
|
|
@@ -6,6 +6,7 @@ const file_existence_watchers_1 = require("./file-existence-watchers");
|
|
|
6
6
|
const serializeMessage = (message) => {
|
|
7
7
|
return `data: ${JSON.stringify(message)}\n\n`;
|
|
8
8
|
};
|
|
9
|
+
let printPortMessageTimeout = null;
|
|
9
10
|
const makeLiveEventsRouter = () => {
|
|
10
11
|
let clients = [];
|
|
11
12
|
const router = (request, response) => {
|
|
@@ -26,12 +27,20 @@ const makeLiveEventsRouter = () => {
|
|
|
26
27
|
response,
|
|
27
28
|
};
|
|
28
29
|
clients.push(newClient);
|
|
30
|
+
if (printPortMessageTimeout) {
|
|
31
|
+
clearTimeout(printPortMessageTimeout);
|
|
32
|
+
}
|
|
29
33
|
request.on('close', () => {
|
|
30
34
|
(0, file_existence_watchers_1.unsubscribeClientFileExistenceWatchers)(clientId);
|
|
31
35
|
clients = clients.filter((client) => client.id !== clientId);
|
|
32
36
|
// If all clients disconnected, print a comment so user can easily restart it.
|
|
33
37
|
if (clients.length === 0) {
|
|
34
|
-
|
|
38
|
+
if (printPortMessageTimeout) {
|
|
39
|
+
clearTimeout(printPortMessageTimeout);
|
|
40
|
+
}
|
|
41
|
+
printPortMessageTimeout = setTimeout(() => {
|
|
42
|
+
(0, server_ready_comment_1.printServerReadyComment)('To restart');
|
|
43
|
+
}, 2500);
|
|
35
44
|
}
|
|
36
45
|
});
|
|
37
46
|
};
|
|
@@ -2,11 +2,12 @@ import type { AudioCodec, Codec, makeCancelSignal, PixelFormat, ProResProfile, S
|
|
|
2
2
|
import type { EnumPath } from '../../editor/components/RenderModal/SchemaEditor/extract-enum-json-paths';
|
|
3
3
|
import type { AggregateRenderProgress } from '../../progress-types';
|
|
4
4
|
import type { RequiredChromiumOptions } from '../../required-chromium-options';
|
|
5
|
-
|
|
5
|
+
import type { PackageManager } from '../get-package-manager';
|
|
6
|
+
type BaseRenderProgress = {
|
|
6
7
|
message: string;
|
|
7
8
|
value: number;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
type RenderJobDynamicStatus = {
|
|
10
11
|
status: 'done';
|
|
11
12
|
progress: BaseRenderProgress & AggregateRenderProgress;
|
|
12
13
|
} | {
|
|
@@ -21,11 +22,11 @@ declare type RenderJobDynamicStatus = {
|
|
|
21
22
|
stack: string | undefined;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
|
-
export
|
|
25
|
-
|
|
25
|
+
export type JobProgressCallback = (options: BaseRenderProgress & AggregateRenderProgress) => void;
|
|
26
|
+
type RenderJobDynamicFields = ({
|
|
26
27
|
type: 'still';
|
|
27
28
|
imageFormat: StillImageFormat;
|
|
28
|
-
jpegQuality: number
|
|
29
|
+
jpegQuality: number;
|
|
29
30
|
frame: number;
|
|
30
31
|
scale: number;
|
|
31
32
|
} & RenderJobDynamicStatus) | ({
|
|
@@ -49,7 +50,7 @@ declare type RenderJobDynamicFields = ({
|
|
|
49
50
|
numberOfGifLoops: number | null;
|
|
50
51
|
disallowParallelEncoding: boolean;
|
|
51
52
|
} & RenderJobDynamicStatus);
|
|
52
|
-
export
|
|
53
|
+
export type RenderJob = {
|
|
53
54
|
startedAt: number;
|
|
54
55
|
compositionId: string;
|
|
55
56
|
id: string;
|
|
@@ -62,13 +63,13 @@ export declare type RenderJob = {
|
|
|
62
63
|
envVariables: Record<string, string>;
|
|
63
64
|
inputProps: Record<string, unknown>;
|
|
64
65
|
} & RenderJobDynamicFields;
|
|
65
|
-
export
|
|
66
|
+
export type RenderJobWithCleanup = RenderJob & {
|
|
66
67
|
cleanup: (() => void)[];
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
+
type AddRenderRequestDynamicFields = {
|
|
69
70
|
type: 'still';
|
|
70
71
|
imageFormat: StillImageFormat;
|
|
71
|
-
jpegQuality: number
|
|
72
|
+
jpegQuality: number;
|
|
72
73
|
frame: number;
|
|
73
74
|
scale: number;
|
|
74
75
|
verbose: boolean;
|
|
@@ -94,11 +95,11 @@ declare type AddRenderRequestDynamicFields = {
|
|
|
94
95
|
numberOfGifLoops: number | null;
|
|
95
96
|
disallowParallelEncoding: boolean;
|
|
96
97
|
};
|
|
97
|
-
export
|
|
98
|
+
export type CancelRenderRequest = {
|
|
98
99
|
jobId: string;
|
|
99
100
|
};
|
|
100
|
-
export
|
|
101
|
-
export
|
|
101
|
+
export type CancelRenderResponse = {};
|
|
102
|
+
export type AddRenderRequest = {
|
|
102
103
|
compositionId: string;
|
|
103
104
|
outName: string;
|
|
104
105
|
chromiumOptions: RequiredChromiumOptions;
|
|
@@ -106,42 +107,50 @@ export declare type AddRenderRequest = {
|
|
|
106
107
|
envVariables: Record<string, string>;
|
|
107
108
|
inputProps: Record<string, unknown>;
|
|
108
109
|
} & AddRenderRequestDynamicFields;
|
|
109
|
-
export
|
|
110
|
+
export type RemoveRenderRequest = {
|
|
110
111
|
jobId: string;
|
|
111
112
|
};
|
|
112
|
-
export
|
|
113
|
+
export type OpenInFileExplorerRequest = {
|
|
113
114
|
directory: string;
|
|
114
115
|
};
|
|
115
|
-
export
|
|
116
|
+
export type SubscribeToFileExistenceRequest = {
|
|
116
117
|
file: string;
|
|
117
118
|
clientId: string;
|
|
118
119
|
};
|
|
119
|
-
export
|
|
120
|
+
export type SubscribeToFileExistenceResponse = {
|
|
120
121
|
exists: boolean;
|
|
121
122
|
};
|
|
122
|
-
export
|
|
123
|
+
export type UnsubscribeFromFileExistenceRequest = {
|
|
123
124
|
file: string;
|
|
124
125
|
clientId: string;
|
|
125
126
|
};
|
|
126
|
-
export
|
|
127
|
+
export type UpdateDefaultPropsRequest = {
|
|
127
128
|
compositionId: string;
|
|
128
129
|
defaultProps: string;
|
|
129
130
|
enumPaths: EnumPath[];
|
|
130
131
|
};
|
|
131
|
-
export
|
|
132
|
+
export type UpdateDefaultPropsResponse = {
|
|
132
133
|
success: true;
|
|
133
134
|
} | {
|
|
134
135
|
success: false;
|
|
135
136
|
reason: string;
|
|
136
137
|
stack: string;
|
|
137
138
|
};
|
|
138
|
-
export
|
|
139
|
+
export type CanUpdateDefaultPropsRequest = {
|
|
139
140
|
compositionId: string;
|
|
140
141
|
};
|
|
141
|
-
export
|
|
142
|
+
export type CanUpdateDefaultPropsResponse = {
|
|
142
143
|
canUpdate: true;
|
|
143
144
|
} | {
|
|
144
145
|
canUpdate: false;
|
|
145
146
|
reason: string;
|
|
146
147
|
};
|
|
148
|
+
export type UpdateAvailableRequest = {};
|
|
149
|
+
export type UpdateAvailableResponse = {
|
|
150
|
+
currentVersion: string;
|
|
151
|
+
latestVersion: string;
|
|
152
|
+
updateAvailable: boolean;
|
|
153
|
+
timedOut: boolean;
|
|
154
|
+
packageManager: PackageManager | 'unknown';
|
|
155
|
+
};
|
|
147
156
|
export {};
|
|
@@ -5,7 +5,6 @@ const convert_entry_point_to_serve_url_1 = require("../../convert-entry-point-to
|
|
|
5
5
|
const get_cli_options_1 = require("../../get-cli-options");
|
|
6
6
|
const still_1 = require("../../render-flows/still");
|
|
7
7
|
const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }) => {
|
|
8
|
-
var _a;
|
|
9
8
|
if (job.type !== 'still') {
|
|
10
9
|
throw new Error('Expected still job');
|
|
11
10
|
}
|
|
@@ -29,7 +28,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
|
|
|
29
28
|
port,
|
|
30
29
|
publicDir,
|
|
31
30
|
puppeteerTimeout,
|
|
32
|
-
jpegQuality:
|
|
31
|
+
jpegQuality: job.jpegQuality,
|
|
33
32
|
remainingArgs: [],
|
|
34
33
|
scale: job.scale,
|
|
35
34
|
stillFrame: job.frame,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleUpdate = void 0;
|
|
4
|
+
const update_available_1 = require("../update-available");
|
|
5
|
+
const handleUpdate = async ({ remotionRoot }) => {
|
|
6
|
+
const data = await (0, update_available_1.isUpdateAvailableWithTimeout)(remotionRoot);
|
|
7
|
+
return data;
|
|
8
|
+
};
|
|
9
|
+
exports.handleUpdate = handleUpdate;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
3
2
|
import type { LiveEventsServer } from './live-events';
|
|
4
3
|
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, entryPoint, publicDir, }: {
|