🎥 Make videos programmatically with React
Merge remote-tracking branch 'origin/main' into codex/typescript-7-1-beta
Jonny Burger665ff1f71360
diff --cc bun.lockindex 6058306301,14ab5d07ad..ff12336bb3--- a/bun.lock+++ b/bun.lock@@@ -253,20 -255,20 +253,20 @@@},"packages/captions": {"name": "@remotion/captions",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/claude-code-plugin": {"name": "@remotion/claude-code-plugin",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/cli": {@@@ -678,10 -681,10 +678,10 @@@},"packages/docusaurus-plugin": {"name": "@remotion/docusaurus-plugin",- "version": "4.0.536",+ "version": "4.0.537","dependencies": {"@docusaurus/types": "3.6.0",- "@shikijs/twoslash": "3.22.0",+ "@remotion/typescript-tools": "workspace:*","@types/dom-webcodecs": "catalog:","fenceparser": "2.2.0","shiki": "3.22.0",@@@ -702,9 -706,10 +702,10 @@@},"devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","@vitest/browser-playwright": "catalog:",+ "@webgpu/types": "0.1.74","eslint": "catalog:",+ "typescript": "catalog:","vitest": "catalog:",},},@@@ -758,10 -763,9 +759,10 @@@},"packages/eslint-config-flat": {"name": "@remotion/eslint-config-flat",- "version": "4.0.536",+ "version": "4.0.537","dependencies": {"eslint-plugin-react-hooks": "7.1.1",+ "typescript": "5.9.3","typescript-eslint": "8.71.2",},"devDependencies": {@@@ -796,12 -802,12 +797,12 @@@},"packages/eslint-plugin": {"name": "@remotion/eslint-plugin",- "version": "4.0.536",+ "version": "4.0.537","dependencies": {"@typescript-eslint/utils": "5.19.0",+ "typescript": "5.9.3",},"devDependencies": {- "@typescript/native-preview": "catalog:","eslint": "8.57.0","eslint-v10": "npm:[email protected]","eslint-v9": "npm:[email protected]",@@@ -909,9 -914,10 +910,9 @@@},"packages/example-videos": {"name": "@remotion/example-videos",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","dotenv": "17.3.1","eslint": "catalog:","prettier": "catalog:",@@@ -1095,11 -1098,11 +1094,11 @@@},"packages/kimi-code-plugin": {"name": "@remotion/kimi-code-plugin",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/lambda": {@@@ -1158,14 -1161,16 +1157,16 @@@"@aws-sdk/lib-storage": "catalog:","@aws-sdk/s3-request-presigner": "catalog:","@remotion/eslint-config-internal": "workspace:*",- "@remotion/serverless-client": "workspace:*",+ "@remotion/renderer": "workspace:*",+ "@remotion/streaming": "workspace:*","@types/express": "5.0.1","@types/mime-types": "2.1.1",- "@typescript/native-preview": "catalog:","eslint": "catalog:","express": "4.21.0","mime-types": "2.1.34","next": "catalog:",+ "remotion": "workspace:*",+ "typescript": "catalog:",},},"packages/lambda-go": {@@@ -1205,9 -1210,10 +1206,9 @@@},"packages/layout-utils": {"name": "@remotion/layout-utils",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","@vitejs/plugin-react": "catalog:","@vitest/browser-playwright": "catalog:","eslint": "catalog:",@@@ -1221,9 -1226,10 +1222,9 @@@},"packages/licensing": {"name": "@remotion/licensing",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:","msw": "2.12.7","remotion": "workspace:*",@@@ -1503,11 -1508,11 +1504,11 @@@},"packages/preload": {"name": "@remotion/preload",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/promo-pages": {@@@ -1720,40 -1724,13 +1721,13 @@@"react-dom": ">=16.8.0",},},- "packages/serverless": {- "name": "@remotion/serverless",- "version": "4.0.536",- "dependencies": {- "@remotion/bundler": "workspace:*",- "@remotion/licensing": "workspace:*",- "@remotion/renderer": "workspace:*",- "@remotion/serverless-client": "workspace:*",- },- "devDependencies": {- "@remotion/eslint-config-internal": "workspace:*",- "eslint": "catalog:",- "typescript": "catalog:",- },- },- "packages/serverless-client": {- "name": "@remotion/serverless-client",- "version": "4.0.536",- "devDependencies": {- "@remotion/eslint-config-internal": "workspace:*",- "@remotion/renderer": "workspace:*",- "@remotion/streaming": "workspace:*",- "eslint": "catalog:",- "remotion": "workspace:*",- "typescript": "catalog:",- },- },"packages/sfx": {"name": "@remotion/sfx",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/shapes": {@@@ -1857,11 -1834,11 +1831,11 @@@},"packages/streaming": {"name": "@remotion/streaming",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:",+ "typescript": "catalog:",},},"packages/studio": {@@@ -2692,9 -2705,10 +2701,9 @@@},"packages/test-utils": {"name": "@remotion/test-utils",- "version": "4.0.536",+ "version": "4.0.537","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","eslint": "catalog:","react": "catalog:","react-dom": "catalog:",@@@ -2767,21 -2780,9 +2776,21 @@@"react-dom": ">=16.8.0",},},+ "packages/typescript-tools": {+ "name": "@remotion/typescript-tools",- "version": "4.0.536",++ "version": "4.0.537",+ "dependencies": {+ "@shikijs/twoslash": "3.22.0",+ "@typescript-eslint/eslint-plugin": "8.71.2",+ "@typescript-eslint/parser": "8.71.2",+ "eslint": "catalog:",+ "twoslash": "0.3.6",+ "typescript": "5.9.3",+ },+ },"packages/vercel": {"name": "@remotion/vercel",- "version": "4.0.536",+ "version": "4.0.537","dependencies": {"@remotion/renderer": "workspace:*","remotion": "workspace:*",@@@ -12749,10 -12730,18 +12786,20 @@@"template-electron/tailwindcss": ["[email protected]", "", {}, "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw=="],+ "template-electron/typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],+"template-electron/vite": ["[email protected]", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A=="],+ "template-element-library/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-QWlFW2wf3nTjC13/DqRnBpR4ZO36VJH/JVBkA/vcnmbTBNQIlnObqyqZE1tUR7+Ni23Lda8R1BxMfbXRpCUx5g=="],++ "template-element-library/eslint": ["[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", "@eslint/config-array": "^0.23.5", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.14.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^9.1.2", "eslint-visitor-keys": "^5.0.1", "espree": "^11.2.0", "esquery": "^1.7.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "11.1.5 || >11.1.6 <12", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "minimatch": "^10.2.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-npHjrHb2o4ehH3mE+YuxABR+0gyb0aVWCIolgJDArwCiHEIsonBm3ZKjel5b0U5+a+MbEvIyRCGCzD3eKKK2NA=="],++ "template-element-library/isbot": ["[email protected]", "", {}, "sha512-yNeeynhhtIVRBk12tBV4eHNxwB42HzR4Q3Ea7vCOiJhImGaAIdIMrbJtacQlBizGLjUPw+akkFI5Dn9T70XoVQ=="],++ "template-element-library/tailwindcss": ["[email protected]", "", {}, "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ=="],++ "template-element-library/vite": ["[email protected]", "", { "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", "postcss": "^8.5.29", "rolldown": "~1.2.12", "tinyglobby": "^0.2.17" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "@vitejs/devtools": "^0.7.1", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "@vitejs/devtools", "esbuild", "jiti", "less", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ=="],+"template-empty/eslint": ["[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", "@eslint/config-array": "^0.23.5", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.14.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^9.1.2", "eslint-visitor-keys": "^5.0.1", "espree": "^11.2.0", "esquery": "^1.7.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "11.1.5 || >11.1.6 <12", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "minimatch": "^10.2.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-npHjrHb2o4ehH3mE+YuxABR+0gyb0aVWCIolgJDArwCiHEIsonBm3ZKjel5b0U5+a+MbEvIyRCGCzD3eKKK2NA=="],"template-empty/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],@@@ -12827,8 -12806,8 +12874,10 @@@"template-prompt-to-motion-graphics/tailwindcss": ["[email protected]", "", {}, "sha512-yYzTZ4++b7fNYxFfpnberEEKu43w44aqDMNM9MHMmcKuCH7lL8jJ4yJ7LGHv7rSwiqM0nkiobF9I6cLlpS2P7Q=="],+ "template-prompt-to-motion-graphics/typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],++ "template-react-router/@tailwindcss/vite": ["@tailwindcss/[email protected]", "", { "dependencies": { "@tailwindcss/node": "4.2.0", "@tailwindcss/oxide": "4.2.0", "tailwindcss": "4.2.0" }, "peerDependencies": { "vite": "^5.2.0 || ^6 || ^7" } }, "sha512-da9mFCaHpoOgtQiWtDGIikTrSpUFBtIZCG3jy/u2BGV+l/X1/pbxzmIUxNt6JWm19N3WtGi4KlJdSH/Si83WOA=="],+"template-react-router/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-QWlFW2wf3nTjC13/DqRnBpR4ZO36VJH/JVBkA/vcnmbTBNQIlnObqyqZE1tUR7+Ni23Lda8R1BxMfbXRpCUx5g=="],"template-react-router/eslint": ["[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", "@eslint/config-array": "^0.23.5", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.14.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^9.1.2", "eslint-visitor-keys": "^5.0.1", "espree": "^11.2.0", "esquery": "^1.7.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "11.1.5 || >11.1.6 <12", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "minimatch": "^10.2.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-npHjrHb2o4ehH3mE+YuxABR+0gyb0aVWCIolgJDArwCiHEIsonBm3ZKjel5b0U5+a+MbEvIyRCGCzD3eKKK2NA=="],diff --cc packages/effects/package.jsonindex bf4e5b5f9e,fa8715b7c2..87c73ae835--- a/packages/effects/package.json+++ b/packages/effects/package.json@@@ -627,10 -683,11 +683,11 @@@"homepage": "https://www.remotion.dev/docs/effects/api","devDependencies": {"@remotion/eslint-config-internal": "workspace:*",- "@typescript/native-preview": "catalog:","@vitest/browser-playwright": "catalog:",+ "@webgpu/types": "0.1.74","eslint": "catalog:",- "vitest": "catalog:"+ "vitest": "catalog:",+ "typescript": "catalog:"},"keywords": ["remotion",diff --cc packages/studio-protocol/src/effect-drag-data.tsindex e601d8fddd,b3c2bd1184..1479c0e622--- a/packages/studio-protocol/src/effect-drag-data.ts+++ b/packages/studio-protocol/src/effect-drag-data.ts@@@ -22,9 -22,8 +22,10 @@@ export type EffectDragData =};};-const effectConfigSchema = z.record(z.string(), z.json());+// TypeScript 7.1 beta cannot expand Zod's recursive JSON schema internals.+const jsonSchema = z.json() as unknown as z.ZodMiniType<z.JSONType, z.JSONType>;+const effectConfigSchema = z.record(z.string(), jsonSchema);+const effectDragDataSchema = z.object({type: z.literal('remotion-effect'),version: z.literal(1),diff --cc packages/studio-server/src/preview-server/routes/can-update-default-props.tsindex 38dcf211bb,57ad1e595b..a6bb3b8770--- a/packages/studio-server/src/preview-server/routes/can-update-default-props.ts+++ b/packages/studio-server/src/preview-server/routes/can-update-default-props.ts@@@ -1,11 -1,13 +1,15 @@@import {readFileSync} from 'node:fs';import {CodemodsInternals} from '@remotion/codemods';- import type {CanUpdateDefaultPropsResponse} from '@remotion/studio-shared';+ import type {+ CanUpdateDefaultPropsResponse,+ SymbolicatedStackFrame,+ } from '@remotion/studio-shared';+ import {resolveFileInsideProject} from '../../helpers/resolve-file-inside-project';import {getProjectInfo} from '../project-info';-export const {computeCanUpdateDefaultPropsFromContent} = CodemodsInternals;+export const {+ computeCanUpdateDefaultPropsFromContent,+}: typeof CodemodsInternals = CodemodsInternals;export const checkIfTypeScriptFile = (file: string) => {if (diff --cc packages/typescript-tools/package.jsonindex 07359c4454,0000000000..3320fa97a8mode 100644,000000..100644--- a/packages/typescript-tools/package.json+++ b/packages/typescript-tools/package.json@@@ -1,38 -1,0 +1,38 @@@+{+ "name": "@remotion/typescript-tools",- "version": "4.0.536",++ "version": "4.0.537",+ "private": true,+ "description": "Isolated TypeScript 5 compiler API tools for the monorepo.",+ "license": "UNLICENSED",+ "exports": {+ "./package.json": "./package.json",+ "./typescript": {+ "types": "./typescript.d.ts",+ "default": "./typescript.js"+ },+ "./eslint-plugin": {+ "types": "./eslint-plugin.d.ts",+ "default": "./eslint-plugin.js"+ },+ "./eslint-parser": {+ "types": "./eslint-parser.d.ts",+ "default": "./eslint-parser.js"+ },+ "./twoslash": {+ "types": "./twoslash.d.ts",+ "default": "./twoslash.mjs"+ },+ "./shiki-twoslash": {+ "types": "./shiki-twoslash.d.ts",+ "default": "./shiki-twoslash.mjs"+ }+ },+ "dependencies": {+ "@shikijs/twoslash": "3.22.0",+ "@typescript-eslint/eslint-plugin": "8.71.2",+ "@typescript-eslint/parser": "8.71.2",+ "eslint": "catalog:",+ "twoslash": "0.3.6",+ "typescript": "5.9.3"+ }+}