🎥 Make videos programmatically with React
apply prettier import formatting now that it works again
Jonny Burger10a236303b32
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.tsindex 255c010c60..a157b0bc4b 100644--- a/packages/cli/src/benchmark.ts+++ b/packages/cli/src/benchmark.ts@@ -1,5 +1,6 @@import type {InternalRenderMediaOptions} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';+import {Internals} from 'remotion';import {chalk} from './chalk';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';@@ -16,7 +17,6 @@ import {bundleOnCliOrTakeServeUrl} from './setup-cache';import {shouldUseNonOverlayingLogger} from './should-use-non-overlaying-logger';import {showMultiCompositionsPicker} from './show-compositions-picker';import {truthy} from './truthy';-import {Internals} from 'remotion';const DEFAULT_RUNS = 3;diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.tsindex 9eed586a52..b4bd3e9d22 100644--- a/packages/cli/src/compositions.ts+++ b/packages/cli/src/compositions.ts@@ -1,4 +1,5 @@import {RenderInternals} from '@remotion/renderer';+import {Internals} from 'remotion';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';import {findEntryPoint} from './entry-point';@@ -6,7 +7,6 @@ import {getCliOptions} from './get-cli-options';import {Log} from './log';import {printCompositions} from './print-compositions';import {bundleOnCliOrTakeServeUrl} from './setup-cache';-import {Internals} from 'remotion';export const listCompositionsCommand = async (remotionRoot: string,diff --git a/packages/cli/src/editor/components/CanvasOrLoading.tsx b/packages/cli/src/editor/components/CanvasOrLoading.tsxindex 0015c5bf5d..feb6a03fa1 100644--- a/packages/cli/src/editor/components/CanvasOrLoading.tsx+++ b/packages/cli/src/editor/components/CanvasOrLoading.tsx@@ -2,15 +2,15 @@ import React, {useContext, useEffect, useMemo, useState} from 'react';import {Internals} from 'remotion';import {ErrorLoader} from '../../preview-server/error-overlay/remotion-overlay/ErrorLoader';import {BACKGROUND, LIGHT_TEXT} from '../helpers/colors';+import {TimelineZoomCtx} from '../state/timeline-zoom';import {Canvas} from './Canvas';+import {FramePersistor} from './FramePersistor';import {Spacing} from './layout';import {inlineCodeSnippet} from './Menu/styles';import {Spinner} from './Spinner';-import {FramePersistor} from './FramePersistor';-import {ZoomPersistor} from './ZoomPersistor';-import {ensureFrameIsInViewport} from './Timeline/timeline-scroll-logic';-import {TimelineZoomCtx} from '../state/timeline-zoom';import {getCurrentFrame} from './Timeline/imperative-state';+import {ensureFrameIsInViewport} from './Timeline/timeline-scroll-logic';+import {ZoomPersistor} from './ZoomPersistor';const container: React.CSSProperties = {color: 'white',diff --git a/packages/cli/src/editor/components/RenderModal/RenderModalBasic.tsx b/packages/cli/src/editor/components/RenderModal/RenderModalBasic.tsxindex c7ce73f730..11bc9ac5cb 100644--- a/packages/cli/src/editor/components/RenderModal/RenderModalBasic.tsx+++ b/packages/cli/src/editor/components/RenderModal/RenderModalBasic.tsx@@ -1,6 +1,7 @@import type {Codec, ProResProfile} from '@remotion/renderer';import {BrowserSafeApis} from '@remotion/renderer/client';import React, {useCallback, useMemo} from 'react';+import type {VideoConfig} from 'remotion';import {labelProResProfile} from '../../helpers/prores-labels';import {useFileExistence} from '../../helpers/use-file-existence';import {Checkmark} from '../../icons/Checkmark';@@ -18,7 +19,6 @@ import {input, label, optionRow, rightRow} from './layout';import {OptionExplainer} from './OptionExplainer';import type {RenderType} from './RenderModalAdvanced';import {RenderModalInput} from './RenderModalInput';-import type {VideoConfig} from 'remotion';const container: React.CSSProperties = {flex: 1,diff --git a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsxindex 2484bab35a..2d9143ba27 100644--- a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx@@ -1,4 +1,6 @@import React, {useCallback, useEffect, useMemo} from 'react';+import type {SerializedJSONWithCustomFields} from 'remotion';+import {Internals} from 'remotion';import type {z} from 'zod';import {Button} from '../../../preview-server/error-overlay/remotion-overlay/Button';import {FAIL_COLOR} from '../../helpers/colors';@@ -8,8 +10,6 @@ import {RemTextarea} from '../NewComposition/RemTextarea';import {ValidationMessage} from '../NewComposition/ValidationMessage';import type {State} from './DataEditor';import {ZodErrorMessages} from './SchemaEditor/ZodErrorMessages';-import type {SerializedJSONWithCustomFields} from 'remotion';-import {Internals} from 'remotion';const style: React.CSSProperties = {fontFamily: 'monospace',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsxindex 3c4644987a..de3c71a5c0 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/SchemaLabel.tsx@@ -1,12 +1,11 @@import React, {useMemo} from 'react';-import {LIGHT_TEXT} from '../../../helpers/colors';+import {FAIL_COLOR, LIGHT_TEXT} from '../../../helpers/colors';import {Flex} from '../../layout';import {InlineRemoveButton} from '../InlineRemoveButton';import {getSchemaLabel} from './get-schema-label';import {SchemaResetButton} from './SchemaResetButton';import {SchemaSaveButton} from './SchemaSaveButton';import type {JSONPath} from './zod-types';-import {FAIL_COLOR} from '../../../helpers/colors';const compactStyles: React.CSSProperties = {fontSize: 15,diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.tsxindex 4a3f24b1ec..418892cc3e 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.tsx@@ -1,24 +1,24 @@import React, {useCallback, useMemo} from 'react';import type {z} from 'zod';+import {Plus} from '../../../icons/plus';import {useZodIfPossible,useZodTypesIfPossible,} from '../../get-zod-if-possible';+import type {RenderInlineAction} from '../../InlineAction';+import {InlineAction} from '../../InlineAction';+import {fieldsetLabel} from '../layout';import {createZodValues} from './create-zod-values';import {deepEqual} from './deep-equal';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';+import {SchemaLabel} from './SchemaLabel';+import {SchemaSeparationLine} from './SchemaSeparationLine';+import {SchemaVerticalGuide} from './SchemaVerticalGuide';import type {JSONPath} from './zod-types';import {ZodArrayItemEditor} from './ZodArrayItemEditor';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';-import {SchemaVerticalGuide} from './SchemaVerticalGuide';-import {fieldsetLabel} from '../layout';-import {SchemaSeparationLine} from './SchemaSeparationLine';-import type {RenderInlineAction} from '../../InlineAction';-import {InlineAction} from '../../InlineAction';-import {Plus} from '../../../icons/plus';import {ZodFieldValidation} from './ZodFieldValidation';-import {SchemaLabel} from './SchemaLabel';+import type {UpdaterFunction} from './ZodSwitch';export const ZodArrayEditor: React.FC<{schema: z.ZodTypeAny;diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.tsxindex 75f21b5aef..533b8c4922 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.tsx@@ -1,11 +1,11 @@import React, {useCallback} from 'react';+import type {z} from 'zod';import {Checkbox} from '../../Checkbox';+import {Fieldset} from './Fieldset';+import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';-import {useLocalState} from './local-state';-import type {z} from 'zod';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsxindex 3b91e12b73..8b97b714a2 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodColorEditor.tsx@@ -9,12 +9,12 @@ import {Row, Spacing} from '../../layout';import {InputDragger} from '../../NewComposition/InputDragger';import {RemotionInput} from '../../NewComposition/RemInput';import {RemInputTypeColor} from '../../NewComposition/RemInputTypeColor';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodDateEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodDateEditor.tsxindex 7dc094fc57..a6e7306f1b 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodDateEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodDateEditor.tsx@@ -3,12 +3,12 @@ import type {z} from 'zod';import {VERY_LIGHT_TEXT} from '../../../helpers/colors';import {Spacing} from '../../layout';import {RemotionInput} from '../../NewComposition/RemInput';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsxindex 11d9c6361f..3ed6bb1e6d 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx@@ -1,12 +1,12 @@import React from 'react';import type {z} from 'zod';import {useZodIfPossible} from '../../get-zod-if-possible';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import type {JSONPath} from './zod-types';+import {ZodFieldValidation} from './ZodFieldValidation';import type {UpdaterFunction} from './ZodSwitch';import {ZodSwitch} from './ZodSwitch';-import {Fieldset} from './Fieldset';-import {ZodFieldValidation} from './ZodFieldValidation';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.tsxindex 83ace261c3..e96a0d0719 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.tsx@@ -4,12 +4,12 @@ import {Checkmark} from '../../../icons/Checkmark';import {useZodIfPossible} from '../../get-zod-if-possible';import type {ComboboxValue} from '../../NewComposition/ComboBox';import {Combobox} from '../../NewComposition/ComboBox';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const container: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.tsxindex fa87acaace..a9e8260176 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.tsx@@ -1,5 +1,5 @@-import {ValidationMessage} from '../../NewComposition/ValidationMessage';import {Spacing} from '../../layout';+import {ValidationMessage} from '../../NewComposition/ValidationMessage';import {InfoBubble} from '../InfoBubble';import type {LocalState} from './local-state';import type {JSONPath} from './zod-types';diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.tsxindex dd0de7fc1b..bd06e2d247 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.tsx@@ -1,8 +1,8 @@import React, {useCallback} from 'react';import {VERY_LIGHT_TEXT} from '../../../helpers/colors';+import {Fieldset} from './Fieldset';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import {Fieldset} from './Fieldset';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsxindex fdbadac870..b4d002160f 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx@@ -1,12 +1,12 @@import React, {useCallback} from 'react';import type {z} from 'zod';import {InputDragger} from '../../NewComposition/InputDragger';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsxindex 0c861c29e5..f836720b4d 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx@@ -1,17 +1,16 @@-import {useMemo} from 'react';-import React from 'react';+import React, {useMemo} from 'react';import type {z} from 'zod';import {useZodIfPossible} from '../../get-zod-if-possible';+import {fieldsetLabel} from '../layout';+import {deepEqual} from './deep-equal';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';+import {SchemaLabel} from './SchemaLabel';+import {SchemaSeparationLine} from './SchemaSeparationLine';+import {SchemaVerticalGuide} from './SchemaVerticalGuide';import type {JSONPath} from './zod-types';import type {UpdaterFunction} from './ZodSwitch';import {ZodSwitch} from './ZodSwitch';-import {Fieldset} from './Fieldset';-import {SchemaSeparationLine} from './SchemaSeparationLine';-import {fieldsetLabel} from '../layout';-import {SchemaVerticalGuide} from './SchemaVerticalGuide';-import {SchemaLabel} from './SchemaLabel';-import {deepEqual} from './deep-equal';export const ZodObjectEditor: React.FC<{schema: z.ZodTypeAny;diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsxindex ecb87fc8a7..caeadaa618 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx@@ -8,12 +8,12 @@ import {} from '../../get-zod-if-possible';import {Spacing} from '../../layout';import {createZodValues} from './create-zod-values';+import {Fieldset} from './Fieldset';+import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';import type {UpdaterFunction} from './ZodSwitch';import {ZodSwitch} from './ZodSwitch';-import {Fieldset} from './Fieldset';-import {useLocalState} from './local-state';const labelStyle: React.CSSProperties = {fontFamily: 'sans-serif',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsxindex 70a1aabb45..f2ae431f6d 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx@@ -5,12 +5,12 @@ import {Checkmark} from '../../../icons/Checkmark';import {useZodIfPossible} from '../../get-zod-if-possible';import type {ComboboxValue} from '../../NewComposition/ComboBox';import {Combobox} from '../../NewComposition/ComboBox';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const container: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStringEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStringEditor.tsxindex 0ed3aefe30..d1612d5236 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStringEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStringEditor.tsx@@ -2,12 +2,12 @@ import React, {useCallback} from 'react';import type {z} from 'zod';import {useZodIfPossible} from '../../get-zod-if-possible';import {RemotionInput} from '../../NewComposition/RemInput';+import {Fieldset} from './Fieldset';import {useLocalState} from './local-state';import {SchemaLabel} from './SchemaLabel';import type {JSONPath} from './zod-types';-import type {UpdaterFunction} from './ZodSwitch';-import {Fieldset} from './Fieldset';import {ZodFieldValidation} from './ZodFieldValidation';+import type {UpdaterFunction} from './ZodSwitch';const fullWidth: React.CSSProperties = {width: '100%',diff --git a/packages/cli/src/editor/components/RenderQueue/actions.ts b/packages/cli/src/editor/components/RenderQueue/actions.tsindex 6372529274..ff36c4af01 100644--- a/packages/cli/src/editor/components/RenderQueue/actions.ts+++ b/packages/cli/src/editor/components/RenderQueue/actions.ts@@ -6,6 +6,7 @@ import type {StillImageFormat,VideoImageFormat,} from '@remotion/renderer';+import {Internals} from 'remotion';import type {ApiRoutes} from '../../../preview-server/api-types';import type {OpenInFileExplorerRequest,@@ -13,7 +14,6 @@ import type {} from '../../../preview-server/render-queue/job';import type {RequiredChromiumOptions} from '../../../required-chromium-options';import type {EnumPath} from '../RenderModal/SchemaEditor/extract-enum-json-paths';-import {Internals} from 'remotion';const callApi = <Endpoint extends keyof ApiRoutes>(endpoint: Endpoint,diff --git a/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx b/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsxindex 3c61a1e96c..bec3d2f2d8 100644--- a/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx+++ b/packages/cli/src/editor/components/Timeline/TimelineDragHandler.tsx@@ -16,6 +16,7 @@ import {} from '../../state/in-out';import {TimelineZoomCtx} from '../../state/timeline-zoom';import {VERTICAL_SCROLLBAR_CLASSNAME} from '../Menu/is-menu-item';+import {defaultInOutValue} from '../TimelineInOutToggle';import {scrollableRef, sliderAreaRef} from './timeline-refs';import {canScrollTimelineIntoDirection,@@ -34,7 +35,6 @@ import {} from './TimelineInOutPointerHandle';import {redrawTimelineSliderFast} from './TimelineSlider';import {TimelineWidthContext} from './TimelineWidthProvider';-import {defaultInOutValue} from '../TimelineInOutToggle';const inner: React.CSSProperties = {overflowY: 'auto',diff --git a/packages/cli/src/get-composition-id.ts b/packages/cli/src/get-composition-id.tsindex 9eb7fa3116..d0eeae38af 100644--- a/packages/cli/src/get-composition-id.ts+++ b/packages/cli/src/get-composition-id.ts@@ -7,9 +7,9 @@ import type {} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';import type {VideoConfig} from 'remotion';+import {formatBytes} from './format-bytes';import {Log} from './log';import {showSingleCompositionsPicker} from './show-compositions-picker';-import {formatBytes} from './format-bytes';const getCompName = ({cliArgs,diff --git a/packages/cli/src/preview-server/render-queue/make-retry-payload.ts b/packages/cli/src/preview-server/render-queue/make-retry-payload.tsindex 920a6bee0d..48de3bbd38 100644--- a/packages/cli/src/preview-server/render-queue/make-retry-payload.ts+++ b/packages/cli/src/preview-server/render-queue/make-retry-payload.ts@@ -4,10 +4,10 @@ import type {PixelFormat,ProResProfile,} from '@remotion/renderer';+import {Internals} from 'remotion';import type {RenderModalState} from '../../editor/state/modals';import {getDefaultCodecs} from './get-default-video-contexts';import type {RenderJob} from './job';-import {Internals} from 'remotion';export const makeRetryPayload = (job: RenderJob): RenderModalState => {const defaults = window.remotion_renderDefaults;diff --git a/packages/cli/src/preview-server/routes/update-default-props.ts b/packages/cli/src/preview-server/routes/update-default-props.tsindex 8f6355929f..da28eeb3fe 100644--- a/packages/cli/src/preview-server/routes/update-default-props.ts+++ b/packages/cli/src/preview-server/routes/update-default-props.ts@@ -1,4 +1,5 @@import {readFileSync, writeFileSync} from 'node:fs';+import {Internals} from 'remotion';import {updateDefaultProps} from '../../codemods/update-default-props';import type {ApiHandler} from '../api-types';import {getProjectInfo} from '../project-info';@@ -7,7 +8,6 @@ import type {UpdateDefaultPropsResponse,} from '../render-queue/job';import {checkIfTypeScriptFile} from './can-update-default-props';-import {Internals} from 'remotion';export const updateDefaultPropsHandler: ApiHandler<UpdateDefaultPropsRequest,diff --git a/packages/cli/src/print-compositions.ts b/packages/cli/src/print-compositions.tsindex 93637a09f3..970801df5a 100644--- a/packages/cli/src/print-compositions.ts+++ b/packages/cli/src/print-compositions.ts@@ -1,6 +1,6 @@+import type {VideoConfig} from 'remotion';import {Log} from './log';import {quietFlagProvided} from './parse-command-line';-import type {VideoConfig} from 'remotion';const max = (arr: number[]) => {if (arr.length === 0) {diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.tsindex a108b1ac2f..dc5230a4ab 100644--- a/packages/cli/src/render-flows/render.ts+++ b/packages/cli/src/render-flows/render.ts@@ -18,6 +18,7 @@ import {RenderInternals} from '@remotion/renderer';import fs, {existsSync} from 'node:fs';import os from 'node:os';import path from 'node:path';+import {Internals} from 'remotion';import {chalk} from '../chalk';import {ConfigInternals} from '../config';import type {Loop} from '../config/number-of-gif-loops';@@ -45,7 +46,6 @@ import {shouldUseNonOverlayingLogger} from '../should-use-non-overlaying-logger'import type {RenderStep} from '../step';import {truthy} from '../truthy';import {getUserPassedOutputLocation} from '../user-passed-output-location';-import {Internals} from 'remotion';export const renderVideoFlow = async ({remotionRoot,diff --git a/packages/cli/src/render-flows/still.ts b/packages/cli/src/render-flows/still.tsindex 384ced964a..73b14fc4e5 100644--- a/packages/cli/src/render-flows/still.ts+++ b/packages/cli/src/render-flows/still.ts@@ -12,6 +12,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import {existsSync, mkdirSync} from 'node:fs';import path from 'node:path';+import {Internals} from 'remotion';import {chalk} from '../chalk';import {registerCleanupJob} from '../cleanup-before-quit';import {ConfigInternals} from '../config';@@ -39,7 +40,6 @@ import {getOutputLocation,getUserPassedOutputLocation,} from '../user-passed-output-location';-import {Internals} from 'remotion';export const renderStillFlow = async ({remotionRoot,diff --git a/packages/zod-types/src/index.ts b/packages/zod-types/src/index.tsindex c9bfbbefd9..8a2993a299 100644--- a/packages/zod-types/src/index.ts+++ b/packages/zod-types/src/index.ts@@ -1,4 +1,4 @@-import {REMOTION_COLOR_BRAND, parseColor} from './z-color.js';+import {parseColor, REMOTION_COLOR_BRAND} from './z-color.js';export {zColor} from './z-color.js';diff --git a/packages/zod-types/src/z-color.ts b/packages/zod-types/src/z-color.tsindex 6819690ea0..cab62af4a6 100644--- a/packages/zod-types/src/z-color.ts+++ b/packages/zod-types/src/z-color.ts@@ -1,5 +1,5 @@-import {z} from 'zod';import {Internals} from 'remotion';+import {z} from 'zod';export const REMOTION_COLOR_BRAND = '__remotion-color';