@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type TimelineWidthContextType = number | null;
|
|
3
3
|
export declare const TimelineWidthContext: import("react").Context<TimelineWidthContextType>;
|
|
4
4
|
export declare const TimelineWidthProvider: React.FC<{
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -39,6 +39,6 @@ const TimelineZoomControls = () => {
|
|
|
39
39
|
if (isStill) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", disabled: timeline_zoom_1.TIMELINE_MIN_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(minus_1.Minus, { style: iconStyle }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, className: "__remotion-timeline-slider", tabIndex: tabIndex }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", disabled: timeline_zoom_1.TIMELINE_MAX_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { style: iconStyle }) })] }));
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", disabled: timeline_zoom_1.TIMELINE_MIN_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(minus_1.Minus, { style: iconStyle }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, className: "__remotion-timeline-slider", tabIndex: tabIndex }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", disabled: timeline_zoom_1.TIMELINE_MAX_ZOOM === zoom, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { color: "currentcolor", style: iconStyle }) })] }));
|
|
43
43
|
};
|
|
44
44
|
exports.TimelineZoomControls = TimelineZoomControls;
|
|
@@ -6,6 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const colors_1 = require("../helpers/colors");
|
|
7
7
|
const modals_1 = require("../state/modals");
|
|
8
8
|
const z_index_1 = require("../state/z-index");
|
|
9
|
+
const actions_1 = require("./RenderQueue/actions");
|
|
9
10
|
const buttonStyle = {
|
|
10
11
|
appearance: 'none',
|
|
11
12
|
color: colors_1.BLUE,
|
|
@@ -21,10 +22,7 @@ const UpdateCheck = () => {
|
|
|
21
22
|
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
22
23
|
const checkForUpdates = (0, react_1.useCallback)(() => {
|
|
23
24
|
const controller = new AbortController();
|
|
24
|
-
|
|
25
|
-
signal: controller.signal,
|
|
26
|
-
})
|
|
27
|
-
.then((res) => res.json())
|
|
25
|
+
(0, actions_1.updateAvailable)(controller.signal)
|
|
28
26
|
.then((d) => {
|
|
29
27
|
setInfo(d);
|
|
30
28
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ZodType = Awaited<typeof import('zod')>['z'];
|
|
3
|
+
export type ZodTypesType = Awaited<typeof import('@remotion/zod-types')>;
|
|
4
4
|
export declare const getZodIfPossible: () => Promise<ZodType | null>;
|
|
5
5
|
export declare const getZTypesIfPossible: () => Promise<ZodTypesType | null>;
|
|
6
6
|
export declare const useZodIfPossible: () => typeof import("zod/lib/external") | null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { TSequence } from 'remotion';
|
|
2
|
-
|
|
2
|
+
type Track = {
|
|
3
3
|
sequence: TSequence;
|
|
4
4
|
depth: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type TrackWithHash = Track & {
|
|
7
7
|
hash: string;
|
|
8
8
|
canCollapse: boolean;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type TrackWithHashAndOriginalTimings = TrackWithHash & {
|
|
11
11
|
hash: string;
|
|
12
12
|
cascadedStart: number;
|
|
13
13
|
cascadedDuration: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const openFolderKey: (folderName: string, parentName: string | null) => string;
|
|
2
|
-
export
|
|
2
|
+
export type ExpandedFoldersState = Record<string, boolean>;
|
|
3
3
|
export declare const persistExpandedFolders: (state: ExpandedFoldersState) => void;
|
|
4
4
|
export declare const loadExpandedFolders: () => ExpandedFoldersState;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Codec } from '@remotion/renderer';
|
|
3
2
|
import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
|
|
4
|
-
|
|
3
|
+
type Section = 'general' | 'picture' | 'advanced' | 'data' | 'gif' | 'audio';
|
|
5
4
|
export declare const useRenderModalSections: (renderMode: RenderType, codec: Codec) => {
|
|
6
5
|
tab: Section;
|
|
7
6
|
setTab: import("react").Dispatch<import("react").SetStateAction<Section>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCompactUI(): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCompactUI = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const breakpoint = 1200;
|
|
6
|
+
function useCompactUI() {
|
|
7
|
+
const [compactUI, setCompactUI] = (0, react_1.useState)(window.innerWidth < breakpoint);
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
9
|
+
function handleResize() {
|
|
10
|
+
setCompactUI(window.innerWidth < breakpoint);
|
|
11
|
+
}
|
|
12
|
+
window.addEventListener('resize', handleResize);
|
|
13
|
+
handleResize();
|
|
14
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
15
|
+
}, []);
|
|
16
|
+
return compactUI;
|
|
17
|
+
}
|
|
18
|
+
exports.useCompactUI = useCompactUI;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Menu } from '../components/Menu/MenuItem';
|
|
2
2
|
import type { TQuickSwitcherResult } from '../components/QuickSwitcher/QuickSwitcherResult';
|
|
3
3
|
import type { ModalState } from '../state/modals';
|
|
4
|
-
|
|
4
|
+
type Structure = Menu[];
|
|
5
5
|
export declare const useMenuStructure: (closeMenu: () => void) => Structure;
|
|
6
6
|
export declare const makeSearchResults: (actions: Structure, setSelectedModal: (value: React.SetStateAction<ModalState | null>) => void) => TQuickSwitcherResult[];
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FilmIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const FilmIcon = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm280 208c0 6.6-5.4 12-12 12H148c-6.6 0-12-5.4-12-12V124c0-6.6 5.4-12 12-12h216c6.6 0 12 5.4 12 12v264zm104-16c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z" }) }));
|
|
7
|
+
};
|
|
8
|
+
exports.FilmIcon = FilmIcon;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Plus = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const Plus = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { fill:
|
|
5
|
+
const Plus = ({ color, ...props }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { fill: color, d: "M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.Plus = Plus;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const TimelineIcon = (props) => {
|
|
6
|
+
var _a;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "stream", className: "svg-inline--fa fa-stream fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: (_a = props.style) === null || _a === void 0 ? void 0 : _a.color, d: "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z" }) }));
|
|
8
|
+
};
|
|
9
|
+
exports.TimelineIcon = TimelineIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExpandedFoldersState } from '../helpers/persist-open-folders';
|
|
3
|
-
|
|
3
|
+
type TFolderContext = {
|
|
4
4
|
foldersExpanded: ExpandedFoldersState;
|
|
5
5
|
setFoldersExpanded: React.Dispatch<React.SetStateAction<ExpandedFoldersState>>;
|
|
6
6
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TimelineInOutContextValue = {
|
|
3
3
|
inFrame: number | null;
|
|
4
4
|
outFrame: number | null;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type SetTimelineInOutContextValue = {
|
|
7
7
|
setInAndOutFrames: (u: React.SetStateAction<TimelineInOutContextValue>) => void;
|
|
8
8
|
};
|
|
9
9
|
export declare const TimelineInOutContext: React.Context<TimelineInOutContextValue>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
export type KeyEventType = 'keydown' | 'keyup' | 'keypress';
|
|
3
|
+
type KeyListenerCallback = (e: KeyboardEvent) => void;
|
|
4
|
+
export type RegisteredKeybinding = {
|
|
5
5
|
registeredFromPane: string;
|
|
6
6
|
id: string;
|
|
7
7
|
key: string;
|
|
8
8
|
event: KeyEventType;
|
|
9
9
|
callback: KeyListenerCallback;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type KeybindingContextType = {
|
|
12
12
|
registerKeybinding: (binding: RegisteredKeybinding) => void;
|
|
13
13
|
unregisterKeybinding: (binding: RegisteredKeybinding) => void;
|
|
14
14
|
unregisterPane: (paneId: string) => void;
|
|
@@ -3,8 +3,8 @@ import type React from 'react';
|
|
|
3
3
|
import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
|
|
4
4
|
import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
|
|
5
5
|
import type { UpdateInfo } from '../components/UpdateCheck';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type CompType = 'composition' | 'still';
|
|
7
|
+
export type RenderModalState = {
|
|
8
8
|
type: 'render';
|
|
9
9
|
compositionId: string;
|
|
10
10
|
initialFrame: number;
|
|
@@ -39,7 +39,7 @@ export declare type RenderModalState = {
|
|
|
39
39
|
inFrameMark: number | null;
|
|
40
40
|
outFrameMark: number | null;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type ModalState = {
|
|
43
43
|
type: 'new-comp';
|
|
44
44
|
compType: CompType;
|
|
45
45
|
} | RenderModalState | {
|
|
@@ -53,7 +53,7 @@ export declare type ModalState = {
|
|
|
53
53
|
mode: QuickSwitcherMode;
|
|
54
54
|
invocationTimestamp: number;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type ModalContextType = {
|
|
57
57
|
selectedModal: ModalState | null;
|
|
58
58
|
setSelectedModal: React.Dispatch<React.SetStateAction<ModalState | null>>;
|
|
59
59
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type State = {
|
|
3
|
+
richTimeline: boolean;
|
|
4
|
+
setRichTimeline: (cb: (prevState: boolean) => boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const persistRichTimelineOption: (option: boolean) => void;
|
|
7
|
+
export declare const loadRichTimelineOption: () => boolean;
|
|
8
|
+
export declare const RichTimelineContext: import("react").Context<State>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RichTimelineContext = exports.loadRichTimelineOption = exports.persistRichTimelineOption = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const persistRichTimelineOption = (option) => {
|
|
6
|
+
localStorage.setItem('richTimeline', String(option));
|
|
7
|
+
};
|
|
8
|
+
exports.persistRichTimelineOption = persistRichTimelineOption;
|
|
9
|
+
const loadRichTimelineOption = () => {
|
|
10
|
+
const item = localStorage.getItem('richTimeline');
|
|
11
|
+
return item === 'true';
|
|
12
|
+
};
|
|
13
|
+
exports.loadRichTimelineOption = loadRichTimelineOption;
|
|
14
|
+
exports.RichTimelineContext = (0, react_1.createContext)({
|
|
15
|
+
richTimeline: (0, exports.loadRichTimelineOption)(),
|
|
16
|
+
setRichTimeline: () => undefined,
|
|
17
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export type SidebarCollapsedState = 'collapsed' | 'expanded' | 'responsive';
|
|
3
|
+
type RightSidebarCollapsedState = Exclude<SidebarCollapsedState, 'responsive'>;
|
|
4
|
+
type Context = {
|
|
5
5
|
sidebarCollapsedStateLeft: SidebarCollapsedState;
|
|
6
6
|
setSidebarCollapsedState: (options: {
|
|
7
7
|
left: null | React.SetStateAction<SidebarCollapsedState>;
|
package/dist/file-watcher.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const getCliOptions: (options: {
|
|
|
11
11
|
shouldOutputImageSequence: boolean;
|
|
12
12
|
inputProps: Record<string, unknown>;
|
|
13
13
|
envVariables: Record<string, string>;
|
|
14
|
-
jpegQuality: number
|
|
14
|
+
jpegQuality: number;
|
|
15
15
|
browser: import("@remotion/renderer").Browser;
|
|
16
16
|
crf: import("@remotion/renderer").Crf | null;
|
|
17
17
|
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import type { BrowserExecutable,
|
|
1
|
+
import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { AnyCompMetadata } from 'remotion';
|
|
3
|
-
export declare const getCompositionId: ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable,
|
|
3
|
+
export declare const getCompositionId: ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, verbose, indent, server, }: {
|
|
4
4
|
args: string[];
|
|
5
5
|
compositionIdFromUi: string | null;
|
|
6
|
-
inputProps
|
|
7
|
-
puppeteerInstance
|
|
8
|
-
envVariables
|
|
9
|
-
timeoutInMilliseconds
|
|
10
|
-
chromiumOptions
|
|
11
|
-
port
|
|
12
|
-
browserExecutable
|
|
13
|
-
downloadMap?: DownloadMap | undefined;
|
|
6
|
+
inputProps: Record<string, unknown>;
|
|
7
|
+
puppeteerInstance: HeadlessBrowser | undefined;
|
|
8
|
+
envVariables: Record<string, string>;
|
|
9
|
+
timeoutInMilliseconds: number;
|
|
10
|
+
chromiumOptions: ChromiumOptions;
|
|
11
|
+
port: number | null;
|
|
12
|
+
browserExecutable: BrowserExecutable;
|
|
14
13
|
serveUrlOrWebpackUrl: string;
|
|
15
14
|
verbose: boolean;
|
|
16
|
-
onBrowserLog?: ((log: BrowserLog) => void) | undefined;
|
|
17
15
|
indent: boolean;
|
|
16
|
+
server: RemotionServer;
|
|
18
17
|
}) => Promise<{
|
|
19
18
|
compositionId: string;
|
|
20
19
|
reason: string;
|
|
@@ -15,13 +15,13 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
|
|
|
15
15
|
const [compName, ...remainingArgs] = cliArgs;
|
|
16
16
|
return { compName, remainingArgs, reason: 'Passed as argument' };
|
|
17
17
|
};
|
|
18
|
-
const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable,
|
|
18
|
+
const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, verbose, indent, server, }) => {
|
|
19
19
|
const { compName, remainingArgs, reason: compReason, } = getCompName({
|
|
20
20
|
cliArgs: args,
|
|
21
21
|
compositionIdFromUi,
|
|
22
22
|
});
|
|
23
23
|
if (compName) {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await renderer_1.RenderInternals.internalSelectComposition({
|
|
25
25
|
id: compName,
|
|
26
26
|
inputProps,
|
|
27
27
|
puppeteerInstance,
|
|
@@ -30,9 +30,11 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
|
|
|
30
30
|
serveUrl: serveUrlOrWebpackUrl,
|
|
31
31
|
browserExecutable,
|
|
32
32
|
chromiumOptions,
|
|
33
|
-
onBrowserLog,
|
|
34
33
|
port,
|
|
35
34
|
verbose,
|
|
35
|
+
server,
|
|
36
|
+
indent,
|
|
37
|
+
onBrowserLog: null,
|
|
36
38
|
});
|
|
37
39
|
if (!config) {
|
|
38
40
|
throw new Error(`Cannot find composition with ID "${compName}"`);
|
|
@@ -45,7 +47,7 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
|
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
if (!process.env.CI) {
|
|
48
|
-
const comps = await
|
|
50
|
+
const comps = await renderer_1.RenderInternals.internalGetCompositions({
|
|
49
51
|
inputProps,
|
|
50
52
|
puppeteerInstance,
|
|
51
53
|
envVariables,
|
|
@@ -53,10 +55,11 @@ const getCompositionId = async ({ args, compositionIdFromUi, inputProps, puppete
|
|
|
53
55
|
chromiumOptions,
|
|
54
56
|
port,
|
|
55
57
|
browserExecutable,
|
|
56
|
-
downloadMap,
|
|
57
|
-
onBrowserLog,
|
|
58
58
|
verbose,
|
|
59
59
|
indent,
|
|
60
|
+
server,
|
|
61
|
+
serveUrlOrWebpackUrl,
|
|
62
|
+
onBrowserLog: null,
|
|
60
63
|
});
|
|
61
64
|
const { compositionId, reason } = await (0, show_compositions_picker_1.showSingleCompositionsPicker)(comps);
|
|
62
65
|
if (compositionId && typeof compositionId === 'string') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BrowserExecutable, ChromiumOptions,
|
|
1
|
+
import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { AnyCompMetadata } from 'remotion';
|
|
3
|
-
export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable,
|
|
3
|
+
export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }: {
|
|
4
4
|
height: number | null;
|
|
5
5
|
width: number | null;
|
|
6
6
|
args: string[];
|
|
@@ -11,11 +11,11 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
|
|
|
11
11
|
chromiumOptions: ChromiumOptions;
|
|
12
12
|
port: number | null;
|
|
13
13
|
browserExecutable: BrowserExecutable | null;
|
|
14
|
-
downloadMap: DownloadMap | undefined;
|
|
15
14
|
serveUrlOrWebpackUrl: string;
|
|
16
15
|
indent: boolean;
|
|
17
16
|
verbose: boolean;
|
|
18
|
-
inputProps: Record<string, unknown
|
|
17
|
+
inputProps: Record<string, unknown>;
|
|
18
|
+
server: RemotionServer;
|
|
19
19
|
}) => Promise<{
|
|
20
20
|
compositionId: string;
|
|
21
21
|
reason: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCompositionWithDimensionOverride = void 0;
|
|
4
4
|
const get_composition_id_1 = require("./get-composition-id");
|
|
5
|
-
const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable,
|
|
5
|
+
const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, inputProps, verbose, server, }) => {
|
|
6
6
|
const returnValue = await (0, get_composition_id_1.getCompositionId)({
|
|
7
7
|
args,
|
|
8
8
|
compositionIdFromUi,
|
|
@@ -11,12 +11,12 @@ const getCompositionWithDimensionOverride = async ({ height, width, args, compos
|
|
|
11
11
|
verbose,
|
|
12
12
|
browserExecutable,
|
|
13
13
|
chromiumOptions,
|
|
14
|
-
downloadMap,
|
|
15
14
|
envVariables,
|
|
16
15
|
inputProps,
|
|
17
16
|
port,
|
|
18
17
|
puppeteerInstance,
|
|
19
18
|
timeoutInMilliseconds,
|
|
19
|
+
server,
|
|
20
20
|
});
|
|
21
21
|
return {
|
|
22
22
|
...returnValue,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Codec, RenderMediaOptions } from '@remotion/renderer';
|
|
2
|
+
export declare const getRenderMediaOptions: ({ outputLocation, config, serveUrl, codec, remotionRoot, }: {
|
|
3
|
+
outputLocation: RenderMediaOptions['outputLocation'];
|
|
4
|
+
config: RenderMediaOptions['composition'];
|
|
5
|
+
serveUrl: string;
|
|
6
|
+
codec: Codec;
|
|
7
|
+
remotionRoot: string;
|
|
8
|
+
}) => Promise<RenderMediaOptions>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRenderMediaOptions = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const config_1 = require("./config");
|
|
6
|
+
const get_audio_codec_1 = require("./get-audio-codec");
|
|
7
|
+
const get_cli_options_1 = require("./get-cli-options");
|
|
8
|
+
const image_formats_1 = require("./image-formats");
|
|
9
|
+
const getRenderMediaOptions = async ({ outputLocation, config, serveUrl, codec, remotionRoot, }) => {
|
|
10
|
+
const { proResProfile, concurrency, frameRange, overwrite, inputProps, envVariables, quality, crf, pixelFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, height, width, } = await (0, get_cli_options_1.getCliOptions)({
|
|
11
|
+
isLambda: false,
|
|
12
|
+
type: 'series',
|
|
13
|
+
remotionRoot,
|
|
14
|
+
});
|
|
15
|
+
const imageFormat = (0, image_formats_1.getImageFormat)(codec);
|
|
16
|
+
const audioCodec = (0, get_audio_codec_1.getResolvedAudioCodec)();
|
|
17
|
+
return {
|
|
18
|
+
outputLocation,
|
|
19
|
+
composition: {
|
|
20
|
+
...config,
|
|
21
|
+
width: width !== null && width !== void 0 ? width : config.width,
|
|
22
|
+
height: height !== null && height !== void 0 ? height : config.height,
|
|
23
|
+
},
|
|
24
|
+
crf,
|
|
25
|
+
envVariables,
|
|
26
|
+
ffmpegExecutable,
|
|
27
|
+
ffprobeExecutable,
|
|
28
|
+
frameRange,
|
|
29
|
+
imageFormat,
|
|
30
|
+
inputProps,
|
|
31
|
+
overwrite,
|
|
32
|
+
pixelFormat,
|
|
33
|
+
proResProfile,
|
|
34
|
+
quality,
|
|
35
|
+
dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
36
|
+
chromiumOptions,
|
|
37
|
+
timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
|
|
38
|
+
scale,
|
|
39
|
+
port,
|
|
40
|
+
numberOfGifLoops,
|
|
41
|
+
everyNthFrame,
|
|
42
|
+
verbose: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
43
|
+
muted,
|
|
44
|
+
enforceAudioTrack,
|
|
45
|
+
browserExecutable,
|
|
46
|
+
ffmpegOverride,
|
|
47
|
+
concurrency,
|
|
48
|
+
serveUrl,
|
|
49
|
+
codec,
|
|
50
|
+
audioBitrate,
|
|
51
|
+
videoBitrate,
|
|
52
|
+
audioCodec,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
exports.getRenderMediaOptions = getRenderMediaOptions;
|
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;
|