@remotion/cli 4.0.0-alpha13 → 4.0.0-alpha16
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/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/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/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/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 +3 -3
- 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/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/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/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/colors.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 -1
- package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- 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/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/index.d.ts +5 -4
- 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/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/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.js +1 -11
- package/dist/preview-server/update-available.d.ts +2 -10
- 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/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export declare const CliInternals: {
|
|
|
65
65
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
66
66
|
} & {
|
|
67
67
|
tag?: string | undefined;
|
|
68
|
+
secondTag?: string | undefined;
|
|
68
69
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
69
70
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
70
71
|
infoAdvanced: (options: {
|
|
@@ -89,7 +90,7 @@ export declare const CliInternals: {
|
|
|
89
90
|
shouldOutputImageSequence: boolean;
|
|
90
91
|
inputProps: Record<string, unknown>;
|
|
91
92
|
envVariables: Record<string, string>;
|
|
92
|
-
jpegQuality: number
|
|
93
|
+
jpegQuality: number;
|
|
93
94
|
browser: import("@remotion/renderer").Browser;
|
|
94
95
|
crf: import("@remotion/renderer").Crf | null;
|
|
95
96
|
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -216,7 +217,7 @@ export declare const CliInternals: {
|
|
|
216
217
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
217
218
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
218
219
|
}) => boolean;
|
|
219
|
-
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable,
|
|
220
|
+
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }: {
|
|
220
221
|
height: number | null;
|
|
221
222
|
width: number | null;
|
|
222
223
|
args: string[];
|
|
@@ -227,11 +228,11 @@ export declare const CliInternals: {
|
|
|
227
228
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
228
229
|
port: number | null;
|
|
229
230
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
230
|
-
downloadMap: import("@remotion/renderer").DownloadMap | undefined;
|
|
231
231
|
serveUrlOrWebpackUrl: string;
|
|
232
232
|
indent: boolean;
|
|
233
233
|
verbose: boolean;
|
|
234
|
-
inputProps: Record<string, unknown
|
|
234
|
+
inputProps: Record<string, unknown>;
|
|
235
|
+
server: import("@remotion/renderer").RemotionServer;
|
|
235
236
|
}) => Promise<{
|
|
236
237
|
compositionId: string;
|
|
237
238
|
reason: string;
|
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 {};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -22,13 +22,6 @@ const project_info_1 = require("./project-info");
|
|
|
22
22
|
const public_folder_1 = require("./public-folder");
|
|
23
23
|
const queue_1 = require("./render-queue/queue");
|
|
24
24
|
const serve_static_1 = require("./serve-static");
|
|
25
|
-
const update_available_1 = require("./update-available");
|
|
26
|
-
const handleUpdate = async (remotionRoot, _, response) => {
|
|
27
|
-
const data = await (0, update_available_1.isUpdateAvailableWithTimeout)(remotionRoot);
|
|
28
|
-
response.setHeader('content-type', 'application/json');
|
|
29
|
-
response.writeHead(200);
|
|
30
|
-
response.end(JSON.stringify(data));
|
|
31
|
-
};
|
|
32
25
|
const editorGuess = (0, open_in_editor_1.guessEditor)();
|
|
33
26
|
const static404 = (response) => {
|
|
34
27
|
response.writeHead(404);
|
|
@@ -79,7 +72,7 @@ const handleFallback = async ({ remotionRoot, hash, response, getCurrentInputPro
|
|
|
79
72
|
includeFavicon: true,
|
|
80
73
|
title: 'Remotion Studio',
|
|
81
74
|
renderDefaults: {
|
|
82
|
-
jpegQuality: defaultJpegQuality !== null && defaultJpegQuality !== void 0 ? defaultJpegQuality :
|
|
75
|
+
jpegQuality: defaultJpegQuality !== null && defaultJpegQuality !== void 0 ? defaultJpegQuality : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
|
|
83
76
|
scale: defaultScale !== null && defaultScale !== void 0 ? defaultScale : 1,
|
|
84
77
|
logLevel,
|
|
85
78
|
codec: defaultCodec !== null && defaultCodec !== void 0 ? defaultCodec : 'h264',
|
|
@@ -176,9 +169,6 @@ const handleFavicon = (_, response) => {
|
|
|
176
169
|
};
|
|
177
170
|
const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, entryPoint, publicDir, }) => {
|
|
178
171
|
const url = new URL(request.url, 'http://localhost');
|
|
179
|
-
if (url.pathname === '/api/update') {
|
|
180
|
-
return handleUpdate(remotionRoot, request, response);
|
|
181
|
-
}
|
|
182
172
|
if (url.pathname === '/api/project-info') {
|
|
183
173
|
return handleProjectInfo(remotionRoot, request, response);
|
|
184
174
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare type Info = {
|
|
3
|
-
currentVersion: string;
|
|
4
|
-
latestVersion: string;
|
|
5
|
-
updateAvailable: boolean;
|
|
6
|
-
timedOut: boolean;
|
|
7
|
-
packageManager: PackageManager | 'unknown';
|
|
8
|
-
};
|
|
1
|
+
import type { UpdateAvailableResponse } from './render-queue/job';
|
|
9
2
|
export declare const getRemotionVersion: () => any;
|
|
10
|
-
export declare const isUpdateAvailableWithTimeout: (remotionRoot: string) => Promise<
|
|
11
|
-
export {};
|
|
3
|
+
export declare const isUpdateAvailableWithTimeout: (remotionRoot: string) => Promise<UpdateAvailableResponse>;
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CancelSignal } from '@remotion/renderer';
|
|
2
2
|
import type { AggregateRenderProgress } from './progress-types';
|
|
3
|
-
export
|
|
3
|
+
export type OverwriteableCliOutput = {
|
|
4
4
|
update: (up: string, newline: boolean) => boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare const createOverwriteableCliOutput: (options: {
|
|
@@ -9,15 +9,15 @@ export declare const createOverwriteableCliOutput: (options: {
|
|
|
9
9
|
updatesDontOverwrite: boolean;
|
|
10
10
|
indent: boolean;
|
|
11
11
|
}) => OverwriteableCliOutput;
|
|
12
|
-
export
|
|
12
|
+
export type CopyingState = {
|
|
13
13
|
bytes: number;
|
|
14
14
|
doneIn: number | null;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type BundlingState = {
|
|
17
17
|
progress: number;
|
|
18
18
|
doneIn: number | null;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type SymbolicLinksState = {
|
|
21
21
|
symlinks: string[];
|
|
22
22
|
};
|
|
23
23
|
export declare const makeBundlingAndCopyProgress: ({ bundling, copying, symLinks, }: {
|
package/dist/progress-bar.js
CHANGED
|
@@ -166,10 +166,11 @@ const makeRenderingAndStitchingProgress = ({ prog, steps, stitchingStep, }) => {
|
|
|
166
166
|
};
|
|
167
167
|
exports.makeRenderingAndStitchingProgress = makeRenderingAndStitchingProgress;
|
|
168
168
|
const getGuiProgressSubtitle = (progress) => {
|
|
169
|
-
|
|
169
|
+
// Handle floating point inaccuracies
|
|
170
|
+
if (progress.bundling.progress < 0.99999) {
|
|
170
171
|
return `Bundling ${Math.round(progress.bundling.progress * 100)}%`;
|
|
171
172
|
}
|
|
172
|
-
if (
|
|
173
|
+
if (progress.copyingState.doneIn === null) {
|
|
173
174
|
if (progress.copyingState.bytes < 100000000) {
|
|
174
175
|
return 'Bundling 100%';
|
|
175
176
|
}
|