remotion 4.0.52 → 4.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import type { LoopDisplay } from './CompositionManager.js';
3
3
  export type LayoutAndStyle = {
4
- layout: 'none';
5
- } | {
6
4
  layout?: 'absolute-fill';
7
5
  style?: React.CSSProperties;
8
6
  className?: string;
7
+ } | {
8
+ layout: 'none';
9
9
  };
10
- export type SequenceProps = {
10
+ export type SequencePropsWithoutDuration = {
11
11
  children: React.ReactNode;
12
12
  from?: number;
13
- durationInFrames?: number;
14
13
  name?: string;
15
14
  /**
16
15
  * @deprecated For internal use only.
@@ -21,6 +20,9 @@ export type SequenceProps = {
21
20
  */
22
21
  loopDisplay?: LoopDisplay;
23
22
  } & LayoutAndStyle;
23
+ export type SequenceProps = {
24
+ durationInFrames?: number;
25
+ } & SequencePropsWithoutDuration;
24
26
  /**
25
27
  * @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
26
28
  * @see [Documentation](https://www.remotion.dev/docs/sequence)
@@ -87,7 +87,7 @@ export { ClipRegion } from './NativeLayers.js';
87
87
  export { prefetch } from './prefetch.js';
88
88
  export { random, RandomSeed } from './random.js';
89
89
  export { registerRoot } from './register-root.js';
90
- export { Sequence } from './Sequence.js';
90
+ export { LayoutAndStyle, Sequence, SequenceProps, SequencePropsWithoutDuration, } from './Sequence.js';
91
91
  export { Series } from './series/index.js';
92
92
  export * from './spring/index.js';
93
93
  export { staticFile } from './static-file.js';
@@ -3,6 +3,7 @@ import type { LayoutAndStyle, SequenceProps } from '../Sequence.js';
3
3
  type SeriesSequenceProps = PropsWithChildren<{
4
4
  durationInFrames: number;
5
5
  offset?: number;
6
+ className?: string;
6
7
  } & Pick<SequenceProps, 'layout' | 'name'> & LayoutAndStyle>;
7
8
  declare const SeriesSequence: import("react").ForwardRefExoticComponent<SeriesSequenceProps & import("react").RefAttributes<HTMLDivElement>>;
8
9
  /**
@@ -28,10 +28,10 @@ const Series = ({ children }) => {
28
28
  if (castedChild.trim() === '') {
29
29
  return null;
30
30
  }
31
- throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but you passed a string "${castedChild}"`);
31
+ throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but you passed a string "${castedChild}"`);
32
32
  }
33
33
  if (castedChild.type !== SeriesSequence) {
34
- throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but got ${castedChild} instead`);
34
+ throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but got ${castedChild} instead`);
35
35
  }
36
36
  const debugInfo = `index = ${i}, duration = ${castedChild.props.durationInFrames}`;
37
37
  if (!(castedChild === null || castedChild === void 0 ? void 0 : castedChild.props.children)) {
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.52";
1
+ export declare const VERSION = "4.0.54";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.52';
5
+ exports.VERSION = '4.0.54';
@@ -59,7 +59,7 @@ function truthy(value) {
59
59
  }
60
60
 
61
61
  // Automatically generated on publish
62
- const VERSION = '4.0.52';
62
+ const VERSION = '4.0.54';
63
63
 
64
64
  const checkMultipleRemotionVersions = () => {
65
65
  if (typeof globalThis === 'undefined') {
@@ -4059,10 +4059,10 @@ const Series = ({ children }) => {
4059
4059
  if (castedChild.trim() === '') {
4060
4060
  return null;
4061
4061
  }
4062
- throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but you passed a string "${castedChild}"`);
4062
+ throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but you passed a string "${castedChild}"`);
4063
4063
  }
4064
4064
  if (castedChild.type !== SeriesSequence) {
4065
- throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as it's children, but got ${castedChild} instead`);
4065
+ throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but got ${castedChild} instead`);
4066
4066
  }
4067
4067
  const debugInfo = `index = ${i}, duration = ${castedChild.props.durationInFrames}`;
4068
4068
  if (!(castedChild === null || castedChild === void 0 ? void 0 : castedChild.props.children)) {
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.52';
2
+ const VERSION = '4.0.54';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.52",
3
+ "version": "4.0.54",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "@testing-library/react": "14.0.0",
24
24
  "@types/node": "18.14.6",
25
25
  "@types/react": "18.0.26",
26
- "@types/react-dom": "18.0.10",
26
+ "@types/react-dom": "18.0.11",
27
27
  "@vitejs/plugin-react": "^2.0.0",
28
28
  "eslint": "8.42.0",
29
29
  "eslint-plugin-require-extensions": "^0.1.2",