🎥 Make videos programmatically with React
fixes
Jonny Burger8ae60c23ddf6
diff --git a/packages/docs/.eslintrc b/packages/docs/.eslintrcdeleted file mode 100644index 3427396b2b..0000000000--- a/packages/docs/.eslintrc+++ /dev/null@@ -1,3 +0,0 @@-{- "extends": ["@remotion/internal/react"],-}diff --git a/packages/docs/components/3DPhone/Phone.tsx b/packages/docs/components/3DPhone/Phone.tsxindex bef72fe3b9..d336ead4ff 100644--- a/packages/docs/components/3DPhone/Phone.tsx+++ b/packages/docs/components/3DPhone/Phone.tsx@@ -1,112 +1,112 @@/* eslint-disable react/no-unknown-property */-import { useThree } from "@react-three/fiber";-import React, { useEffect, useMemo } from "react";-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";-import type { VideoTexture } from "three";+import {useThree} from '@react-three/fiber';+import React, {useEffect, useMemo} from 'react';+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';+import type {VideoTexture} from 'three';import {- CAMERA_DISTANCE,- getPhoneLayout,- PHONE_COLOR,- PHONE_CURVE_SEGMENTS,- PHONE_SHININESS,-} from "./helpers/constants";-import { roundedRect } from "./helpers/rounded-rectangle";-import { RoundedBox } from "./RoundedBox";+ CAMERA_DISTANCE,+ getPhoneLayout,+ PHONE_COLOR,+ PHONE_CURVE_SEGMENTS,+ PHONE_SHININESS,+} from './helpers/constants';+import {roundedRect} from './helpers/rounded-rectangle';+import {RoundedBox} from './RoundedBox';export const Phone: React.FC<{- videoTexture: VideoTexture | null;- aspectRatio: number;- baseScale: number;-}> = ({ aspectRatio, videoTexture, baseScale }) => {- const frame = useCurrentFrame();- const { fps, durationInFrames } = useVideoConfig();+ readonly videoTexture: VideoTexture | null;+ readonly aspectRatio: number;+ readonly baseScale: number;+}> = ({aspectRatio, videoTexture, baseScale}) => {+ const frame = useCurrentFrame();+ const {fps, durationInFrames} = useVideoConfig();- const layout = useMemo(- () => getPhoneLayout(aspectRatio, baseScale),- [aspectRatio, baseScale]- );+ const layout = useMemo(+ () => getPhoneLayout(aspectRatio, baseScale),+ [aspectRatio, baseScale],+ );- // Place a camera and set the distance to the object.- // Then make it look at the object.- const camera = useThree((state) => state.camera);- useEffect(() => {- camera.position.set(0, 0, CAMERA_DISTANCE);- camera.near = 0.2;- camera.far = Math.max(5000, CAMERA_DISTANCE * 2);- camera.lookAt(0, 0, 0);- }, [camera]);+ // Place a camera and set the distance to the object.+ // Then make it look at the object.+ const camera = useThree((state) => state.camera);+ useEffect(() => {+ camera.position.set(0, 0, CAMERA_DISTANCE);+ camera.near = 0.2;+ camera.far = Math.max(5000, CAMERA_DISTANCE * 2);+ camera.lookAt(0, 0, 0);+ }, [camera]);- // Make the video fill the phone texture- useEffect(() => {- if (videoTexture) {- videoTexture.repeat.y = 1 / layout.screen.height;- videoTexture.repeat.x = 1 / layout.screen.width;- }- }, [aspectRatio, layout.screen.height, layout.screen.width, videoTexture]);+ // Make the video fill the phone texture+ useEffect(() => {+ if (videoTexture) {+ videoTexture.repeat.y = 1 / layout.screen.height;+ videoTexture.repeat.x = 1 / layout.screen.width;+ }+ }, [aspectRatio, layout.screen.height, layout.screen.width, videoTexture]);- // During the whole scene, the phone is rotating.- // 2 * Math.PI is a full rotation.- const constantRotation = interpolate(- frame,- [0, durationInFrames],- [0, Math.PI * 6]- );+ // During the whole scene, the phone is rotating.+ // 2 * Math.PI is a full rotation.+ const constantRotation = interpolate(+ frame,+ [0, durationInFrames],+ [0, Math.PI * 6],+ );- // When the composition starts, there is some extra- // rotation and translation.- const entranceAnimation = spring({- frame,- fps,- config: {- damping: 200,- mass: 3,- },- });+ // When the composition starts, there is some extra+ // rotation and translation.+ const entranceAnimation = spring({+ frame,+ fps,+ config: {+ damping: 200,+ mass: 3,+ },+ });- // Calculate the entrance rotation,- // doing one full spin- const entranceRotation = interpolate(- entranceAnimation,- [0, 1],- [-Math.PI, Math.PI]- );+ // Calculate the entrance rotation,+ // doing one full spin+ const entranceRotation = interpolate(+ entranceAnimation,+ [0, 1],+ [-Math.PI, Math.PI],+ );- // Calculating the total rotation of the phone- const rotateY = entranceRotation + constantRotation;+ // Calculating the total rotation of the phone+ const rotateY = entranceRotation + constantRotation;- // Calculating the translation of the phone at the beginning.- // The start position of the phone is set to 4 "units"- const translateY = interpolate(entranceAnimation, [0, 1], [-4, 0]);+ // Calculating the translation of the phone at the beginning.+ // The start position of the phone is set to 4 "units"+ const translateY = interpolate(entranceAnimation, [0, 1], [-4, 0]);- // Calculate a rounded rectangle for the phone screen- const screenGeometry = useMemo(() => {- return roundedRect({- width: layout.screen.width,- height: layout.screen.height,- radius: layout.screen.radius,- });- }, [layout.screen.height, layout.screen.radius, layout.screen.width]);+ // Calculate a rounded rectangle for the phone screen+ const screenGeometry = useMemo(() => {+ return roundedRect({+ width: layout.screen.width,+ height: layout.screen.height,+ radius: layout.screen.radius,+ });+ }, [layout.screen.height, layout.screen.radius, layout.screen.width]);- return (- <group- scale={entranceAnimation}- rotation={[0, rotateY, 0]}- position={[0, translateY, 0]}- >- <RoundedBox- radius={layout.phone.radius}- depth={layout.phone.thickness}- curveSegments={PHONE_CURVE_SEGMENTS}- position={layout.phone.position}- width={layout.phone.width}- height={layout.phone.height}- >- <meshPhongMaterial color={PHONE_COLOR} shininess={PHONE_SHININESS} />- </RoundedBox>- <mesh position={layout.screen.position}>- <shapeGeometry args={[screenGeometry]} />- {videoTexture ? <meshBasicMaterial map={videoTexture} /> : null}- </mesh>- </group>- );+ return (+ <group+ scale={entranceAnimation}+ rotation={[0, rotateY, 0]}+ position={[0, translateY, 0]}+ >+ <RoundedBox+ radius={layout.phone.radius}+ depth={layout.phone.thickness}+ curveSegments={PHONE_CURVE_SEGMENTS}+ position={layout.phone.position}+ width={layout.phone.width}+ height={layout.phone.height}+ >+ <meshPhongMaterial color={PHONE_COLOR} shininess={PHONE_SHININESS} />+ </RoundedBox>+ <mesh position={layout.screen.position}>+ <shapeGeometry args={[screenGeometry]} />+ {videoTexture ? <meshBasicMaterial map={videoTexture} /> : null}+ </mesh>+ </group>+ );};diff --git a/packages/docs/components/3DPhone/RoundedBox.tsx b/packages/docs/components/3DPhone/RoundedBox.tsxindex 91902cfa97..fa2f5a5e2c 100644--- a/packages/docs/components/3DPhone/RoundedBox.tsx+++ b/packages/docs/components/3DPhone/RoundedBox.tsx@@ -1,46 +1,46 @@/* eslint-disable react/no-unknown-property */-import type { Vector3 } from "@react-three/fiber";-import React, { useMemo } from "react";-import { roundedRect } from "./helpers/rounded-rectangle";+import type {Vector3} from '@react-three/fiber';+import React, {useMemo} from 'react';+import {roundedRect} from './helpers/rounded-rectangle';type Props = {- width: number;- height: number;- radius: number;- curveSegments: number;- depth: number;- position: Vector3;-} & Omit<JSX.IntrinsicElements["mesh"], "args" | "position">;+ readonly width: number;+ readonly height: number;+ readonly radius: number;+ readonly curveSegments: number;+ readonly depth: number;+ readonly position: Vector3;+} & Omit<JSX.IntrinsicElements['mesh'], 'args' | 'position'>;export const RoundedBox: React.FC<Props> = ({- width,- height,- radius,- curveSegments,- children,- depth,- ...otherProps+ width,+ height,+ radius,+ curveSegments,+ children,+ depth,+ ...otherProps}) => {- const shape = useMemo(- () => roundedRect({ width, height, radius }),- [height, radius, width]- );+ const shape = useMemo(+ () => roundedRect({width, height, radius}),+ [height, radius, width],+ );- const params = useMemo(- () => ({- depth,- bevelEnabled: true,- bevelSize: 0,- bevelThickness: 0,- curveSegments,- }),- [curveSegments, depth]- );+ const params = useMemo(+ () => ({+ depth,+ bevelEnabled: true,+ bevelSize: 0,+ bevelThickness: 0,+ curveSegments,+ }),+ [curveSegments, depth],+ );- return (- <mesh {...otherProps}>- <extrudeGeometry attach="geometry" args={[shape, params]} />- {children}- </mesh>- );+ return (+ <mesh {...otherProps}>+ <extrudeGeometry attach="geometry" args={[shape, params]} />+ {children}+ </mesh>+ );};diff --git a/packages/docs/components/3DPhone/Scene.tsx b/packages/docs/components/3DPhone/Scene.tsxindex 879decd44c..f6f0d734bb 100644--- a/packages/docs/components/3DPhone/Scene.tsx+++ b/packages/docs/components/3DPhone/Scene.tsx@@ -1,45 +1,45 @@/* eslint-disable react/no-unknown-property */-import type { VideoMetadata } from "@remotion/media-utils";-import { getVideoMetadata } from "@remotion/media-utils";-import { ThreeCanvas, useVideoTexture } from "@remotion/three";-import React, { useEffect, useRef, useState } from "react";-import { AbsoluteFill, useVideoConfig, Video } from "remotion";-import { Phone } from "./Phone";+import type {VideoMetadata} from '@remotion/media-utils';+import {getVideoMetadata} from '@remotion/media-utils';+import {ThreeCanvas, useVideoTexture} from '@remotion/three';+import React, {useEffect, useRef, useState} from 'react';+import {AbsoluteFill, useVideoConfig, Video} from 'remotion';+import {Phone} from './Phone';const videoStyle: React.CSSProperties = {- position: "absolute",- opacity: 0,+ position: 'absolute',+ opacity: 0,};export const Scene: React.FC<{- videoSrc: string;- baseScale: number;-}> = ({ baseScale, videoSrc }) => {- const videoRef = useRef<HTMLVideoElement>(null);- const { width, height } = useVideoConfig();- const [videoData, setVideoData] = useState<VideoMetadata | null>(null);+ readonly videoSrc: string;+ readonly baseScale: number;+}> = ({baseScale, videoSrc}) => {+ const videoRef = useRef<HTMLVideoElement>(null);+ const {width, height} = useVideoConfig();+ const [videoData, setVideoData] = useState<VideoMetadata | null>(null);- useEffect(() => {- getVideoMetadata(videoSrc)- .then((data) => setVideoData(data))- .catch((err) => console.log(err));- }, [videoSrc]);+ useEffect(() => {+ getVideoMetadata(videoSrc)+ .then((data) => setVideoData(data))+ .catch((err) => console.log(err));+ }, [videoSrc]);- const texture = useVideoTexture(videoRef);- return (- <AbsoluteFill>- <Video ref={videoRef} src={videoSrc} style={videoStyle} />- {videoData ? (- <ThreeCanvas width={width} height={height}>- <ambientLight intensity={1.5} color={0xffffff} />- <pointLight position={[10, 10, 0]} />- <Phone- baseScale={baseScale}- videoTexture={texture}- aspectRatio={videoData.aspectRatio}- />- </ThreeCanvas>- ) : null}- </AbsoluteFill>- );+ const texture = useVideoTexture(videoRef);+ return (+ <AbsoluteFill>+ <Video ref={videoRef} src={videoSrc} style={videoStyle} />+ {videoData ? (+ <ThreeCanvas width={width} height={height}>+ <ambientLight intensity={1.5} color={0xffffff} />+ <pointLight position={[10, 10, 0]} />+ <Phone+ baseScale={baseScale}+ videoTexture={texture}+ aspectRatio={videoData.aspectRatio}+ />+ </ThreeCanvas>+ ) : null}+ </AbsoluteFill>+ );};diff --git a/packages/docs/components/Bounties.tsx b/packages/docs/components/Bounties.tsxindex b3fd3e4407..1d8bd3417d 100644--- a/packages/docs/components/Bounties.tsx+++ b/packages/docs/components/Bounties.tsx@@ -1,79 +1,79 @@-import { algora, type AlgoraOutput } from "@algora/sdk";-import { useColorMode } from "@docusaurus/theme-common";-import clsx from "clsx";-import React, { useEffect, useState } from "react";+import {algora, type AlgoraOutput} from '@algora/sdk';+import {useColorMode} from '@docusaurus/theme-common';+import clsx from 'clsx';+import React, {useEffect, useState} from 'react';-import "./bounties.css";+import './bounties.css';-const org = "remotion";+const org = 'remotion';const limit = 100;type RemoteData<T> =- | { _tag: "loading" }- | { _tag: "failure"; error: Error }- | { _tag: "success"; data: T };+ | {_tag: 'loading'}+ | {_tag: 'failure'; error: Error}+ | {_tag: 'success'; data: T};-type Bounty = AlgoraOutput["bounty"]["list"]["items"][number];+type Bounty = AlgoraOutput['bounty']['list']['items'][number];-const BountyCard = (props: { bounty: Bounty }) => (- <a- href={props.bounty.task.url}- target="_blank"- rel="noopener"- className="bounty-card"- >- <div className="bounty-content">- <div className="bounty-reward">{props.bounty.reward_formatted}</div>- <div className="bounty-issue">- {props.bounty.task.repo_name}#{props.bounty.task.number}- </div>- <div className="bounty-title">{props.bounty.task.title}</div>- </div>- </a>+const BountyCard = (props: {readonly bounty: Bounty}) => (+ <a+ href={props.bounty.task.url}+ target="_blank"+ rel="noopener"+ className="bounty-card"+ >+ <div className="bounty-content">+ <div className="bounty-reward">{props.bounty.reward_formatted}</div>+ <div className="bounty-issue">+ {props.bounty.task.repo_name}#{props.bounty.task.number}+ </div>+ <div className="bounty-title">{props.bounty.task.title}</div>+ </div>+ </a>);const BountyCardSkeleton = () => (- <div className="bounty-skeleton">- <div className="bounty-content">- <div className="bounty-reward" />- <div className="bounty-issue" />- <div className="bounty-title" />- </div>- </div>+ <div className="bounty-skeleton">+ <div className="bounty-content">+ <div className="bounty-reward" />+ <div className="bounty-issue" />+ <div className="bounty-title" />+ </div>+ </div>);export const Bounties = () => {- const { colorMode } = useColorMode();+ const {colorMode} = useColorMode();- const [bounties, setBounties] = useState<RemoteData<Bounty[]>>({- _tag: "loading",- });+ const [bounties, setBounties] = useState<RemoteData<Bounty[]>>({+ _tag: 'loading',+ });- useEffect(() => {- const ac = new AbortController();+ useEffect(() => {+ const ac = new AbortController();- algora.bounty.list- .query({ org, limit, status: "active" }, { signal: ac.signal })- .then(({ items: data }) => setBounties({ _tag: "success", data }))- .catch((error) => setBounties({ _tag: "failure", error }));+ algora.bounty.list+ .query({org, limit, status: 'active'}, {signal: ac.signal})+ .then(({items: data}) => setBounties({_tag: 'success', data}))+ .catch((error) => setBounties({_tag: 'failure', error}));- return () => ac.abort();- }, []);+ return () => ac.abort();+ }, []);- return (- <div className={clsx("bounty-grid", colorMode === 'dark' && "dark")}>- {bounties._tag === "success" &&- bounties.data.map((bounty) => (- <div key={bounty.id}>- <BountyCard bounty={bounty} />- </div>- ))}- {bounties._tag === "loading" &&- [...Array(6).keys()].map((i) => (- <div key={i}>- <BountyCardSkeleton />- </div>- ))}- </div>- );+ return (+ <div className={clsx('bounty-grid', colorMode === 'dark' && 'dark')}>+ {bounties._tag === 'success' &&+ bounties.data.map((bounty) => (+ <div key={bounty.id}>+ <BountyCard bounty={bounty} />+ </div>+ ))}+ {bounties._tag === 'loading' &&+ [...Array(6).keys()].map((i) => (+ <div key={i}>+ <BountyCardSkeleton />+ </div>+ ))}+ </div>+ );};diff --git a/packages/docs/components/CameraMotionBlurExample/CameraMotionBlurExample.tsx b/packages/docs/components/CameraMotionBlurExample/CameraMotionBlurExample.tsxindex b1ec826e7c..00b6901c8b 100644--- a/packages/docs/components/CameraMotionBlurExample/CameraMotionBlurExample.tsx+++ b/packages/docs/components/CameraMotionBlurExample/CameraMotionBlurExample.tsx@@ -1,169 +1,169 @@-import { Player } from "@remotion/player";-import React, { useState } from "react";+import {Player} from '@remotion/player';+import React, {useState} from 'react';import {- AbsoluteFill,- Freeze,- interpolate,- spring,- useCurrentFrame,- useVideoConfig,-} from "remotion";+ AbsoluteFill,+ Freeze,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from 'remotion';-import { CameraMotionBlur } from "@remotion/motion-blur";+import {CameraMotionBlur} from '@remotion/motion-blur';const square: React.CSSProperties = {- height: 150,- width: 150,- background: `linear-gradient(217deg, rgba(255,0,0,1), rgba(255,0,0,0) 70.71%), linear-gradient(127deg, rgba(0,255,0,1), rgba(0,255,0,0) 70.71%), linear-gradient(336deg, rgba(0,0,255,1), rgba(0,0,255,0) 70.71%)`,- borderRadius: 14,- fontSize: 100,- fontWeight: "bold",- display: "flex",- justifyContent: "center",- alignItems: "center",+ height: 150,+ width: 150,+ background: `linear-gradient(217deg, rgba(255,0,0,1), rgba(255,0,0,0) 70.71%), linear-gradient(127deg, rgba(0,255,0,1), rgba(0,255,0,0) 70.71%), linear-gradient(336deg, rgba(0,0,255,1), rgba(0,0,255,0) 70.71%)`,+ borderRadius: 14,+ fontSize: 100,+ fontWeight: 'bold',+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',};const row: React.CSSProperties = {- display: "flex",- flexDirection: "row",- alignItems: "center",- flexWrap: "wrap",+ display: 'flex',+ flexDirection: 'row',+ alignItems: 'center',+ flexWrap: 'wrap',};const spacer: React.CSSProperties = {- width: 40,+ width: 40,};export const Square: React.FC = () => {- const frame = useCurrentFrame();- const { fps, height } = useVideoConfig();- const spr = spring({- fps,- frame,- config: {- damping: 200,- },- durationInFrames: 60,- });+ const frame = useCurrentFrame();+ const {fps, height} = useVideoConfig();+ const spr = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ durationInFrames: 60,+ });- const rotate = interpolate(spr, [0, 1], [Math.PI, 0]);- const y = interpolate(spr, [0, 1], [height, 0]);+ const rotate = interpolate(spr, [0, 1], [Math.PI, 0]);+ const y = interpolate(spr, [0, 1], [height, 0]);- return (- <AbsoluteFill- style={{- justifyContent: "center",- alignItems: "center",- transform: `translateY(${y}px) rotate(${rotate}rad)`,- }}- >- <div style={square}>A</div>- </AbsoluteFill>- );+ return (+ <AbsoluteFill+ style={{+ justifyContent: 'center',+ alignItems: 'center',+ transform: `translateY(${y}px) rotate(${rotate}rad)`,+ }}+ >+ <div style={square}>A</div>+ </AbsoluteFill>+ );};const MyComposition = ({- shutterAngle,- samples,+ shutterAngle,+ samples,}: {- shutterAngle: number;- samples: number;+ readonly shutterAngle: number;+ readonly samples: number;}) => {- return (- <AbsoluteFill- style={{- flexDirection: "row",- }}- >- <div style={{ flex: 1, position: "relative" }}>- <AbsoluteFill style={{ padding: 30 }}>- <h1>Still</h1>- </AbsoluteFill>- <Freeze frame={20}>- <CameraMotionBlur shutterAngle={shutterAngle} samples={samples}>- <Square />- </CameraMotionBlur>- </Freeze>- </div>- <div- style={{- width: 1,- background: "var(--ifm-color-emphasis-300)",- }}- />- <div style={{ flex: 1, position: "relative" }}>- <AbsoluteFill style={{ padding: 30 }}>- <h1>Animation</h1>- </AbsoluteFill>- <CameraMotionBlur shutterAngle={shutterAngle} samples={samples}>- <Square />- </CameraMotionBlur>- </div>- </AbsoluteFill>- );+ return (+ <AbsoluteFill+ style={{+ flexDirection: 'row',+ }}+ >+ <div style={{flex: 1, position: 'relative'}}>+ <AbsoluteFill style={{padding: 30}}>+ <h1>Still</h1>+ </AbsoluteFill>+ <Freeze frame={20}>+ <CameraMotionBlur shutterAngle={shutterAngle} samples={samples}>+ <Square />+ </CameraMotionBlur>+ </Freeze>+ </div>+ <div+ style={{+ width: 1,+ background: 'var(--ifm-color-emphasis-300)',+ }}+ />+ <div style={{flex: 1, position: 'relative'}}>+ <AbsoluteFill style={{padding: 30}}>+ <h1>Animation</h1>+ </AbsoluteFill>+ <CameraMotionBlur shutterAngle={shutterAngle} samples={samples}>+ <Square />+ </CameraMotionBlur>+ </div>+ </AbsoluteFill>+ );};export const CameraMotionBlurExample: React.FC = () => {- const [shutterAngle, setShutterAngle] = useState(180);- const [samples, setSamples] = useState(10);+ const [shutterAngle, setShutterAngle] = useState(180);+ const [samples, setSamples] = useState(10);- return (- <div>- <Player- component={MyComposition}- compositionWidth={1280}- compositionHeight={720}- durationInFrames={70}- fps={30}- style={{- width: "100%",- border: "1px solid var(--ifm-color-emphasis-300)",- borderRadius: "var(--ifm-pre-border-radius)",- }}- inputProps={{- shutterAngle,- samples,- }}- autoPlay- loop- />- <br />- <div style={{ ...row, fontSize: 20 }}>- <label style={row}>- <input- type="range"- min={1}- max={360}- step={1}- value={shutterAngle}- style={{ width: 90, marginRight: 8, padding: 8 }}- onChange={(e) => setShutterAngle(Number(e.target.value))}- />- <code>- shutterAngle={"{"}- {shutterAngle}- {"}"}- </code>- </label>- <div style={spacer} />+ return (+ <div>+ <Player+ component={MyComposition}+ compositionWidth={1280}+ compositionHeight={720}+ durationInFrames={70}+ fps={30}+ style={{+ width: '100%',+ border: '1px solid var(--ifm-color-emphasis-300)',+ borderRadius: 'var(--ifm-pre-border-radius)',+ }}+ inputProps={{+ shutterAngle,+ samples,+ }}+ autoPlay+ loop+ />+ <br />+ <div style={{...row, fontSize: 20}}>+ <label style={row}>+ <input+ type="range"+ min={1}+ max={360}+ step={1}+ value={shutterAngle}+ style={{width: 90, marginRight: 8, padding: 8}}+ onChange={(e) => setShutterAngle(Number(e.target.value))}+ />+ <code>+ shutterAngle={'{'}+ {shutterAngle}+ {'}'}+ </code>+ </label>+ <div style={spacer} />- <label style={row}>- <input- type="range"- min={1}- max={100}- step={1}- value={samples}- style={{ width: 90, marginRight: 8 }}- onChange={(e) => setSamples(Number(e.target.value))}- />- <code>- samples={"{"}- {samples}- {"}"}- </code>- </label>- </div>- </div>- );+ <label style={row}>+ <input+ type="range"+ min={1}+ max={100}+ step={1}+ value={samples}+ style={{width: 90, marginRight: 8}}+ onChange={(e) => setSamples(Number(e.target.value))}+ />+ <code>+ samples={'{'}+ {samples}+ {'}'}+ </code>+ </label>+ </div>+ </div>+ );};diff --git a/packages/docs/components/ColorDemo/Big.tsx b/packages/docs/components/ColorDemo/Big.tsxindex 1db31f3435..57f910672f 100644--- a/packages/docs/components/ColorDemo/Big.tsx+++ b/packages/docs/components/ColorDemo/Big.tsx@@ -1,46 +1,46 @@-import React from "react";+import React from 'react';import {- AbsoluteFill,- interpolate,- spring,- useCurrentFrame,- useVideoConfig,-} from "remotion";-import { getReadableColor } from "./readable-color";-import { defaultStyles } from './styles';+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from 'remotion';+import {getReadableColor} from './readable-color';+import {defaultStyles} from './styles';export const Big: React.FC<{- color: string;-}> = ({ color }) => {- const { fps } = useVideoConfig();- const frame = useCurrentFrame();- const progress = spring({- fps,- frame,- config: {- damping: 200,- },- });- return (- <AbsoluteFill- style={{- ...defaultStyles,- color: getReadableColor(color),- fontSize: 150,- }}- >- <span- style={{- display: "block",- transform: `translateY(${interpolate(- progress,- [0, 1],- [1000, 0]- )}px)`,- }}- >- {color}- </span>- </AbsoluteFill>- );+ readonly color: string;+}> = ({color}) => {+ const {fps} = useVideoConfig();+ const frame = useCurrentFrame();+ const progress = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ });+ return (+ <AbsoluteFill+ style={{+ ...defaultStyles,+ color: getReadableColor(color),+ fontSize: 150,+ }}+ >+ <span+ style={{+ display: 'block',+ transform: `translateY(${interpolate(+ progress,+ [0, 1],+ [1000, 0],+ )}px)`,+ }}+ >+ {color}+ </span>+ </AbsoluteFill>+ );};diff --git a/packages/docs/components/ColorDemo/ColorName.tsx b/packages/docs/components/ColorDemo/ColorName.tsxindex b0e4c34964..5ad28abec2 100644--- a/packages/docs/components/ColorDemo/ColorName.tsx+++ b/packages/docs/components/ColorDemo/ColorName.tsx@@ -1,15 +1,11 @@import namer from 'color-namer';import React from 'react';-import {- spring,- useCurrentFrame,- useVideoConfig,-} from "remotion";-import { getReadableColor } from './readable-color';-import { defaultStyles } from './styles';+import {spring, useCurrentFrame, useVideoConfig} from 'remotion';+import {getReadableColor} from './readable-color';+import {defaultStyles} from './styles';export const Shade: React.FC<{- color: string;+ readonly color: string;}> = ({color}) => {const names = namer(color);const {fps} = useVideoConfig();diff --git a/packages/docs/components/ColorDemo/Name.tsx b/packages/docs/components/ColorDemo/Name.tsxindex d3e60f0b0d..beb66ec7f0 100644--- a/packages/docs/components/ColorDemo/Name.tsx+++ b/packages/docs/components/ColorDemo/Name.tsx@@ -1,59 +1,59 @@-import React from "react";+import React from 'react';import {- AbsoluteFill,- interpolate,- spring,- useCurrentFrame,- useVideoConfig,-} from "remotion";-import { defaultStyles } from './styles';+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from 'remotion';+import {defaultStyles} from './styles';export const Name: React.FC<{- name: string;-}> = ({ name }) => {- const { fps } = useVideoConfig();- const frame = useCurrentFrame();- const progress = spring({- fps,- frame,- config: {- damping: 200,- },- });- return (- <AbsoluteFill- style={{- ...defaultStyles,- backgroundColor: "white",- color: "black",- }}- >- <div- style={{- transform: `translateY(${interpolate(- progress,- [0, 1],- [1000, 0]- )}px)`,- }}- >- <span- style={{- display: "block",- lineHeight: 1.1,- }}- >- Hi {name || "there"}!- </span>- <span- style={{- display: "block",- lineHeight: 1.1,- }}- >- Your favorite color is- </span>- </div>- </AbsoluteFill>- );+ readonly name: string;+}> = ({name}) => {+ const {fps} = useVideoConfig();+ const frame = useCurrentFrame();+ const progress = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ });+ return (+ <AbsoluteFill+ style={{+ ...defaultStyles,+ backgroundColor: 'white',+ color: 'black',+ }}+ >+ <div+ style={{+ transform: `translateY(${interpolate(+ progress,+ [0, 1],+ [1000, 0],+ )}px)`,+ }}+ >+ <span+ style={{+ display: 'block',+ lineHeight: 1.1,+ }}+ >+ Hi {name || 'there'}!+ </span>+ <span+ style={{+ display: 'block',+ lineHeight: 1.1,+ }}+ >+ Your favorite color is+ </span>+ </div>+ </AbsoluteFill>+ );};diff --git a/packages/docs/components/ColorDemo/Palette.tsx b/packages/docs/components/ColorDemo/Palette.tsxindex 3f1d4bc768..43f134f8f2 100644--- a/packages/docs/components/ColorDemo/Palette.tsx+++ b/packages/docs/components/ColorDemo/Palette.tsx@@ -1,16 +1,11 @@-import { shade, tint } from 'polished';+import {shade, tint} from 'polished';import React from 'react';-import {- interpolate,- spring,- useCurrentFrame,- useVideoConfig,-} from "remotion";-import { getReadableColor } from './readable-color';-import { defaultStyles } from './styles';+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';+import {getReadableColor} from './readable-color';+import {defaultStyles} from './styles';export const Palette: React.FC<{- color: string;+ readonly color: string;}> = ({color}) => {const {width, height, fps} = useVideoConfig();const frame = useCurrentFrame();diff --git a/packages/docs/components/ColorDemo/RGBColors.tsx b/packages/docs/components/ColorDemo/RGBColors.tsxindex 78dfaf04e8..12984bee38 100644--- a/packages/docs/components/ColorDemo/RGBColors.tsx+++ b/packages/docs/components/ColorDemo/RGBColors.tsx@@ -1,107 +1,107 @@-import { parseToRgb } from "polished";-import React from "react";-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";-import { defaultStyles } from "./styles";+import {parseToRgb} from 'polished';+import React from 'react';+import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';+import {defaultStyles} from './styles';const BAR_SCALE_FACTOR = 1.5;const TOP_PANEL = 100;const row: React.CSSProperties = {- display: "flex",- flexDirection: "row",- alignItems: "flex-end",- height: BAR_SCALE_FACTOR * 255 + TOP_PANEL,+ display: 'flex',+ flexDirection: 'row',+ alignItems: 'flex-end',+ height: BAR_SCALE_FACTOR * 255 + TOP_PANEL,};-const rgb = ["#ff7979", "#badc58", "#3498db"];+const rgb = ['#ff7979', '#badc58', '#3498db'];export const Colors: React.FC<{- color: string;-}> = ({ color }) => {- const { fps } = useVideoConfig();- const frame = useCurrentFrame();- const parsed = parseToRgb(color);+ readonly color: string;+}> = ({color}) => {+ const {fps} = useVideoConfig();+ const frame = useCurrentFrame();+ const parsed = parseToRgb(color);- const progress = spring({- fps,- frame,- config: {- mass: 4,- damping: 200,- },- });+ const progress = spring({+ fps,+ frame,+ config: {+ mass: 4,+ damping: 200,+ },+ });- const barMargin = interpolate(progress, [0, 1], [0, 20]);+ const barMargin = interpolate(progress, [0, 1], [0, 20]);- return (- <div- style={{- ...defaultStyles,- backgroundColor: "white",- fontSize: 30,- }}- >- <div style={row}>- {[parsed.red, parsed.green, parsed.blue].map((arrayColor, index) => {- const barProgress = spring({- fps,- frame: frame - index * 10,- config: {- mass: 1.4,- damping: 200,- },- });- return (- <div key={arrayColor} style={{ textAlign: "center" }}>- <div- style={{- height: TOP_PANEL,- marginBottom: 10,- color: rgb[index],- overflow: "hidden",- }}- >- <span- style={{- opacity: barProgress,- fontSize: 80,- }}- >- {String(arrayColor)}- </span>- </div>- <div- // eslint-disable-next-line react/no-array-index-key- key={index}- style={{- width: 250,- marginLeft: barMargin,- marginRight: barMargin,- height: arrayColor * BAR_SCALE_FACTOR * barProgress,- borderRadius: 10,- backgroundColor: rgb[index],- }}- />- <div- style={{ marginTop: 20, color: rgb[index], overflow: "hidden" }}- >- <span- style={{- transform: `translateY(${interpolate(- barProgress,- [0, 1],- [70, 0]- )}px)`,- display: "block",- }}- >- {["Red", "Green", "Blue"][index]}- </span>- </div>- </div>- );- })}- </div>- </div>- );+ return (+ <div+ style={{+ ...defaultStyles,+ backgroundColor: 'white',+ fontSize: 30,+ }}+ >+ <div style={row}>+ {[parsed.red, parsed.green, parsed.blue].map((arrayColor, index) => {+ const barProgress = spring({+ fps,+ frame: frame - index * 10,+ config: {+ mass: 1.4,+ damping: 200,+ },+ });+ return (+ <div key={arrayColor} style={{textAlign: 'center'}}>+ <div+ style={{+ height: TOP_PANEL,+ marginBottom: 10,+ color: rgb[index],+ overflow: 'hidden',+ }}+ >+ <span+ style={{+ opacity: barProgress,+ fontSize: 80,+ }}+ >+ {String(arrayColor)}+ </span>+ </div>+ <div+ // eslint-disable-next-line react/no-array-index-key+ key={index}+ style={{+ width: 250,+ marginLeft: barMargin,+ marginRight: barMargin,+ height: arrayColor * BAR_SCALE_FACTOR * barProgress,+ borderRadius: 10,+ backgroundColor: rgb[index],+ }}+ />+ <div+ style={{marginTop: 20, color: rgb[index], overflow: 'hidden'}}+ >+ <span+ style={{+ transform: `translateY(${interpolate(+ barProgress,+ [0, 1],+ [70, 0],+ )}px)`,+ display: 'block',+ }}+ >+ {['Red', 'Green', 'Blue'][index]}+ </span>+ </div>+ </div>+ );+ })}+ </div>+ </div>+ );};diff --git a/packages/docs/components/ColorDemo/index.tsx b/packages/docs/components/ColorDemo/index.tsxindex 3f4e0f52c1..c585140923 100644--- a/packages/docs/components/ColorDemo/index.tsx+++ b/packages/docs/components/ColorDemo/index.tsx@@ -1,21 +1,21 @@-import { parseToRgb } from 'polished';+import {parseToRgb} from 'polished';import React from 'react';-import { AbsoluteFill, Sequence } from 'remotion';-import { Big } from './Big';-import { Colors } from './RGBColors';-import { Name } from './Name';-import { Palette } from './Palette';-import { Shade } from './ColorName';+import {AbsoluteFill, Sequence} from 'remotion';+import {Big} from './Big';+import {Shade} from './ColorName';+import {Name} from './Name';+import {Palette} from './Palette';+import {Colors} from './RGBColors';export const ColorDemo: React.FC<{- color: string;- name: string;+ readonly color: string;+ readonly name: string;}> = ({color, name}) => {const isValid = (() => {try {parseToRgb(color);return true;- } catch (err) {+ } catch {return false;}})();diff --git a/packages/docs/components/Dataset/MyComp.tsx b/packages/docs/components/Dataset/MyComp.tsxindex b56ea887f0..d18f122a6d 100644--- a/packages/docs/components/Dataset/MyComp.tsx+++ b/packages/docs/components/Dataset/MyComp.tsx@@ -9,9 +9,9 @@ import {} from "remotion";interface Props {- name: string;- logo: string;- repo: string;+ readonly name: string;+ readonly logo: string;+ readonly repo: string;}export const MyComp: React.FC<Props> = ({ name, repo, logo }) => {diff --git a/packages/docs/components/Experimental.tsx b/packages/docs/components/Experimental.tsxindex 1e8b88cc72..d4b63da3c2 100644--- a/packages/docs/components/Experimental.tsx+++ b/packages/docs/components/Experimental.tsx@@ -1,7 +1,7 @@import React from "react";export const ExperimentalBadge: React.FC<{- children: React.ReactNode;+ readonly children: React.ReactNode;}> = ({ children }) => {return (<divdiff --git a/packages/docs/components/FreezeExample/FreezeExample.tsx b/packages/docs/components/FreezeExample/FreezeExample.tsxindex eb11201d85..e1926b4f92 100644--- a/packages/docs/components/FreezeExample/FreezeExample.tsx+++ b/packages/docs/components/FreezeExample/FreezeExample.tsx@@ -43,7 +43,7 @@ const BlueSquare: React.FC = () => {);};-const BlueSquareFreeze: React.FC<{ frozen: number | null }> = ({ frozen }) => {+const BlueSquareFreeze: React.FC<{ readonly frozen: number | null }> = ({ frozen }) => {if (frozen !== null) {return (<Freeze frame={frozen}>diff --git a/packages/docs/components/LambdaSplash/VideoApps.tsx b/packages/docs/components/LambdaSplash/VideoApps.tsxindex dd247b7811..49a40b4974 100644--- a/packages/docs/components/LambdaSplash/VideoApps.tsx+++ b/packages/docs/components/LambdaSplash/VideoApps.tsx@@ -67,7 +67,7 @@ const docsButton: React.CSSProperties = {};export const VideoApps: React.FC<{- active: 'remotion' | 'player' | 'lambda';+ readonly active: 'remotion' | 'player' | 'lambda';}> = ({active}) => {const {colorMode} = useColorMode();diff --git a/packages/docs/components/LandingPage/CommunityStatItems.tsx b/packages/docs/components/LandingPage/CommunityStatItems.tsxindex ab0f4493a0..ba741e2fe9 100644--- a/packages/docs/components/LandingPage/CommunityStatItems.tsx+++ b/packages/docs/components/LandingPage/CommunityStatItems.tsx@@ -3,13 +3,13 @@ import styles from './CommunityStats.module.css';// StatItemContent componentconst StatItemContent: React.FC<{- content: React.ReactNode;- width: string;- minWidth?: string;- maxWidth?: string;- height?: string;- fontSize?: string;- fontWeight?: React.CSSProperties['fontWeight'];+ readonly content: React.ReactNode;+ readonly width: string;+ readonly minWidth?: string;+ readonly maxWidth?: string;+ readonly height?: string;+ readonly fontSize?: string;+ readonly fontWeight?: React.CSSProperties['fontWeight'];}> = ({content,width,diff --git a/packages/docs/components/LandingPage/Counter.tsx b/packages/docs/components/LandingPage/Counter.tsxindex 3b66975a83..92e2ed3ec6 100644--- a/packages/docs/components/LandingPage/Counter.tsx+++ b/packages/docs/components/LandingPage/Counter.tsx@@ -3,7 +3,7 @@ import React from 'react';import styles from './pricing.module.css';const Triangle: React.FC<{- rotated: boolean;+ readonly rotated: boolean;}> = ({rotated}) => (<svgwidth="12px"@@ -46,9 +46,9 @@ const buttonContainer: React.CSSProperties = {};interface CounterProps {- count: number;- setCount: (count: number) => void;- minCount?: number;+ readonly count: number;+ readonly setCount: (count: number) => void;+ readonly minCount?: number;}export const Counter: React.FC<CounterProps> = ({diff --git a/packages/docs/components/LandingPage/InfoToolTip.tsx b/packages/docs/components/LandingPage/InfoToolTip.tsxindex 3a37cb539c..f0126f0add 100644--- a/packages/docs/components/LandingPage/InfoToolTip.tsx+++ b/packages/docs/components/LandingPage/InfoToolTip.tsx@@ -2,7 +2,7 @@ import React, {useState} from 'react';import styles from './InfoTool.module.css';interface InfoTooltipProps {- text: string;+ readonly text: string;}export const InfoTooltip: React.FC<InfoTooltipProps> = ({text}) => {diff --git a/packages/docs/components/LandingPage/NewsletterButton.tsx b/packages/docs/components/LandingPage/NewsletterButton.tsxindex 7c22b0946b..dd4a6db400 100644--- a/packages/docs/components/LandingPage/NewsletterButton.tsx+++ b/packages/docs/components/LandingPage/NewsletterButton.tsx@@ -1,93 +1,93 @@-import React, { useCallback, useState } from "react";-import { BlueButton } from "../layout/Button";-import { Spacer } from "../layout/Spacer";-import { CoolInput } from "../TextInput";-import styles from "./newsletter.module.css";+import React, {useCallback, useState} from 'react';+import {BlueButton} from '../layout/Button';+import {Spacer} from '../layout/Spacer';+import {CoolInput} from '../TextInput';+import styles from './newsletter.module.css';export const NewsletterButton: React.FC<{}> = () => {- const [email, setEmail] = useState("");- const [submitting, setSubmitting] = useState(false);- const [subscribed, setSubscribed] = useState(false);+ const [email, setEmail] = useState('');+ const [submitting, setSubmitting] = useState(false);+ const [subscribed, setSubscribed] = useState(false);- const handleSubmit = useCallback(- async (e: React.FormEvent<HTMLFormElement>) => {- try {- setSubmitting(true);- e.preventDefault();+ const handleSubmit = useCallback(+ async (e: React.FormEvent<HTMLFormElement>) => {+ try {+ setSubmitting(true);+ e.preventDefault();- const response = await fetch(- "https://www.remotion.pro/api/newsletter",- {- method: "POST",- body: JSON.stringify({ email }),- headers: {- "content-type": "application/json",- },- },- );- const json = await response.json();- if (json.success) {- setSubscribed(true);- } else {- // eslint-disable-next-line no-alert- alert("Something went wrong. Please try again later.");- }+ const response = await fetch(+ 'https://www.remotion.pro/api/newsletter',+ {+ method: 'POST',+ body: JSON.stringify({email}),+ headers: {+ 'content-type': 'application/json',+ },+ },+ );+ const json = await response.json();+ if (json.success) {+ setSubscribed(true);+ } else {+ // eslint-disable-next-line no-alert+ alert('Something went wrong. Please try again later.');+ }- setSubmitting(false);- } catch (err) {- // eslint-disable-next-line no-alert- alert("Something went wrong. Please try again later.");- }- },- [email],- );+ setSubmitting(false);+ } catch {+ // eslint-disable-next-line no-alert+ alert('Something went wrong. Please try again later.');+ }+ },+ [email],+ );- return (- <div>- <div className={styles.newslettergrow}>- <div className={styles.portion}>- <div className={styles.panel}>- <div className={[styles.tablenewsletter].join(" ")}>Newsletter</div>- <form- onSubmit={handleSubmit}- style={{- width: "100%",- }}- >- <p>- Read about new features and noteworthy updates we have made on- Remotion once in a while.- </p>+ return (+ <div>+ <div className={styles.newslettergrow}>+ <div className={styles.portion}>+ <div className={styles.panel}>+ <div className={[styles.tablenewsletter].join(' ')}>Newsletter</div>+ <form+ onSubmit={handleSubmit}+ style={{+ width: '100%',+ }}+ >+ <p>+ Read about new features and noteworthy updates we have made on+ Remotion once in a while.+ </p>- <CoolInput- style={{- width: "100%",- }}- disabled={submitting}- fullWidth- value={email}- onChange={(e) => setEmail(e.target.value)}- type={"email"}- required- placeholder="[email protected]"- />- <Spacer />- <Spacer />- <div>- <BlueButton- type="submit"- fullWidth- loading={submitting}- disabled={submitting || subscribed}- size="bg"- >- {subscribed ? "Subscribed!" : "Subscribe"}- </BlueButton>- </div>- </form>- </div>- </div>- </div>- </div>- );+ <CoolInput+ style={{+ width: '100%',+ }}+ disabled={submitting}+ fullWidth+ value={email}+ onChange={(e) => setEmail(e.target.value)}+ type={'email'}+ required+ placeholder="[email protected]"+ />+ <Spacer />+ <Spacer />+ <div>+ <BlueButton+ type="submit"+ fullWidth+ loading={submitting}+ disabled={submitting || subscribed}+ size="bg"+ >+ {subscribed ? 'Subscribed!' : 'Subscribe'}+ </BlueButton>+ </div>+ </form>+ </div>+ </div>+ </div>+ </div>+ );};diff --git a/packages/docs/components/LandingPage/PricingBulletPoint.tsx b/packages/docs/components/LandingPage/PricingBulletPoint.tsxindex 44937d6c2d..0983618827 100644--- a/packages/docs/components/LandingPage/PricingBulletPoint.tsx+++ b/packages/docs/components/LandingPage/PricingBulletPoint.tsx@@ -16,9 +16,9 @@ const greyCircle: React.CSSProperties = {};export const PricingBulletPoint: React.FC<{- text: string;- checked: boolean;- children?: React.ReactNode;+ readonly text: string;+ readonly checked: boolean;+ readonly children?: React.ReactNode;}> = ({text, checked, children}) => {const checkmarkSVG = (<svgdiff --git a/packages/docs/components/PeriodSelector.tsx b/packages/docs/components/PeriodSelector.tsxindex 3109a25f5c..9bd7f6b905 100644--- a/packages/docs/components/PeriodSelector.tsx+++ b/packages/docs/components/PeriodSelector.tsx@@ -8,8 +8,8 @@ enum Period {}export const PeriodSelector: React.FC<{- period: Period;- setPeriod: (per: Period) => void;+ readonly period: Period;+ readonly setPeriod: (per: Period) => void;}> = ({ period, setPeriod }) => {const MonthlyComponent = period === Period.Monthly ? BlueButton : ClearButton;const YearlyComponent = period === Period.Monthly ? ClearButton : BlueButton;diff --git a/packages/docs/components/Player/ColorPicker.tsx b/packages/docs/components/Player/ColorPicker.tsxindex e5040e5f29..a014409ffb 100644--- a/packages/docs/components/Player/ColorPicker.tsx+++ b/packages/docs/components/Player/ColorPicker.tsx@@ -3,8 +3,8 @@ import React from "react";export const colorPickerColors = ["#686de0", "#be2edd", "#f0932b", "#f9ca24"];export const ColorPicker: React.FC<{- selected: string;- onSelected: (color: string) => void;+ readonly selected: string;+ readonly onSelected: (color: string) => void;}> = ({ selected, onSelected }) => {return (<divdiff --git a/packages/docs/components/PrereleaseVersion.tsx b/packages/docs/components/PrereleaseVersion.tsxindex c5a85ac9a1..74ba890b55 100644--- a/packages/docs/components/PrereleaseVersion.tsx+++ b/packages/docs/components/PrereleaseVersion.tsx@@ -3,8 +3,8 @@ import React from "react";const FALLBACK_VERSION = "4.0.1";export const Prerelease: React.FC<{- onlySnippet: boolean;- packageName: string;+ readonly onlySnippet: boolean;+ readonly packageName: string;}> = ({ onlySnippet, packageName = "@remotion/lambda" }) => {const version =typeof URLSearchParams === "undefined"diff --git a/packages/docs/components/SequenceExamples/SequenceForward.tsx b/packages/docs/components/SequenceExamples/SequenceForward.tsxindex 971c87d4eb..6d9713cd27 100644--- a/packages/docs/components/SequenceExamples/SequenceForward.tsx+++ b/packages/docs/components/SequenceExamples/SequenceForward.tsx@@ -82,7 +82,7 @@ const BaseExample: React.FC = () => {};export const SequenceForwardExample: React.FC<{- type: "base" | "delay" | "clip" | "trim-start" | "trim-and-delay";+ readonly type: "base" | "delay" | "clip" | "trim-start" | "trim-and-delay";}> = ({ type }) => {const component = (() => {if (type === "base") {diff --git a/packages/docs/components/SeriesExamples/SeriesExample.tsx b/packages/docs/components/SeriesExamples/SeriesExample.tsxindex a6dbd4ba79..c18f23b2ce 100644--- a/packages/docs/components/SeriesExamples/SeriesExample.tsx+++ b/packages/docs/components/SeriesExamples/SeriesExample.tsx@@ -3,7 +3,7 @@ import React from "react";import { AbsoluteFill, Series, useCurrentFrame } from "remotion";const Square: React.FC<{- color: string;+ readonly color: string;}> = ({ color }) => {const frame = useCurrentFrame();return (@@ -44,7 +44,7 @@ const BaseExample: React.FC = () => {};export const SeriesExample: React.FC<{- type: "base";+ readonly type: "base";}> = ({ type }) => {const component = (() => {if (type === "base") {diff --git a/packages/docs/components/TableOfContents/Grid.tsx b/packages/docs/components/TableOfContents/Grid.tsxindex d3d8b70b57..23e9ce51ea 100644--- a/packages/docs/components/TableOfContents/Grid.tsx+++ b/packages/docs/components/TableOfContents/Grid.tsx@@ -2,7 +2,7 @@ import React from "react";import styles from "./toc.module.css";export const Grid: React.FC<{- children: React.ReactNode;+ readonly children: React.ReactNode;}> = ({ children }) => {return <div className={styles.containerrow}>{children}</div>;};diff --git a/packages/docs/components/TableOfContents/TOCItem.tsx b/packages/docs/components/TableOfContents/TOCItem.tsxindex 26ce5cd3a3..c2bb6308aa 100644--- a/packages/docs/components/TableOfContents/TOCItem.tsx+++ b/packages/docs/components/TableOfContents/TOCItem.tsx@@ -3,8 +3,8 @@ import React from "react";import styles from "./toc.module.css";export const TOCItem: React.FC<{- link: string;- children: React.ReactNode;+ readonly link: string;+ readonly children: React.ReactNode;}> = ({ link, children }) => {return (<Link to={link} className={styles.link}>diff --git a/packages/docs/components/TableOfContents/lottie.tsx b/packages/docs/components/TableOfContents/lottie.tsxindex 29ff197b21..895d2c95bb 100644--- a/packages/docs/components/TableOfContents/lottie.tsx+++ b/packages/docs/components/TableOfContents/lottie.tsx@@ -3,7 +3,7 @@ import {Grid} from './Grid';import {TOCItem} from './TOCItem';export const TableOfContents: React.FC<{- apisOnly?: boolean;+ readonly apisOnly?: boolean;}> = ({apisOnly}) => {return (<div>diff --git a/packages/docs/components/TableOfContents/transitions/index.tsx b/packages/docs/components/TableOfContents/transitions/index.tsxindex b2be1ca7b6..5042eadf12 100644--- a/packages/docs/components/TableOfContents/transitions/index.tsx+++ b/packages/docs/components/TableOfContents/transitions/index.tsx@@ -5,7 +5,7 @@ import {Presentations} from './presentations';import {Timings} from './timings';export const TableOfContents: React.FC<{- apisOnly?: boolean;+ readonly apisOnly?: boolean;}> = ({apisOnly}) => {return (<div>diff --git a/packages/docs/components/TableOfContents/transitions/presentations.tsx b/packages/docs/components/TableOfContents/transitions/presentations.tsxindex 760acecd46..befc129940 100644--- a/packages/docs/components/TableOfContents/transitions/presentations.tsx+++ b/packages/docs/components/TableOfContents/transitions/presentations.tsx@@ -21,7 +21,7 @@ export const presentationCompositionWidth = 540;export const presentationCompositionHeight = 280;export const Presentations: React.FC<{- apisOnly: boolean;+ readonly apisOnly: boolean;}> = ({apisOnly}) => {return (<Grid>diff --git a/packages/docs/components/TableOfContents/transitions/timings.tsx b/packages/docs/components/TableOfContents/transitions/timings.tsxindex 1c1779d6e2..a3c5806420 100644--- a/packages/docs/components/TableOfContents/transitions/timings.tsx+++ b/packages/docs/components/TableOfContents/transitions/timings.tsx@@ -3,7 +3,7 @@ import {Grid} from '../Grid';import {TOCItem} from '../TOCItem';export const Timings: React.FC<{- apisOnly: boolean;+ readonly apisOnly: boolean;}> = ({apisOnly}) => {return (<Grid>diff --git a/packages/docs/components/TextInput.tsx b/packages/docs/components/TextInput.tsxindex 9dcff7a86c..7a7f4a877f 100644--- a/packages/docs/components/TextInput.tsx+++ b/packages/docs/components/TextInput.tsx@@ -35,7 +35,7 @@ type Props = Omit<>,'onFocus' | 'onBlur'> & {- fullWidth?: boolean;+ readonly fullWidth?: boolean;};export const CoolInput: React.FC<Props> = ({style, fullWidth, ...props}) => {diff --git a/packages/docs/components/TrailExample/TrailExample.tsx b/packages/docs/components/TrailExample/TrailExample.tsxindex f172fe93d1..4d0dd4262e 100644--- a/packages/docs/components/TrailExample/TrailExample.tsx+++ b/packages/docs/components/TrailExample/TrailExample.tsx@@ -68,9 +68,9 @@ const MyComposition = ({layers,lagInFrames,}: {- trailOpacity: number;- layers: number;- lagInFrames: number;+ readonly trailOpacity: number;+ readonly layers: number;+ readonly lagInFrames: number;}) => {return (<AbsoluteFilldiff --git a/packages/docs/components/Triangle.tsx b/packages/docs/components/Triangle.tsxindex d049fd10db..007a4848ec 100644--- a/packages/docs/components/Triangle.tsx+++ b/packages/docs/components/Triangle.tsx@@ -1,9 +1,9 @@import React from "react";export const Triangle: React.FC<{- size: number;- opacity: number;- color1?: string;+ readonly size: number;+ readonly opacity: number;+ readonly color1?: string;}> = ({ size, opacity, color1 = "#42e9f5" }) => {return (<svgdiff --git a/packages/docs/components/YouTube.tsx b/packages/docs/components/YouTube.tsxindex 2ebd2d784f..eb1cc2750a 100644--- a/packages/docs/components/YouTube.tsx+++ b/packages/docs/components/YouTube.tsx@@ -35,10 +35,10 @@ const wouldYouRather: React.CSSProperties = {};export const YouTube: React.FC<{- minutes: number;- href: string;- title: string;- thumb: string;+ readonly minutes: number;+ readonly href: string;+ readonly title: string;+ readonly thumb: string;}> = ({ minutes, href, title, thumb }) => {return (<a href={href} target="_blank" style={link}>diff --git a/packages/docs/components/demos/Circle.tsx b/packages/docs/components/demos/Circle.tsxindex 51793c0658..be7285f6af 100644--- a/packages/docs/components/demos/Circle.tsx+++ b/packages/docs/components/demos/Circle.tsx@@ -3,8 +3,8 @@ import React from "react";import { AbsoluteFill } from "remotion";export const CircleDemo: React.FC<{- radius: number;- darkMode: boolean;+ readonly radius: number;+ readonly darkMode: boolean;}> = ({ radius, darkMode }) => {return (<AbsoluteFilldiff --git a/packages/docs/components/demos/Ellipse.tsx b/packages/docs/components/demos/Ellipse.tsxindex 290048768f..f27b4ac8b3 100644--- a/packages/docs/components/demos/Ellipse.tsx+++ b/packages/docs/components/demos/Ellipse.tsx@@ -3,9 +3,9 @@ import React from "react";import { AbsoluteFill } from "remotion";export const EllipseDemo: React.FC<{- darkMode: boolean;- rx: number;- ry: number;+ readonly darkMode: boolean;+ readonly rx: number;+ readonly ry: number;}> = ({ rx, ry, darkMode }) => {return (<AbsoluteFilldiff --git a/packages/docs/components/demos/NoiseDemo.tsx b/packages/docs/components/demos/NoiseDemo.tsxindex 4d34b6c05c..bb4f20efd4 100644--- a/packages/docs/components/demos/NoiseDemo.tsx+++ b/packages/docs/components/demos/NoiseDemo.tsx@@ -3,9 +3,9 @@ import React from "react";import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";interface Props {- speed: number;- circleRadius: number;- maxOffset: number;+ readonly speed: number;+ readonly circleRadius: number;+ readonly maxOffset: number;}const OVERSCAN_MARGIN = 100;diff --git a/packages/docs/components/demos/Pie.tsx b/packages/docs/components/demos/Pie.tsxindex fd2ab22650..5fc3a9bb0e 100644--- a/packages/docs/components/demos/Pie.tsx+++ b/packages/docs/components/demos/Pie.tsx@@ -3,13 +3,13 @@ import React from "react";import { AbsoluteFill } from "remotion";export const PieDemo: React.FC<{- radius: number;- darkMode: boolean;- progress: number;- closePath: boolean;- showStrokeInsteadPreviewOnly: boolean;- counterClockwise: boolean;- rotation: number;+ readonly radius: number;+ readonly darkMode: boolean;+ readonly progress: number;+ readonly closePath: boolean;+ readonly showStrokeInsteadPreviewOnly: boolean;+ readonly counterClockwise: boolean;+ readonly rotation: number;}> = ({radius,darkMode,diff --git a/packages/docs/components/demos/Polygon.tsx b/packages/docs/components/demos/Polygon.tsxindex 49f69798d0..909a9cc873 100644--- a/packages/docs/components/demos/Polygon.tsx+++ b/packages/docs/components/demos/Polygon.tsx@@ -3,11 +3,11 @@ import React from "react";import { AbsoluteFill } from "remotion";export const PolygonDemo: React.FC<{- darkMode: boolean;- points: number;- radius: number;- cornerRadius: number;- edgeRoundness: number | null;+ readonly darkMode: boolean;+ readonly points: number;+ readonly radius: number;+ readonly cornerRadius: number;+ readonly edgeRoundness: number | null;}> = ({ points, radius, darkMode, cornerRadius, edgeRoundness }) => {return (<AbsoluteFilldiff --git a/packages/docs/components/demos/Rect.tsx b/packages/docs/components/demos/Rect.tsxindex 47d5053871..49fe56648a 100644--- a/packages/docs/components/demos/Rect.tsx+++ b/packages/docs/components/demos/Rect.tsx@@ -3,12 +3,12 @@ import React from "react";import { AbsoluteFill } from "remotion";export const RectDemo: React.FC<{- width: number;- height: number;- edgeRoundness: number;- darkMode: boolean;- debug: boolean;- cornerRadius: number;+ readonly width: number;+ readonly height: number;+ readonly edgeRoundness: number;+ readonly darkMode: boolean;+ readonly debug: boolean;+ readonly cornerRadius: number;}> = ({ width, height, debug, edgeRoundness, cornerRadius, darkMode }) => {return (<AbsoluteFilldiff --git a/packages/docs/components/demos/Star.tsx b/packages/docs/components/demos/Star.tsxindex 6060781d02..8eaa718d91 100644--- a/packages/docs/components/demos/Star.tsx+++ b/packages/docs/components/demos/Star.tsx@@ -3,12 +3,12 @@ import React from "react";import { AbsoluteFill } from "remotion";export const StarDemo: React.FC<{- darkMode: boolean;- innerRadius: number;- outerRadius: number;- cornerRadius: number;- edgeRoundness: number | null;- points: number;+ readonly darkMode: boolean;+ readonly innerRadius: number;+ readonly outerRadius: number;+ readonly cornerRadius: number;+ readonly edgeRoundness: number | null;+ readonly points: number;}> = ({innerRadius,points,diff --git a/packages/docs/components/demos/Translate.tsx b/packages/docs/components/demos/Translate.tsxindex 5432a94a62..2ee3196295 100644--- a/packages/docs/components/demos/Translate.tsx+++ b/packages/docs/components/demos/Translate.tsx@@ -2,9 +2,9 @@ import React from "react";import { AbsoluteFill } from "remotion";const Base: React.FC<{- transform?: string;- opacity?: number;- showChip: boolean;+ readonly transform?: string;+ readonly opacity?: number;+ readonly showChip: boolean;}> = ({ transform, opacity, showChip }) => {return (<AbsoluteFill@@ -72,8 +72,8 @@ const Base: React.FC<{};export const TranslateDemo: React.FC<{- translateX: number;- translateY: number;+ readonly translateX: number;+ readonly translateY: number;}> = ({ translateX: x, translateY: y }) => {return (<Base@@ -84,25 +84,25 @@ export const TranslateDemo: React.FC<{};export const RotateDemo: React.FC<{- rotateZ: number;+ readonly rotateZ: number;}> = ({ rotateZ }) => {return <Base showChip transform={`rotateZ(${rotateZ}deg)`} />;};export const SkewDemo: React.FC<{- skew: number;+ readonly skew: number;}> = ({ skew }) => {return <Base showChip={false} transform={`skew(${skew}deg)`} />;};export const ScaleDemo: React.FC<{- scale: number;+ readonly scale: number;}> = ({ scale }) => {return <Base showChip transform={`scale(${scale})`} />;};export const OpacityDemo: React.FC<{- opacity: number;+ readonly opacity: number;}> = ({ opacity }) => {return <Base showChip={false} opacity={opacity} />;};diff --git a/packages/docs/components/demos/Triangle.tsx b/packages/docs/components/demos/Triangle.tsxindex 06c9371989..56d77dfc5d 100644--- a/packages/docs/components/demos/Triangle.tsx+++ b/packages/docs/components/demos/Triangle.tsx@@ -4,12 +4,12 @@ import React from "react";import { AbsoluteFill } from "remotion";export const TriangleDemo: React.FC<{- length: number;- edgeRoundness: number;- darkMode: boolean;- direction: TriangleProps["direction"];- debug: boolean;- cornerRadius: number;+ readonly length: number;+ readonly edgeRoundness: number;+ readonly darkMode: boolean;+ readonly direction: TriangleProps["direction"];+ readonly debug: boolean;+ readonly cornerRadius: number;}> = ({ length, edgeRoundness, debug, direction, cornerRadius, darkMode }) => {return (<AbsoluteFilldiff --git a/packages/docs/components/demos/control.tsx b/packages/docs/components/demos/control.tsxindex ee262d2198..45805d1ba2 100644--- a/packages/docs/components/demos/control.tsx+++ b/packages/docs/components/demos/control.tsx@@ -25,9 +25,9 @@ export const Control = ({value,setValue,}: {- option: Option;- value: number | string | boolean;- setValue: (value: number | string | boolean | null) => void;+ readonly option: Option;+ readonly value: number | string | boolean;+ readonly setValue: (value: number | string | boolean | null) => void;}) => {const enabled = value !== null;diff --git a/packages/docs/components/layout/Button.tsx b/packages/docs/components/layout/Button.tsxindex dfae5a3026..23b170665f 100644--- a/packages/docs/components/layout/Button.tsx+++ b/packages/docs/components/layout/Button.tsx@@ -5,12 +5,12 @@ import styles from './button.module.css';import {RED, UNDERLAY_RED} from './colors';type ExtraProps = {- size: Size;- fullWidth: boolean;- background: string;- hoverColor?: string;- color: string;- loading: boolean;+ readonly size: Size;+ readonly fullWidth: boolean;+ readonly background: string;+ readonly hoverColor?: string;+ readonly color: string;+ readonly loading: boolean;};type Size = 'sm' | 'bg';diff --git a/packages/docs/components/layout/RowOnDesktop.tsx b/packages/docs/components/layout/RowOnDesktop.tsxindex b5f4a0686a..8a468f2cf8 100644--- a/packages/docs/components/layout/RowOnDesktop.tsx+++ b/packages/docs/components/layout/RowOnDesktop.tsx@@ -1,7 +1,7 @@import React from "react";export const RowOnDesktop: React.FC<{- children: React.ReactNode;+ readonly children: React.ReactNode;}> = ({ children }) => {return (<div style={{ display: "flex", flexDirection: "row" }}>{children}</div>diff --git a/packages/docs/components/recorder/RecordButton.tsx b/packages/docs/components/recorder/RecordButton.tsxindex 3b5c74f773..85520d184b 100644--- a/packages/docs/components/recorder/RecordButton.tsx+++ b/packages/docs/components/recorder/RecordButton.tsx@@ -20,7 +20,7 @@ const buttonStyle: React.CSSProperties = {color: "white",};-export const RecordingButton: React.FC<{ type: "start" | "stop" }> = ({+export const RecordingButton: React.FC<{ readonly type: "start" | "stop" }> = ({type,}) => {return (diff --git a/packages/docs/components/recorder/layout.tsx b/packages/docs/components/recorder/layout.tsxindex ed8879391b..2f8b30884e 100644--- a/packages/docs/components/recorder/layout.tsx+++ b/packages/docs/components/recorder/layout.tsx@@ -10,9 +10,9 @@ const rectangleStyle: React.CSSProperties = {};export const Layout: React.FC<{- type: "landscape" | "portrait" | "square";- aspectWidth: number;- aspectHeight: number;+ readonly type: "landscape" | "portrait" | "square";+ readonly aspectWidth: number;+ readonly aspectHeight: number;}> = ({ type, aspectWidth, aspectHeight }) => {const aspectRatioStyle: React.CSSProperties = useMemo(() => {if (type === "landscape") {diff --git a/packages/docs/components/shapes/shapes-info.tsx b/packages/docs/components/shapes/shapes-info.tsxindex d20a41f1a2..15681b8995 100644--- a/packages/docs/components/shapes/shapes-info.tsx+++ b/packages/docs/components/shapes/shapes-info.tsx@@ -257,8 +257,8 @@ const globalParams: Param[] = [];export const ShapeOptions: React.FC<{- shape: string;- all: boolean;+ readonly shape: string;+ readonly all: boolean;}> = ({shape, all}) => {const shapeComponent = shapeComponents.find((c) => c.shape.toLowerCase() === shape.toLowerCase(),@@ -326,7 +326,7 @@ export const ShapeOptions: React.FC<{};export const MakeShapeReturnType: React.FC<{- shape: string;+ readonly shape: string;}> = ({shape}) => {const shapeComponent = shapeComponents.find((c) => c.shape.toLowerCase() === shape.toLowerCase(),@@ -388,7 +388,7 @@ export const MakeShapeReturnType: React.FC<{};export const MakeShapeSeeAlso: React.FC<{- shape: string;+ readonly shape: string;}> = ({shape}) => {const shapeComponent = shapeComponents.find((c) => c.shape.toLowerCase() === shape.toLowerCase(),@@ -422,7 +422,7 @@ export const MakeShapeSeeAlso: React.FC<{};export const ShapeSeeAlso: React.FC<{- shape: string;+ readonly shape: string;}> = ({shape}) => {const shapeComponent = shapeComponents.find((c) => c.shape.toLowerCase() === shape.toLowerCase(),diff --git a/packages/docs/eslint.config.mjs b/packages/docs/eslint.config.mjsnew file mode 100644index 0000000000..4fcdf64c67--- /dev/null+++ b/packages/docs/eslint.config.mjs@@ -0,0 +1,8 @@+import {remotionFlatConfig} from '@remotion/eslint-config-internal';++const config = remotionFlatConfig({react: true});++export default {+ ...config,+ files: [...config.files, 'components/**/*.ts', 'components/**/*.tsx'],+};diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex f8d60beaf2..53d89f3b77 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -15,7 +15,7 @@"deploy": "docusaurus deploy","serve": "docusaurus serve","clear": "docusaurus clear",- "lint": "eslint components && eslint src",+ "lint": "eslint src components","test": "vitest --run","remotion": "remotion studio src/remotion/entry.ts"},@@ -89,7 +89,7 @@"vitest": "0.31.1","zod": "3.22.3","@remotion/eslint-config-internal": "workspace:*",- "eslint": "8.56.0"+ "eslint": "9.13.0"},"devDependencies": {"@tsconfig/docusaurus": "^1.0.5",diff --git a/packages/docs/src/components/AlsoAvailableAsVideo.tsx b/packages/docs/src/components/AlsoAvailableAsVideo.tsxindex 3b84a3d51a..0b232e38d5 100644--- a/packages/docs/src/components/AlsoAvailableAsVideo.tsx+++ b/packages/docs/src/components/AlsoAvailableAsVideo.tsx@@ -39,10 +39,10 @@ const wouldYouRather: React.CSSProperties = {};export const AlsoAvailableAsVideo: React.FC<{- minutes: number;- playbackId: string;- title: string;- thumb: string;+ readonly minutes: number;+ readonly playbackId: string;+ readonly title: string;+ readonly thumb: string;}> = ({minutes, title, thumb, playbackId}) => {const [showVideo, setShowVideo] = React.useState(false);diff --git a/packages/docs/src/components/BackButton.tsx b/packages/docs/src/components/BackButton.tsxindex 1d1aa629a1..758622d3b0 100644--- a/packages/docs/src/components/BackButton.tsx+++ b/packages/docs/src/components/BackButton.tsx@@ -1,9 +1,9 @@import React from 'react';export const BackButton: React.FC<{- color: string;- text: string;- link: string;+ readonly color: string;+ readonly text: string;+ readonly link: string;}> = ({color, text, link}) => {const backLink: React.CSSProperties = {color,diff --git a/packages/docs/src/components/CommandCopyButton.tsx b/packages/docs/src/components/CommandCopyButton.tsxindex 39afb3c056..d244e46138 100644--- a/packages/docs/src/components/CommandCopyButton.tsx+++ b/packages/docs/src/components/CommandCopyButton.tsx@@ -1,7 +1,7 @@import React from 'react';export const CommandCopyButton: React.FC<{- copied: boolean;+ readonly copied: boolean;}> = ({copied}) => {return copied ? (<svgdiff --git a/packages/docs/src/components/Credits.tsx b/packages/docs/src/components/Credits.tsxindex c2d56ffc4d..8bdf30eaeb 100644--- a/packages/docs/src/components/Credits.tsx+++ b/packages/docs/src/components/Credits.tsx@@ -27,11 +27,11 @@ interface Contributor {}interface CreditsProps {- contributors: Contributor[];+ readonly contributors: Contributor[];}const ContributorComp: React.FC<{- contributor: Contributor;+ readonly contributor: Contributor;}> = ({contributor}) => {const cardStyle: React.CSSProperties = {width: '300px',diff --git a/packages/docs/src/components/Demo/DemoRender.tsx b/packages/docs/src/components/Demo/DemoRender.tsxindex 73096917b1..5e3ac94f1e 100644--- a/packages/docs/src/components/Demo/DemoRender.tsx+++ b/packages/docs/src/components/Demo/DemoRender.tsx@@ -27,6 +27,7 @@ const location = z.object({longitude: z.number().or(z.string()),});+// eslint-disable-next-line @typescript-eslint/no-unused-varsconst data = z.object({trending: remoteData,location,@@ -67,8 +68,8 @@ const style: React.CSSProperties = {};export const RenderButton: React.FC<{- renderData: z.infer<typeof data> | null;- onError: () => void;+ readonly renderData: z.infer<typeof data> | null;+ readonly onError: () => void;}> = ({renderData, onError}) => {const [state, setState] = React.useState<State>({type: 'idle',@@ -124,7 +125,7 @@ export const RenderButton: React.FC<{done = true;}}- } catch (err) {+ } catch {setState({type: 'error'});onError();}diff --git a/packages/docs/src/components/Demo/PlayerSeekBar.tsx b/packages/docs/src/components/Demo/PlayerSeekBar.tsxindex 9fdf965a0a..7827947ec9 100644--- a/packages/docs/src/components/Demo/PlayerSeekBar.tsx+++ b/packages/docs/src/components/Demo/PlayerSeekBar.tsx@@ -10,7 +10,7 @@ const getFrameFromX = () => {const pos = clientX;const frame = Math.round(- interpolate(pos, [0, width], [0, durationInFrames - 1 ?? 0], {+ interpolate(pos, [0, width], [0, durationInFrames - 1], {extrapolateLeft: 'clamp',extrapolateRight: 'clamp',}),diff --git a/packages/docs/src/components/Demo/Progress.tsx b/packages/docs/src/components/Demo/Progress.tsxindex 13d25c4f05..51f90d6fbd 100644--- a/packages/docs/src/components/Demo/Progress.tsx+++ b/packages/docs/src/components/Demo/Progress.tsx@@ -3,7 +3,7 @@ import React from 'react';import {PALETTE} from '../../../components/layout/colors';export const Progress: React.FC<{- progress: number;+ readonly progress: number;}> = ({progress}) => {const inner = makeCircle({radius: 10,diff --git a/packages/docs/src/components/DoMoreHero/Face.tsx b/packages/docs/src/components/DoMoreHero/Face.tsxindex d73668b068..ae91a565e4 100644--- a/packages/docs/src/components/DoMoreHero/Face.tsx+++ b/packages/docs/src/components/DoMoreHero/Face.tsx@@ -4,17 +4,17 @@ import type {ThreeDReducedInstruction} from './3d-svg';import {threeDIntoSvgPath} from './3d-svg';export type FaceSVGProps = {- strokeLinecap?: React.SVGAttributes<SVGPathElement>['strokeLinecap'];- strokeMiterlimit?: React.SVGAttributes<SVGPathElement>['strokeMiterlimit'];+ readonly strokeLinecap?: React.SVGAttributes<SVGPathElement>['strokeLinecap'];+ readonly strokeMiterlimit?: React.SVGAttributes<SVGPathElement>['strokeMiterlimit'];};export const Face: React.FC<{- points: ThreeDReducedInstruction[];- color: string;- strokeColor: string;- strokeWidth: number;- crispEdges: boolean;+ readonly points: ThreeDReducedInstruction[];+ readonly color: string;+ readonly strokeColor: string;+ readonly strokeWidth: number;+ readonly crispEdges: boolean;} & FaceSVGProps> = ({color,diff --git a/packages/docs/src/components/DoMoreHero/Faces.tsx b/packages/docs/src/components/DoMoreHero/Faces.tsxindex 95dd324da2..2e7324085b 100644--- a/packages/docs/src/components/DoMoreHero/Faces.tsx+++ b/packages/docs/src/components/DoMoreHero/Faces.tsx@@ -12,8 +12,8 @@ const sortFacesZIndex = (face: FaceType[]): FaceType[] => {export const Faces: React.FC<{- elements: ThreeDElement[];- noSort?: boolean;+ readonly elements: ThreeDElement[];+ readonly noSort?: boolean;} & FaceSVGProps> = ({elements, noSort, ...svgProps}) => {const sortedElement = noSortdiff --git a/packages/docs/src/components/MuxVideo.tsx b/packages/docs/src/components/MuxVideo.tsxindex d7f8f7b8f5..e61f77aa4a 100644--- a/packages/docs/src/components/MuxVideo.tsx+++ b/packages/docs/src/components/MuxVideo.tsx@@ -13,7 +13,7 @@ const MuxVideoForward: React.ForwardRefRenderFunction<React.VideoHTMLAttributes<HTMLVideoElement>,HTMLVideoElement> & {- muxId: string;+ readonly muxId: string;}> = ({muxId, ...props}, ref) => {const videoRef = useRef<HTMLVideoElement>(null);@@ -51,7 +51,7 @@ const MuxVideoForward: React.ForwardRefRenderFunction<export const MuxVideo = forwardRef(MuxVideoForward);export const NewMuxVideo: React.FC<{- muxId: string;+ readonly muxId: string;}> = ({muxId}) => {return (<BrowserOnly>diff --git a/packages/docs/src/components/TemplateIcon.tsx b/packages/docs/src/components/TemplateIcon.tsxindex afbdcdc2ab..ea811990d3 100644--- a/packages/docs/src/components/TemplateIcon.tsx+++ b/packages/docs/src/components/TemplateIcon.tsx@@ -26,8 +26,8 @@ const labelStyle: React.CSSProperties = {};export const TemplateIcon: React.FC<{- label: string;- children: React.ReactNode;+ readonly label: string;+ readonly children: React.ReactNode;}> = ({children, label}) => {const mobileLayout = useMobileLayout();diff --git a/packages/docs/src/components/V4Countdown.tsx b/packages/docs/src/components/V4Countdown.tsxindex cad1e1baca..14fa5f6865 100644--- a/packages/docs/src/components/V4Countdown.tsx+++ b/packages/docs/src/components/V4Countdown.tsx@@ -34,7 +34,7 @@ const timeLabel: React.CSSProperties = {};export const V4Countdown: React.FC<{- setShowCountdown: React.Dispatch<SetStateAction<boolean>>;+ readonly setShowCountdown: React.Dispatch<SetStateAction<boolean>>;}> = ({setShowCountdown}) => {const [countdown, setCountdown] = useState<[string, string, string, string]>(['00',diff --git a/packages/docs/src/components/VideoPlayer.tsx b/packages/docs/src/components/VideoPlayer.tsxindex db87104e58..a04e322f3b 100644--- a/packages/docs/src/components/VideoPlayer.tsx+++ b/packages/docs/src/components/VideoPlayer.tsx@@ -49,13 +49,13 @@ const cancelIcon: React.CSSProperties = {};export const VideoPlayer: React.FC<{- video: ShowcaseVideo | null;- dismiss: () => void;- toNext: () => void;- toPrevious: () => void;- hasPrevious: boolean;- hasNext: boolean;- userHasInteractedWithPage: boolean;+ readonly video: ShowcaseVideo | null;+ readonly dismiss: () => void;+ readonly toNext: () => void;+ readonly toPrevious: () => void;+ readonly hasPrevious: boolean;+ readonly hasNext: boolean;+ readonly userHasInteractedWithPage: boolean;}> = ({video,dismiss,diff --git a/packages/docs/src/components/VideoPlayerContent.tsx b/packages/docs/src/components/VideoPlayerContent.tsxindex 1cdcd5c0e0..4d5ddf33ac 100644--- a/packages/docs/src/components/VideoPlayerContent.tsx+++ b/packages/docs/src/components/VideoPlayerContent.tsx@@ -48,8 +48,8 @@ export const PAGINATE_BUTTONS_WIDTH =(PAGINATE_ICON_WIDTH + PAGINATE_ICON_PADDING * 2) * 2;export const VideoPlayerContent: React.FC<{- video: ShowcaseVideo;- userHasInteractedWithPage: boolean;+ readonly video: ShowcaseVideo;+ readonly userHasInteractedWithPage: boolean;}> = ({video, userHasInteractedWithPage}) => {const [loaded, setLoaded] = useState(false);const videoRef = useRef<HTMLVideoElement>(null);diff --git a/packages/docs/src/components/VideoPlayerHeader.tsx b/packages/docs/src/components/VideoPlayerHeader.tsxindex 7aab6d2d3c..52c9e9c564 100644--- a/packages/docs/src/components/VideoPlayerHeader.tsx+++ b/packages/docs/src/components/VideoPlayerHeader.tsx@@ -43,11 +43,11 @@ const space: React.CSSProperties = {const VideoPlayerHeader: React.ForwardRefRenderFunction<HTMLDivElement,{- onDismiss: () => void;- onNext: () => void;- onPrevious: () => void;- hasNext: boolean;- hasPrevious: boolean;+ readonly onDismiss: () => void;+ readonly onNext: () => void;+ readonly onPrevious: () => void;+ readonly hasNext: boolean;+ readonly hasPrevious: boolean;}> = ({onDismiss, onNext, onPrevious, hasNext, hasPrevious}, ref) => {const {colorMode} = useColorMode();diff --git a/packages/docs/src/components/VideoPlayerWithControls.tsx b/packages/docs/src/components/VideoPlayerWithControls.tsxindex fc6875a9fb..d663215c6e 100644--- a/packages/docs/src/components/VideoPlayerWithControls.tsx+++ b/packages/docs/src/components/VideoPlayerWithControls.tsx@@ -60,15 +60,15 @@ const useCombinedRefs = function (*/type Props = {- playbackId: string;- poster: string;+ readonly playbackId: string;+ readonly poster: string;// eslint-disable-next-line react/require-default-props- currentTime?: number;- onLoaded: () => void;- onError: (error: ErrorEvent) => void;- onSize: (dim: {width: number; height: number}) => void;+ readonly currentTime?: number;+ readonly onLoaded: () => void;+ readonly onError: (error: ErrorEvent) => void;+ readonly onSize: (dim: {width: number; height: number}) => void;// eslint-disable-next-line react/require-default-props- autoPlay?: boolean;+ readonly autoPlay?: boolean;};type SizedEvent = {@@ -104,7 +104,7 @@ export const VideoPlayerWithControls = forwardRef<onLoaded();} else {onLoaded();- console.error('Error getting img dimensions', event); // eslint-disable-line no-console+ console.error('Error getting img dimensions', event);}},[onLoaded, onSize],@@ -155,7 +155,7 @@ export const VideoPlayerWithControls = forwardRef<});} else {console.error(- // eslint-disable-line no-console+'This is an old browser that does not support MSE https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API',);}diff --git a/packages/docs/src/components/VideoPreview.tsx b/packages/docs/src/components/VideoPreview.tsxindex f137f659f7..53537f5a52 100644--- a/packages/docs/src/components/VideoPreview.tsx+++ b/packages/docs/src/components/VideoPreview.tsx@@ -37,9 +37,9 @@ const containerTitleDescription: React.CSSProperties = {export const VideoPreview: React.FC<ShowcaseVideo & {- title: string;- description: React.ReactNode;- onClick: () => void;+ readonly title: string;+ readonly description: React.ReactNode;+ readonly onClick: () => void;}> = ({title, description, onClick, muxId, width, height, time}) => {const [hover, setHover] = useState(false);diff --git a/packages/docs/src/components/VideoSidebar.tsx b/packages/docs/src/components/VideoSidebar.tsxindex 2fe6ccfc89..950894cc9c 100644--- a/packages/docs/src/components/VideoSidebar.tsx+++ b/packages/docs/src/components/VideoSidebar.tsx@@ -35,7 +35,7 @@ const getLinkLabel = (linkType: ShowcaseLink) => {};export const VideoSidebar: React.FC<{- video: ShowcaseVideo;+ readonly video: ShowcaseVideo;}> = ({video}) => {return (<div style={container}>diff --git a/packages/docs/src/components/icons/next.tsx b/packages/docs/src/components/icons/next.tsxindex 0003a01955..593b5dc496 100644--- a/packages/docs/src/components/icons/next.tsx+++ b/packages/docs/src/components/icons/next.tsx@@ -1,7 +1,7 @@import React from 'react';export const NextIcon: React.FC<{- style: React.CSSProperties;+ readonly style: React.CSSProperties;}> = ({style}) => {return (<svgdiff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsxindex b5079fa680..fa9c83285b 100644--- a/packages/docs/src/pages/4/index.tsx+++ b/packages/docs/src/pages/4/index.tsx@@ -20,10 +20,10 @@ const errorStyle: React.CSSProperties = {};export const EventComp: React.FC<{- date: string;- title: string;- description: string;- youtubeId?: string;+ readonly date: string;+ readonly title: string;+ readonly description: string;+ readonly youtubeId?: string;}> = ({date, title, description, youtubeId}) => {return (<divdiff --git a/packages/docs/src/remotion/Article.tsx b/packages/docs/src/remotion/Article.tsxindex 0aecc5392d..c473738f31 100644--- a/packages/docs/src/remotion/Article.tsx+++ b/packages/docs/src/remotion/Article.tsx@@ -4,7 +4,7 @@ import {articles} from '../data/articles';import './font.css';export const Article: React.FC<{- articleRelativePath: string;+ readonly articleRelativePath: string;}> = ({articleRelativePath}) => {const article = articles.find((e) => e.relativePath === articleRelativePath);if (!article) {diff --git a/packages/docs/src/remotion/Expert.tsx b/packages/docs/src/remotion/Expert.tsxindex 1dd9014f81..0ed3d2ea01 100644--- a/packages/docs/src/remotion/Expert.tsx+++ b/packages/docs/src/remotion/Expert.tsx@@ -4,7 +4,7 @@ import {experts} from '../data/experts';import './font.css';export const Expert: React.FC<{- expertId: string;+ readonly expertId: string;}> = ({expertId}) => {const expert = experts.find((e) => e.slug === expertId);diff --git a/packages/docs/src/remotion/HomepageVideo/DigitWheel.tsx b/packages/docs/src/remotion/HomepageVideo/DigitWheel.tsxindex b21b1723ba..0d8093dc63 100644--- a/packages/docs/src/remotion/HomepageVideo/DigitWheel.tsx+++ b/packages/docs/src/remotion/HomepageVideo/DigitWheel.tsx@@ -137,7 +137,7 @@ export const Wheel: React.FC<{return (<AbsoluteFill- // eslint-disable-next-line react/jsx-key, react/no-array-index-key+ // eslint-disable-next-line react/no-array-index-keykey={i}style={{justifyContent: 'center',diff --git a/packages/docs/src/remotion/HomepageVideo/Minus.tsx b/packages/docs/src/remotion/HomepageVideo/Minus.tsxindex 5d6dab31d0..5f0dc75a54 100644--- a/packages/docs/src/remotion/HomepageVideo/Minus.tsx+++ b/packages/docs/src/remotion/HomepageVideo/Minus.tsx@@ -1,8 +1,8 @@import React from 'react';export const Minus: React.FC<{- leftOffset: number;- minusSignOpacity: number;+ readonly leftOffset: number;+ readonly minusSignOpacity: number;}> = ({leftOffset, minusSignOpacity}) => {return (<divdiff --git a/packages/docs/src/remotion/HomepageVideo/TemperatureNumber.tsx b/packages/docs/src/remotion/HomepageVideo/TemperatureNumber.tsxindex 953427335e..daef5c6972 100644--- a/packages/docs/src/remotion/HomepageVideo/TemperatureNumber.tsx+++ b/packages/docs/src/remotion/HomepageVideo/TemperatureNumber.tsx@@ -55,7 +55,7 @@ export const TemperatureNumber: React.FC<{<div style={{width: 8}} />°<Wheel- // eslint-disable-next-line react/no-array-index-key+delay={paddedCelsiusDegree.length * 4 - 2}digits={[0, 1, 0]}renderDigit={(_i) =>diff --git a/packages/docs/src/remotion/HomepageVideo/TrendingRepos.tsx b/packages/docs/src/remotion/HomepageVideo/TrendingRepos.tsxindex d6981a8d8c..f6c1a12e00 100644--- a/packages/docs/src/remotion/HomepageVideo/TrendingRepos.tsx+++ b/packages/docs/src/remotion/HomepageVideo/TrendingRepos.tsx@@ -3,9 +3,9 @@ import {AbsoluteFill, spring, useCurrentFrame, useVideoConfig} from 'remotion';import type {RemoteData} from './Comp';const TrendingRepoItem: React.FC<{- repo: string;- theme: 'dark' | 'light';- number: number;+ readonly repo: string;+ readonly theme: 'dark' | 'light';+ readonly number: number;}> = ({repo, theme, number}) => {const frame = useCurrentFrame();const {fps} = useVideoConfig();diff --git a/packages/docs/src/remotion/Template.tsx b/packages/docs/src/remotion/Template.tsxindex dabd729751..e7bd2f2dce 100644--- a/packages/docs/src/remotion/Template.tsx+++ b/packages/docs/src/remotion/Template.tsx@@ -5,7 +5,7 @@ import {IconForTemplate} from '../components/IconForTemplate';import './font.css';export const TemplateComp: React.FC<{- templateId: string;+ readonly templateId: string;}> = ({templateId}) => {const template = CreateVideoInternals.FEATURED_TEMPLATES.find((t) => t.cliId === templateId,diff --git a/packages/eslint-config-internal/src/index.ts b/packages/eslint-config-internal/src/index.tsindex 133ddd224d..4c117acca9 100644--- a/packages/eslint-config-internal/src/index.ts+++ b/packages/eslint-config-internal/src/index.ts@@ -24,6 +24,13 @@ export const remotionFlatConfig = ({}): Linter.FlatConfig => ({languageOptions: {parser: parser,+ parserOptions: {+ ecmaVersion: 2020,+ sourceType: 'module',+ ecmaFeatures: {+ jsx: true,+ },+ },},settings: react? {@@ -46,5 +53,5 @@ export const remotionFlatConfig = ({...(react ? compat.plugins('react-hooks') : [])[0].plugins,},rules: rules({react, enable10x: false}),- files: ['src/**/*.ts', 'src/**/*.tsx'],+ files: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js'],});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 86006ef02e..a9e6fe8450 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -533,19 +533,19 @@ importers:version: 7.15.4(@babel/[email protected])'@docusaurus/core':specifier: 3.4.0- version: 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/plugin-content-blog':specifier: 3.4.0- version: 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/plugin-google-gtag':specifier: 3.4.0- version: 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/preset-classic':specifier: 3.4.0- version: 3.4.0(@algolia/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 3.4.0(@algolia/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/theme-common':specifier: 3.4.0- version: 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/types':specifier: 3.4.0@@ -685,8 +685,8 @@ importers:specifier: workspace:*version: link:../create-videoeslint:- specifier: 8.56.0- version: 8.56.0+ specifier: 9.13.0+ version: 9.13.0hls.js:specifier: ^0.14.17version: 0.14.17@@ -7899,7 +7899,7 @@ packages:- '@algolia/client-search'dev: false- /@docusaurus/[email protected](@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-g+0wwmN2UJsBqy2fQRQ6fhXruoEa62JDeEa5d8IdTJlMoaDaEDfHh7WjwGRn4opuTQWpjAwP/fbcgyHKlE+64w==}engines: {node: '>=18.0'}hasBin: true@@ -7956,7 +7956,7 @@ packages:prompts: 2.4.2react: 18.3.1react-dom: 18.3.1([email protected])react-helmet-async: 1.3.0([email protected])([email protected])react-loadable: /@docusaurus/[email protected]([email protected])@@ -8080,14 +8080,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-vv6ZAj78ibR5Jh7XBUT4ndIjmlAxkijM3Sx5MAAzC1gyv0vupDQNhzuFg1USQmQVj3P5I6bquk12etPV3LJ+Xw==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/logger': 3.4.0'@docusaurus/mdx-loader': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])@@ -8125,14 +8125,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-HkUCZffhBo7ocYheD9oZvMcDloRnGhBMOZRyVcAQRFmZPmNqSyISlXA1tQCIxW+r478fty97XXAGjNYzBjpCsg==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/logger': 3.4.0'@docusaurus/mdx-loader': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])'@docusaurus/module-type-aliases': 3.4.0(@swc/[email protected])([email protected])([email protected])@@ -8169,14 +8169,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-h2+VN/0JjpR8fIkDEAoadNjfR3oLzB+v1qSXbIAKjQ46JAHx3X22n9nqS+BWSQnTnp1AjkjSvZyJMekmcwxzxg==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/mdx-loader': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])@@ -8205,14 +8205,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-uV7FDUNXGyDSD3PwUaf5YijX91T5/H9SX4ErEcshzwgzWwBtK37nUWPU3ZLJfeTavX3fycTOqk9TglpOLaWkCg==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])fs-extra: 11.2.0@@ -8239,14 +8239,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-mCArluxEGi3cmYHqsgpGGt3IyLCrFBxPsxNZ56Mpur0xSlInnIHoeLDH7FvVVcPJRPSQ9/MfRqLsainRw+BojA==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/utils-validation': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])react: 18.3.1@@ -8271,14 +8271,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-Dsgg6PLAqzZw5wZ4QjUYc8Z2KqJqXxHxq3vIoyoBWiLEEfigIs7wHR+oiWUQy3Zk9MIk6JTYj7tMoQU0Jm3nqA==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/utils-validation': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])'@types/gtag.js': 0.0.12@@ -8304,14 +8304,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-O9tX1BTwxIhgXpOLpFDueYA9DWk69WCbDRrjYoMQtFHSkTyE7RhNgyjSPREUWJb9i+YUg3OrsvrBYRl64FCPCQ==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/utils-validation': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])react: 18.3.1@@ -8336,14 +8336,14 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-+0VDvx9SmNrFNgwPoeoCha+tRoAjopwT0+pYO1xAbyLcewXSemq+eLxEa46Q1/aoOaJQ0qqHELuQM7iS2gp33Q==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/logger': 3.4.0'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])@@ -8373,25 +8373,25 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@algolia/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@algolia/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-Ohj6KB7siKqZaQhNJVMBBUzT3Nnp6eTKqO+FXO3qu/n1hJl3YLwVKTWBg28LF7MWrKu46UuYavwMRxud0VyqHg==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-debug': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-google-analytics': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-google-gtag': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-google-tag-manager': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-sitemap': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/theme-classic': 3.4.0(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/theme-search-algolia': 3.4.0(@algolia/[email protected])(@docusaurus/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-debug': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-google-analytics': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-google-gtag': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-google-tag-manager': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-sitemap': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/theme-classic': 3.4.0(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/theme-search-algolia': 3.4.0(@algolia/[email protected])(@docusaurus/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])@@ -8426,20 +8426,20 @@ packages:react: 18.3.1dev: false- /@docusaurus/[email protected](@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-0IPtmxsBYv2adr1GnZRdMkEQt1YW6tpzrUPj02YxNpvJ5+ju4E13J5tB4nfdaen/tfR1hmpSPlTFPvTf4kwy8Q==}engines: {node: '>=18.0'}peerDependencies:react: ^18.0.0react-dom: ^18.0.0dependencies:- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/mdx-loader': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])'@docusaurus/module-type-aliases': 3.4.0(@swc/[email protected])([email protected])([email protected])- '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/theme-translations': 3.4.0'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])@@ -8480,7 +8480,7 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-0A27alXuv7ZdCg28oPE8nH/Iz73/IUejVaCazqu9elS4ypjiLhK3KfzdSQBnL/g7YfHSlymZKdiOHEo8fJ0qMA==}engines: {node: '>=18.0'}peerDependencies:@@ -8489,9 +8489,9 @@ packages:dependencies:'@docusaurus/mdx-loader': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])'@docusaurus/module-type-aliases': 3.4.0(@swc/[email protected])([email protected])([email protected])- '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-blog': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-pages': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])'@docusaurus/utils-common': 3.4.0(@docusaurus/[email protected])'@types/history': 4.7.11@@ -8524,7 +8524,7 @@ packages:- webpack-clidev: false- /@docusaurus/[email protected](@algolia/[email protected])(@docusaurus/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ /@docusaurus/[email protected](@algolia/[email protected])(@docusaurus/[email protected])(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-aiHFx7OCw4Wck1z6IoShVdUWIjntC8FHCw9c5dR8r3q4Ynh+zkS8y2eFFunN/DL6RXPzpnvKCg3vhLQYJDmT9Q==}engines: {node: '>=18.0'}peerDependencies:@@ -8532,10 +8532,10 @@ packages:react-dom: ^18.0.0dependencies:'@docsearch/react': 3.6.0(@algolia/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])- '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/core': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/logger': 3.4.0- '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])- '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/plugin-content-docs': 3.4.0(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@docusaurus/theme-common': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])'@docusaurus/theme-translations': 3.4.0'@docusaurus/utils': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])'@docusaurus/utils-validation': 3.4.0(@docusaurus/[email protected])(@swc/[email protected])@@ -19545,7 +19545,7 @@ packages:cross-spawn: 7.0.3signal-exit: 4.1.0resolution: {integrity: sha512-x1wumpHOEf4gDROmKTaB6i4/Q6H3LwmjVO7fIX47vBwlZbtPjU33hgoMuD/Q/y6SU8bnuYSoN6ZQOLshGp0T/g==}engines: {node: '>=10', yarn: '>=1.0.0'}peerDependencies:@@ -19565,7 +19565,7 @@ packages:chokidar: 3.5.3cosmiconfig: 6.0.0deepmerge: 4.2.2- eslint: 8.56.0+ eslint: 9.13.0fs-extra: 9.1.0glob: 7.2.0memfs: 3.4.3@@ -25318,7 +25318,7 @@ packages:react: 18.3.1dev: falseresolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==}engines: {node: '>=14'}peerDependencies:@@ -25337,7 +25337,7 @@ packages:escape-string-regexp: 4.0.0filesize: 8.0.7find-up: 5.0.0global-modules: 2.0.0globby: 11.1.0gzip-size: 6.0.0