remotion 4.0.44 → 4.0.46

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,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type React from 'react';
2
2
  import type { AnyZodObject } from 'zod';
3
3
  import type { AnyComposition, TComposition } from './CompositionManager.js';
4
4
  import type { TFolder } from './Folder.js';
@@ -10,6 +10,9 @@ export type CanvasContent = {
10
10
  } | {
11
11
  type: 'asset';
12
12
  asset: string;
13
+ } | {
14
+ type: 'output';
15
+ path: string;
13
16
  };
14
17
  export type CompositionManagerContext = {
15
18
  compositions: AnyComposition[];
@@ -21,6 +24,6 @@ export type CompositionManagerContext = {
21
24
  currentCompositionMetadata: BaseMetadata | null;
22
25
  folders: TFolder[];
23
26
  canvasContent: CanvasContent | null;
24
- setCanvasContent: (canvasContent: CanvasContent | null) => void;
27
+ setCanvasContent: React.Dispatch<React.SetStateAction<CanvasContent | null>>;
25
28
  };
26
- export declare const CompositionManager: import("react").Context<CompositionManagerContext>;
29
+ export declare const CompositionManager: React.Context<CompositionManagerContext>;
@@ -100,7 +100,9 @@ const SequenceRefForwardingFunction = ({ from = 0, durationInFrames = Infinity,
100
100
  nonce,
101
101
  loopDisplay,
102
102
  ]);
103
- const endThreshold = cumulatedFrom + from + durationInFrames - 1;
103
+ // Ceil to support floats
104
+ // https://github.com/remotion-dev/remotion/issues/2958
105
+ const endThreshold = Math.ceil(cumulatedFrom + from + durationInFrames - 1);
104
106
  const content = absoluteFrame < cumulatedFrom + from
105
107
  ? null
106
108
  : absoluteFrame > endThreshold
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.44";
1
+ export declare const VERSION = "4.0.46";
@@ -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.44';
5
+ exports.VERSION = '4.0.46';
@@ -59,7 +59,7 @@ function truthy(value) {
59
59
  }
60
60
 
61
61
  // Automatically generated on publish
62
- const VERSION = '4.0.44';
62
+ const VERSION = '4.0.46';
63
63
 
64
64
  const checkMultipleRemotionVersions = () => {
65
65
  if (typeof globalThis === 'undefined') {
@@ -1088,7 +1088,9 @@ const SequenceRefForwardingFunction = ({ from = 0, durationInFrames = Infinity,
1088
1088
  nonce,
1089
1089
  loopDisplay,
1090
1090
  ]);
1091
- const endThreshold = cumulatedFrom + from + durationInFrames - 1;
1091
+ // Ceil to support floats
1092
+ // https://github.com/remotion-dev/remotion/issues/2958
1093
+ const endThreshold = Math.ceil(cumulatedFrom + from + durationInFrames - 1);
1092
1094
  const content = absoluteFrame < cumulatedFrom + from
1093
1095
  ? null
1094
1096
  : absoluteFrame > endThreshold
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.44';
2
+ const VERSION = '4.0.46';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.44",
3
+ "version": "4.0.46",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "rollup": "^2.70.1",
37
37
  "vitest": "0.31.1",
38
38
  "webpack": "5.83.1",
39
- "zod": "3.21.4"
39
+ "zod": "3.22.3"
40
40
  },
41
41
  "keywords": [
42
42
  "remotion",