@remotion/transitions 4.0.461 → 4.0.462
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/esm/index.mjs
CHANGED
|
@@ -527,7 +527,11 @@ var useTransitionProgress = () => {
|
|
|
527
527
|
};
|
|
528
528
|
// src/html-in-canvas-presentation.tsx
|
|
529
529
|
import { useLayoutEffect, useMemo as useMemo4, useRef as useRef2, useState, useCallback as useCallback2 } from "react";
|
|
530
|
-
import {
|
|
530
|
+
import {
|
|
531
|
+
HtmlInCanvas,
|
|
532
|
+
HTML_IN_CANVAS_UNSUPPORTED_MESSAGE,
|
|
533
|
+
useDelayRender
|
|
534
|
+
} from "remotion";
|
|
531
535
|
import { AbsoluteFill as AbsoluteFill2, Internals as Internals2, useCurrentFrame as useCurrentFrame2 } from "remotion";
|
|
532
536
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
533
537
|
var HtmlInCanvasPresentation = ({
|
|
@@ -542,7 +546,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
542
546
|
bothEnteringAndExiting
|
|
543
547
|
}) => {
|
|
544
548
|
if (!HtmlInCanvas.isSupported()) {
|
|
545
|
-
throw new Error(
|
|
549
|
+
throw new Error(HTML_IN_CANVAS_UNSUPPORTED_MESSAGE);
|
|
546
550
|
}
|
|
547
551
|
const canvasRef = useRef2(null);
|
|
548
552
|
const canvasSubtreeStyle = useMemo4(() => {
|
|
@@ -562,7 +566,10 @@ var HtmlInCanvasPresentation = ({
|
|
|
562
566
|
const frame = useCurrentFrame2();
|
|
563
567
|
const frameRef = useRef2(frame);
|
|
564
568
|
frameRef.current = frame;
|
|
565
|
-
const memoizedEffects = Internals2.useMemoizedEffects(
|
|
569
|
+
const memoizedEffects = Internals2.useMemoizedEffects({
|
|
570
|
+
effects: _experimentalEffects ?? [],
|
|
571
|
+
overrideId: null
|
|
572
|
+
});
|
|
566
573
|
const effectsRef = useRef2(memoizedEffects);
|
|
567
574
|
effectsRef.current = memoizedEffects;
|
|
568
575
|
const [instance] = useState(() => shader(offscreenCanvas));
|
package/dist/esm/zoom-blur.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// src/html-in-canvas-presentation.tsx
|
|
2
2
|
import { useLayoutEffect, useMemo, useRef, useState, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
HtmlInCanvas,
|
|
5
|
+
HTML_IN_CANVAS_UNSUPPORTED_MESSAGE,
|
|
6
|
+
useDelayRender
|
|
7
|
+
} from "remotion";
|
|
4
8
|
import { AbsoluteFill, Internals, useCurrentFrame } from "remotion";
|
|
5
9
|
import { jsx } from "react/jsx-runtime";
|
|
6
10
|
var HtmlInCanvasPresentation = ({
|
|
@@ -15,7 +19,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
15
19
|
bothEnteringAndExiting
|
|
16
20
|
}) => {
|
|
17
21
|
if (!HtmlInCanvas.isSupported()) {
|
|
18
|
-
throw new Error(
|
|
22
|
+
throw new Error(HTML_IN_CANVAS_UNSUPPORTED_MESSAGE);
|
|
19
23
|
}
|
|
20
24
|
const canvasRef = useRef(null);
|
|
21
25
|
const canvasSubtreeStyle = useMemo(() => {
|
|
@@ -35,7 +39,10 @@ var HtmlInCanvasPresentation = ({
|
|
|
35
39
|
const frame = useCurrentFrame();
|
|
36
40
|
const frameRef = useRef(frame);
|
|
37
41
|
frameRef.current = frame;
|
|
38
|
-
const memoizedEffects = Internals.useMemoizedEffects(
|
|
42
|
+
const memoizedEffects = Internals.useMemoizedEffects({
|
|
43
|
+
effects: _experimentalEffects ?? [],
|
|
44
|
+
overrideId: null
|
|
45
|
+
});
|
|
39
46
|
const effectsRef = useRef(memoizedEffects);
|
|
40
47
|
effectsRef.current = memoizedEffects;
|
|
41
48
|
const [instance] = useState(() => shader(offscreenCanvas));
|
package/dist/esm/zoom-in-out.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// src/html-in-canvas-presentation.tsx
|
|
2
2
|
import { useLayoutEffect, useMemo, useRef, useState, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
HtmlInCanvas,
|
|
5
|
+
HTML_IN_CANVAS_UNSUPPORTED_MESSAGE,
|
|
6
|
+
useDelayRender
|
|
7
|
+
} from "remotion";
|
|
4
8
|
import { AbsoluteFill, Internals, useCurrentFrame } from "remotion";
|
|
5
9
|
import { jsx } from "react/jsx-runtime";
|
|
6
10
|
var HtmlInCanvasPresentation = ({
|
|
@@ -15,7 +19,7 @@ var HtmlInCanvasPresentation = ({
|
|
|
15
19
|
bothEnteringAndExiting
|
|
16
20
|
}) => {
|
|
17
21
|
if (!HtmlInCanvas.isSupported()) {
|
|
18
|
-
throw new Error(
|
|
22
|
+
throw new Error(HTML_IN_CANVAS_UNSUPPORTED_MESSAGE);
|
|
19
23
|
}
|
|
20
24
|
const canvasRef = useRef(null);
|
|
21
25
|
const canvasSubtreeStyle = useMemo(() => {
|
|
@@ -35,7 +39,10 @@ var HtmlInCanvasPresentation = ({
|
|
|
35
39
|
const frame = useCurrentFrame();
|
|
36
40
|
const frameRef = useRef(frame);
|
|
37
41
|
frameRef.current = frame;
|
|
38
|
-
const memoizedEffects = Internals.useMemoizedEffects(
|
|
42
|
+
const memoizedEffects = Internals.useMemoizedEffects({
|
|
43
|
+
effects: _experimentalEffects ?? [],
|
|
44
|
+
overrideId: null
|
|
45
|
+
});
|
|
39
46
|
const effectsRef = useRef(memoizedEffects);
|
|
40
47
|
effectsRef.current = memoizedEffects;
|
|
41
48
|
const [instance] = useState(() => shader(offscreenCanvas));
|
|
@@ -7,7 +7,7 @@ const remotion_1 = require("remotion");
|
|
|
7
7
|
const remotion_2 = require("remotion");
|
|
8
8
|
const HtmlInCanvasPresentation = ({ children, onElementImage, onUnmount, presentationProgress, presentationDirection, shader, _experimentalEffects, passedProps, bothEnteringAndExiting, }) => {
|
|
9
9
|
if (!remotion_1.HtmlInCanvas.isSupported()) {
|
|
10
|
-
throw new Error(
|
|
10
|
+
throw new Error(remotion_1.HTML_IN_CANVAS_UNSUPPORTED_MESSAGE);
|
|
11
11
|
}
|
|
12
12
|
const canvasRef = (0, react_1.useRef)(null);
|
|
13
13
|
const canvasSubtreeStyle = (0, react_1.useMemo)(() => {
|
|
@@ -27,7 +27,10 @@ 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 memoizedEffects = remotion_2.Internals.useMemoizedEffects(
|
|
30
|
+
const memoizedEffects = remotion_2.Internals.useMemoizedEffects({
|
|
31
|
+
effects: _experimentalEffects !== null && _experimentalEffects !== void 0 ? _experimentalEffects : [],
|
|
32
|
+
overrideId: null,
|
|
33
|
+
});
|
|
31
34
|
const effectsRef = (0, react_1.useRef)(memoizedEffects);
|
|
32
35
|
effectsRef.current = memoizedEffects;
|
|
33
36
|
const [instance] = (0, react_1.useState)(() => shader(offscreenCanvas));
|
package/package.json
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
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.462",
|
|
7
7
|
"description": "Library for creating transitions in Remotion",
|
|
8
|
-
"sideEffects": false,
|
|
9
8
|
"main": "dist/esm/index.mjs",
|
|
10
9
|
"module": "dist/esm/index.js",
|
|
11
10
|
"types": "dist/index.d.ts",
|
|
@@ -23,18 +22,18 @@
|
|
|
23
22
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/shapes": "4.0.
|
|
28
|
-
"@remotion/paths": "4.0.
|
|
25
|
+
"remotion": "4.0.462",
|
|
26
|
+
"@remotion/shapes": "4.0.462",
|
|
27
|
+
"@remotion/paths": "4.0.462"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"@happy-dom/global-registrator": "14.5.1",
|
|
32
|
-
"remotion": "4.0.
|
|
31
|
+
"remotion": "4.0.462",
|
|
33
32
|
"react": "19.2.3",
|
|
34
33
|
"react-dom": "19.2.3",
|
|
35
|
-
"@remotion/test-utils": "4.0.
|
|
36
|
-
"@remotion/player": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/test-utils": "4.0.462",
|
|
35
|
+
"@remotion/player": "4.0.462",
|
|
36
|
+
"@remotion/eslint-config-internal": "4.0.462",
|
|
38
37
|
"eslint": "9.19.0",
|
|
39
38
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
40
39
|
},
|