@remotion/transitions 4.0.459 → 4.0.461
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.
package/dist/TransitionSeries.js
CHANGED
|
@@ -168,9 +168,6 @@ const TransitionSeriesChildren = ({ children, }) => {
|
|
|
168
168
|
: null;
|
|
169
169
|
const castedChildAgain = current;
|
|
170
170
|
const debugInfo = `index = ${i}, duration = ${castedChildAgain.props.durationInFrames}`;
|
|
171
|
-
if (!(castedChildAgain === null || castedChildAgain === void 0 ? void 0 : castedChildAgain.props.children)) {
|
|
172
|
-
throw new TypeError(`A <TransitionSeries.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);
|
|
173
|
-
}
|
|
174
171
|
const durationInFramesProp = castedChildAgain.props.durationInFrames;
|
|
175
172
|
const { durationInFrames, children: _children, ...passedProps } = castedChildAgain.props;
|
|
176
173
|
(0, validate_js_1.validateDurationInFrames)(durationInFramesProp, {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -307,9 +307,6 @@ var TransitionSeriesChildren = ({
|
|
|
307
307
|
const next = typeof nextPrev === "string" || typeof nextPrev === "undefined" ? null : nextPrev.type === TransitionSeriesTransition ? nextPrev : null;
|
|
308
308
|
const castedChildAgain = current;
|
|
309
309
|
const debugInfo = `index = ${i}, duration = ${castedChildAgain.props.durationInFrames}`;
|
|
310
|
-
if (!castedChildAgain?.props.children) {
|
|
311
|
-
throw new TypeError(`A <TransitionSeries.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);
|
|
312
|
-
}
|
|
313
310
|
const durationInFramesProp = castedChildAgain.props.durationInFrames;
|
|
314
311
|
const {
|
|
315
312
|
durationInFrames,
|
|
@@ -565,8 +562,9 @@ var HtmlInCanvasPresentation = ({
|
|
|
565
562
|
const frame = useCurrentFrame2();
|
|
566
563
|
const frameRef = useRef2(frame);
|
|
567
564
|
frameRef.current = frame;
|
|
568
|
-
const
|
|
569
|
-
effectsRef
|
|
565
|
+
const memoizedEffects = Internals2.useMemoizedEffects(Internals2.flattenEffects(_experimentalEffects ?? []));
|
|
566
|
+
const effectsRef = useRef2(memoizedEffects);
|
|
567
|
+
effectsRef.current = memoizedEffects;
|
|
570
568
|
const [instance] = useState(() => shader(offscreenCanvas));
|
|
571
569
|
useLayoutEffect(() => {
|
|
572
570
|
return () => {
|
|
@@ -645,7 +643,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
645
643
|
throw new Error("Canvas not found");
|
|
646
644
|
}
|
|
647
645
|
canvas.requestPaint?.();
|
|
648
|
-
}, [presentationProgress, passThrough]);
|
|
646
|
+
}, [presentationProgress, passThrough, memoizedEffects]);
|
|
649
647
|
useLayoutEffect(() => {
|
|
650
648
|
if (passThrough) {
|
|
651
649
|
return;
|
package/dist/esm/zoom-blur.mjs
CHANGED
|
@@ -35,8 +35,9 @@ var HtmlInCanvasPresentation = ({
|
|
|
35
35
|
const frame = useCurrentFrame();
|
|
36
36
|
const frameRef = useRef(frame);
|
|
37
37
|
frameRef.current = frame;
|
|
38
|
-
const
|
|
39
|
-
effectsRef
|
|
38
|
+
const memoizedEffects = Internals.useMemoizedEffects(Internals.flattenEffects(_experimentalEffects ?? []));
|
|
39
|
+
const effectsRef = useRef(memoizedEffects);
|
|
40
|
+
effectsRef.current = memoizedEffects;
|
|
40
41
|
const [instance] = useState(() => shader(offscreenCanvas));
|
|
41
42
|
useLayoutEffect(() => {
|
|
42
43
|
return () => {
|
|
@@ -115,7 +116,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
115
116
|
throw new Error("Canvas not found");
|
|
116
117
|
}
|
|
117
118
|
canvas.requestPaint?.();
|
|
118
|
-
}, [presentationProgress, passThrough]);
|
|
119
|
+
}, [presentationProgress, passThrough, memoizedEffects]);
|
|
119
120
|
useLayoutEffect(() => {
|
|
120
121
|
if (passThrough) {
|
|
121
122
|
return;
|
package/dist/esm/zoom-in-out.mjs
CHANGED
|
@@ -35,8 +35,9 @@ var HtmlInCanvasPresentation = ({
|
|
|
35
35
|
const frame = useCurrentFrame();
|
|
36
36
|
const frameRef = useRef(frame);
|
|
37
37
|
frameRef.current = frame;
|
|
38
|
-
const
|
|
39
|
-
effectsRef
|
|
38
|
+
const memoizedEffects = Internals.useMemoizedEffects(Internals.flattenEffects(_experimentalEffects ?? []));
|
|
39
|
+
const effectsRef = useRef(memoizedEffects);
|
|
40
|
+
effectsRef.current = memoizedEffects;
|
|
40
41
|
const [instance] = useState(() => shader(offscreenCanvas));
|
|
41
42
|
useLayoutEffect(() => {
|
|
42
43
|
return () => {
|
|
@@ -115,7 +116,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
115
116
|
throw new Error("Canvas not found");
|
|
116
117
|
}
|
|
117
118
|
canvas.requestPaint?.();
|
|
118
|
-
}, [presentationProgress, passThrough]);
|
|
119
|
+
}, [presentationProgress, passThrough, memoizedEffects]);
|
|
119
120
|
useLayoutEffect(() => {
|
|
120
121
|
if (passThrough) {
|
|
121
122
|
return;
|
|
@@ -27,8 +27,9 @@ const HtmlInCanvasPresentation = ({ children, onElementImage, onUnmount, present
|
|
|
27
27
|
const frame = (0, remotion_2.useCurrentFrame)();
|
|
28
28
|
const frameRef = (0, react_1.useRef)(frame);
|
|
29
29
|
frameRef.current = frame;
|
|
30
|
-
const
|
|
31
|
-
effectsRef
|
|
30
|
+
const memoizedEffects = remotion_2.Internals.useMemoizedEffects(remotion_2.Internals.flattenEffects(_experimentalEffects !== null && _experimentalEffects !== void 0 ? _experimentalEffects : []));
|
|
31
|
+
const effectsRef = (0, react_1.useRef)(memoizedEffects);
|
|
32
|
+
effectsRef.current = memoizedEffects;
|
|
32
33
|
const [instance] = (0, react_1.useState)(() => shader(offscreenCanvas));
|
|
33
34
|
(0, react_1.useLayoutEffect)(() => {
|
|
34
35
|
return () => {
|
|
@@ -109,7 +110,7 @@ const HtmlInCanvasPresentation = ({ children, onElementImage, onUnmount, present
|
|
|
109
110
|
throw new Error('Canvas not found');
|
|
110
111
|
}
|
|
111
112
|
(_a = canvas.requestPaint) === null || _a === void 0 ? void 0 : _a.call(canvas);
|
|
112
|
-
}, [presentationProgress, passThrough]);
|
|
113
|
+
}, [presentationProgress, passThrough, memoizedEffects]);
|
|
113
114
|
(0, react_1.useLayoutEffect)(() => {
|
|
114
115
|
if (passThrough) {
|
|
115
116
|
return;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/transitions"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/transitions",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.461",
|
|
7
7
|
"description": "Library for creating transitions in Remotion",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"main": "dist/esm/index.mjs",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/shapes": "4.0.
|
|
28
|
-
"@remotion/paths": "4.0.
|
|
26
|
+
"remotion": "4.0.461",
|
|
27
|
+
"@remotion/shapes": "4.0.461",
|
|
28
|
+
"@remotion/paths": "4.0.461"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@happy-dom/global-registrator": "14.5.1",
|
|
32
|
-
"remotion": "4.0.
|
|
32
|
+
"remotion": "4.0.461",
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-dom": "19.2.3",
|
|
35
|
-
"@remotion/test-utils": "4.0.
|
|
36
|
-
"@remotion/player": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
35
|
+
"@remotion/test-utils": "4.0.461",
|
|
36
|
+
"@remotion/player": "4.0.461",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.461",
|
|
38
38
|
"eslint": "9.19.0",
|
|
39
39
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
40
40
|
},
|