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
|
-
|
|
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:
|
|
27
|
+
setCanvasContent: React.Dispatch<React.SetStateAction<CanvasContent | null>>;
|
|
25
28
|
};
|
|
26
|
-
export declare const CompositionManager:
|
|
29
|
+
export declare const CompositionManager: React.Context<CompositionManagerContext>;
|
package/dist/cjs/Sequence.js
CHANGED
|
@@ -100,7 +100,9 @@ const SequenceRefForwardingFunction = ({ from = 0, durationInFrames = Infinity,
|
|
|
100
100
|
nonce,
|
|
101
101
|
loopDisplay,
|
|
102
102
|
]);
|
|
103
|
-
|
|
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
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.46";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ function truthy(value) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Automatically generated on publish
|
|
62
|
-
const VERSION = '4.0.
|
|
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
|
-
|
|
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
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "4.0.
|
|
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.
|
|
39
|
+
"zod": "3.22.3"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"remotion",
|