@remotion/gif 4.0.492 → 4.0.494
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/cjs/Gif.js +1 -3
- package/dist/esm/index.mjs +2 -5
- package/package.json +3 -3
package/dist/cjs/Gif.js
CHANGED
|
@@ -31,8 +31,6 @@ const gifSchema = {
|
|
|
31
31
|
const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loopBehavior, id, delayRenderTimeoutInMilliseconds, requestInit, durationInFrames, style, controls, effects = [], ref, ...sequenceProps }) => {
|
|
32
32
|
var _a;
|
|
33
33
|
const env = (0, remotion_1.useRemotionEnvironment)();
|
|
34
|
-
const { durationInFrames: videoDuration } = (0, remotion_1.useVideoConfig)();
|
|
35
|
-
const resolvedDuration = durationInFrames !== null && durationInFrames !== void 0 ? durationInFrames : videoDuration;
|
|
36
34
|
const refForOutline = react_1.default.useRef(null);
|
|
37
35
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
38
36
|
const memoizedEffects = useMemoizedEffects({
|
|
@@ -55,7 +53,7 @@ const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loop
|
|
|
55
53
|
effects: memoizedEffects,
|
|
56
54
|
};
|
|
57
55
|
const inner = env.isRendering ? (jsx_runtime_1.jsx(GifForRendering_1.GifForRendering, { ...gifProps, ref: ref })) : (jsx_runtime_1.jsx(GifForDevelopment_1.GifForDevelopment, { ...gifProps, ref: ref, refForOutline: refForOutline }));
|
|
58
|
-
return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", durationInFrames:
|
|
56
|
+
return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", durationInFrames: durationInFrames, name: "<Gif>", _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif", controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, ...sequenceProps, outlineRef: refForOutline, children: inner }));
|
|
59
57
|
};
|
|
60
58
|
exports.Gif = remotion_1.Interactive.withSchema({
|
|
61
59
|
Component: GifInner,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -877,8 +877,7 @@ import {
|
|
|
877
877
|
Internals as Internals3,
|
|
878
878
|
Interactive,
|
|
879
879
|
Sequence,
|
|
880
|
-
useRemotionEnvironment
|
|
881
|
-
useVideoConfig as useVideoConfig2
|
|
880
|
+
useRemotionEnvironment
|
|
882
881
|
} from "remotion";
|
|
883
882
|
|
|
884
883
|
// src/GifForDevelopment.tsx
|
|
@@ -1475,8 +1474,6 @@ var GifInner = ({
|
|
|
1475
1474
|
...sequenceProps
|
|
1476
1475
|
}) => {
|
|
1477
1476
|
const env = useRemotionEnvironment();
|
|
1478
|
-
const { durationInFrames: videoDuration } = useVideoConfig2();
|
|
1479
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
1480
1477
|
const refForOutline = React.useRef(null);
|
|
1481
1478
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
1482
1479
|
const memoizedEffects = useMemoizedEffects({
|
|
@@ -1508,7 +1505,7 @@ var GifInner = ({
|
|
|
1508
1505
|
});
|
|
1509
1506
|
return /* @__PURE__ */ jsx4(Sequence, {
|
|
1510
1507
|
layout: "none",
|
|
1511
|
-
durationInFrames
|
|
1508
|
+
durationInFrames,
|
|
1512
1509
|
name: "<Gif>",
|
|
1513
1510
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif",
|
|
1514
1511
|
controls,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/gif"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/gif",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.494",
|
|
7
7
|
"description": "Embed GIFs in a Remotion video",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"remotion": "4.0.
|
|
33
|
+
"remotion": "4.0.494"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/react": "16.1.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react": "19.2.3",
|
|
39
39
|
"react-dom": "19.2.3",
|
|
40
40
|
"webpack": "5.105.0",
|
|
41
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
41
|
+
"@remotion/eslint-config-internal": "4.0.494",
|
|
42
42
|
"eslint": "9.19.0",
|
|
43
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
44
44
|
},
|