🎥 Make videos programmatically with React
no-react
Jonny Burgera93022f75994
diff --git a/packages/cli/.eslintrc b/packages/cli/.eslintrcindex 6f29024be8..4b2d2ae808 100644--- a/packages/cli/.eslintrc+++ b/packages/cli/.eslintrc@@ -5,7 +5,7 @@"no-restricted-imports": ["error",{- "patterns": ["@remotion/*/src/*"]+ "patterns": ["@remotion/*/src/*", "remotion/src/*"]}],"@typescript-eslint/no-use-before-define": "off",@@ -34,7 +34,7 @@"no-restricted-imports": ["error",{- "patterns": ["@remotion/*/src/*"]+ "patterns": ["@remotion/*/src/*", "remotion/src/*"]}]}@@ -45,7 +45,7 @@"no-restricted-imports": ["error",{- "patterns": ["@remotion/*/src/*"]+ "patterns": ["@remotion/*/src/*", "remotion/src/*"]}]}diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.tsindex 18a7932727..d0291c01a2 100644--- a/packages/cli/src/benchmark.ts+++ b/packages/cli/src/benchmark.ts@@ -1,6 +1,6 @@import type {InternalRenderMediaOptions, LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {chalk} from './chalk';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.tsindex 6bb82be27c..2ef1d257af 100644--- a/packages/cli/src/compositions.ts+++ b/packages/cli/src/compositions.ts@@ -1,6 +1,6 @@import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';import {findEntryPoint} from './entry-point';diff --git a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx b/packages/cli/src/editor/components/RenderModal/DataEditor.tsxindex 47dcefc1d0..ddd3968fff 100644--- a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/DataEditor.tsx@@ -7,7 +7,7 @@ import React, {} from 'react';import type {AnyComposition, SerializedJSONWithCustomFields} from 'remotion';import {getInputProps, Internals} from 'remotion';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {z} from 'zod';import {subscribeToEvent} from '../../../event-source';import {StudioServerConnectionCtx} from '../../helpers/client-id';diff --git a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsxindex 31d69bbd10..5b7069a546 100644--- a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx@@ -1,6 +1,6 @@import React, {useCallback, useEffect, useMemo} from 'react';import type {SerializedJSONWithCustomFields} from 'remotion';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {z} from 'zod';import {Button} from '../../../preview-server/error-overlay/remotion-overlay/Button';import {FAIL_COLOR} from '../../helpers/colors';diff --git a/packages/cli/src/editor/components/RenderQueue/actions.ts b/packages/cli/src/editor/components/RenderQueue/actions.tsindex da6015dcab..8cb16f24c6 100644--- a/packages/cli/src/editor/components/RenderQueue/actions.ts+++ b/packages/cli/src/editor/components/RenderQueue/actions.ts@@ -9,7 +9,7 @@ import type {VideoImageFormat,X264Preset,} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {ApiRoutes} from '../../../preview-server/api-types';import type {CopyStillToClipboardRequest,diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.tsindex e1fc739791..b68fcd8fda 100644--- a/packages/cli/src/render-flows/render.ts+++ b/packages/cli/src/render-flows/render.ts@@ -20,7 +20,7 @@ import {RenderInternals} from '@remotion/renderer';import fs, {existsSync} from 'node:fs';import os from 'node:os';import path from 'node:path';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {chalk} from '../chalk';import {ConfigInternals} from '../config';import type {Loop} from '../config/number-of-gif-loops';diff --git a/packages/cli/src/render-flows/still.ts b/packages/cli/src/render-flows/still.tsindex 031c2d8887..f1bb6d0bd0 100644--- a/packages/cli/src/render-flows/still.ts+++ b/packages/cli/src/render-flows/still.ts@@ -12,7 +12,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import {existsSync, mkdirSync} from 'node:fs';import path from 'node:path';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {chalk} from '../chalk';import {registerCleanupJob} from '../cleanup-before-quit';import {ConfigInternals} from '../config';diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 91f6b67623..152047e9bd 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -1,6 +1,6 @@// eslint-disable-next-line no-restricted-importsimport type {LogLevel} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {ConfigInternals} from './config';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex e4b3f9a5ac..da15387f99 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -1,5 +1,5 @@import type {LogLevel} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {registerCleanupJob} from './cleanup-before-quit';import {getRendererPortFromConfigFileAndCliFlag} from './config/preview-server';import {convertEntryPointToServeUrl} from './convert-entry-point-to-serve-url';diff --git a/packages/cloudrun/.eslintrc b/packages/cloudrun/.eslintrcindex 6e9a0dc0ea..06392c3b4c 100644--- a/packages/cloudrun/.eslintrc+++ b/packages/cloudrun/.eslintrc@@ -8,7 +8,8 @@"patterns": ["@remotion/*/src/*","@remotion/renderer/*/src/*",- "@remotion/cli/*/src/*"+ "@remotion/cli/*/src/*",+ "remotion/src/*"]}],diff --git a/packages/cloudrun/src/api/render-media-on-cloudrun.ts b/packages/cloudrun/src/api/render-media-on-cloudrun.tsindex bbc6e21b82..013b1c114e 100644--- a/packages/cloudrun/src/api/render-media-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-media-on-cloudrun.ts@@ -14,7 +14,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import type {BrowserSafeApis} from '@remotion/renderer/client';import {PureJSAPIs} from '@remotion/renderer/pure';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {CloudRunCrashResponse,CloudRunPayloadType,diff --git a/packages/cloudrun/src/api/render-still-on-cloudrun.ts b/packages/cloudrun/src/api/render-still-on-cloudrun.tsindex 51751ecf08..0db8e16b1b 100644--- a/packages/cloudrun/src/api/render-still-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-still-on-cloudrun.ts@@ -7,7 +7,7 @@ import type {import {RenderInternals} from '@remotion/renderer';import type {BrowserSafeApis} from '@remotion/renderer/client';import {PureJSAPIs} from '@remotion/renderer/pure';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {CloudRunCrashResponse,CloudRunPayloadType,diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex b4e26d18b8..d82e82acc1 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -2,7 +2,7 @@ import {CliInternals} from '@remotion/cli';import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {downloadFile} from '../../../api/download-file';import {internalRenderMediaOnCloudrun} from '../../../api/render-media-on-cloudrun';import type {CloudrunCodec} from '../../../shared/validate-gcp-codec';diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex cd0b63013b..c3642b8d36 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -2,7 +2,7 @@ import {CliInternals} from '@remotion/cli';import {ConfigInternals} from '@remotion/cli/config';import type {LogLevel} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {downloadFile} from '../../api/download-file';import {renderStillOnCloudrun} from '../../api/render-still-on-cloudrun';import {validateServeUrl} from '../../shared/validate-serveurl';diff --git a/packages/cloudrun/src/functions/render-media-single-thread.ts b/packages/cloudrun/src/functions/render-media-single-thread.tsindex e56b9ae495..19f9c637a6 100644--- a/packages/cloudrun/src/functions/render-media-single-thread.ts+++ b/packages/cloudrun/src/functions/render-media-single-thread.ts@@ -2,7 +2,7 @@ import type * as ff from '@google-cloud/functions-framework';import {Storage} from '@google-cloud/storage';import type {ChromiumOptions, RenderMediaOnProgress} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {randomHash} from '../shared/random-hash';import {getCompositionFromBody} from './helpers/get-composition-from-body';import type {diff --git a/packages/cloudrun/src/functions/render-still-single-thread.ts b/packages/cloudrun/src/functions/render-still-single-thread.tsindex bd9c9d6d1b..cea78a7dd7 100644--- a/packages/cloudrun/src/functions/render-still-single-thread.ts+++ b/packages/cloudrun/src/functions/render-still-single-thread.ts@@ -2,7 +2,7 @@ import type * as ff from '@google-cloud/functions-framework';import {Storage} from '@google-cloud/storage';import type {ChromiumOptions} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import {Log} from '../cli/log';import {randomHash} from '../shared/random-hash';import {getCompositionFromBody} from './helpers/get-composition-from-body';diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.tsindex 246ac4388c..0eb9bf7a8c 100644--- a/packages/lambda/src/functions/helpers/get-progress.ts+++ b/packages/lambda/src/functions/helpers/get-progress.ts@@ -1,5 +1,5 @@import {RenderInternals} from '@remotion/renderer';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {AwsRegion} from '../../pricing/aws-regions';import type {CustomCredentials} from '../../shared/aws-clients';import type {RenderProgress} from '../../shared/constants';diff --git a/packages/lambda/src/functions/helpers/inspect-errors.ts b/packages/lambda/src/functions/helpers/inspect-errors.tsindex 13551b71e6..9a688c8eb8 100644--- a/packages/lambda/src/functions/helpers/inspect-errors.ts+++ b/packages/lambda/src/functions/helpers/inspect-errors.ts@@ -1,5 +1,5 @@import type {_Object} from '@aws-sdk/client-s3';-import {NoReactInternals} from 'remotion/src/no-react';+import {NoReactInternals} from 'remotion/no-react';import type {AwsRegion} from '../../pricing/aws-regions';import {getErrorKeyPrefix} from '../../shared/constants';import {DOCS_URL} from '../../shared/docs-url';