Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into transitions

Jonny Burgera9306afa8766
diff --cc packages/cloudrun/package.json
index eadf3c9d3f,7f3e76620e..cbe9be03f8
--- a/packages/cloudrun/package.json
+++ b/packages/cloudrun/package.json
@@@ -32,10 -32,10 +32,10 @@@
"@remotion/compositor-linux-x64-gnu": "workspace:*",
"@types/minimist": "1.2.2",
"eslint": "8.42.0",
- "prettier": "^2.7.1",
+ "prettier": "3.0.2",
"prettier-plugin-organize-imports": "^3.2.2",
"ts-node": "^10.8.0",
- "vitest": "0.24.3"
+ "vitest": "0.31.1"
},
"exports": {
"./package.json": "./package.json",
diff --cc packages/core/src/Sequence.tsx
index 3634822ef4,af645feb46..bd29254b02
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@@ -24,16 -27,20 +24,22 @@@ export type LayoutAndStyle
layout?: 'absolute-fill';
style?: React.CSSProperties;
className?: string;
+ }
+ | {
+ layout: 'none';
};
-export type SequenceProps = {
+export type SequencePropsWithoutDuration = {
children: React.ReactNode;
from?: number;
- durationInFrames?: number;
name?: string;
+ /**
+ * @deprecated For internal use only.
+ */
showInTimeline?: boolean;
+ /**
+ * @deprecated For internal use only.
+ */
loopDisplay?: LoopDisplay;
} & LayoutAndStyle;
diff --cc packages/core/src/series/index.tsx
index 3401501624,976fcc4740..e56eca4f8c
--- a/packages/core/src/series/index.tsx
+++ b/packages/core/src/series/index.tsx
@@@ -53,13 -52,13 +53,13 @@@ const Series: FC<
}
throw new TypeError(
- `The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but you passed a string "${castedChild}"`
- `The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but you passed a string "${castedChild}"`,
++ `The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but you passed a string "${castedChild}"`,
);
}
if (castedChild.type !== SeriesSequence) {
throw new TypeError(
- `The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but got ${castedChild} instead`
- `The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but got ${castedChild} instead`,
++ `The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but got ${castedChild} instead`,
);
}
diff --cc packages/rive/package.json
index a8c556f321,500f80ce5b..61234faf39
--- a/packages/rive/package.json
+++ b/packages/rive/package.json
@@@ -32,10 -32,10 +32,10 @@@
"@jonny/eslint-config": "^3.0.273",
"@rollup/plugin-typescript": "^8.2.0",
"@types/node": "18.14.6",
- "@types/react": "^18.0.28",
+ "@types/react": "18.0.26",
"@types/react-dom": "^18.0.11",
"eslint": "8.42.0",
- "prettier": "^2.8.4",
+ "prettier": "3.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^2.70.1"