@remotion/gif 4.0.341 → 4.0.342
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/.turbo/turbo-make.log +1 -1
- package/dist/cjs/Gif.js +1 -1
- package/dist/esm/index.mjs +2 -2
- package/package.json +3 -3
package/.turbo/turbo-make.log
CHANGED
package/dist/cjs/Gif.js
CHANGED
|
@@ -11,7 +11,7 @@ const GifForRendering_1 = require("./GifForRendering");
|
|
|
11
11
|
* @see [Documentation](https://remotion.dev/docs/gif)
|
|
12
12
|
*/
|
|
13
13
|
exports.Gif = (0, react_1.forwardRef)((props, ref) => {
|
|
14
|
-
const env = (0, remotion_1.
|
|
14
|
+
const env = (0, remotion_1.useRemotionEnvironment)();
|
|
15
15
|
if (env.isRendering) {
|
|
16
16
|
return (0, jsx_runtime_1.jsx)(GifForRendering_1.GifForRendering, { ...props, ref: ref });
|
|
17
17
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -820,7 +820,7 @@ var getGifDurationInSeconds = async (src2) => {
|
|
|
820
820
|
};
|
|
821
821
|
// src/Gif.tsx
|
|
822
822
|
import { forwardRef as forwardRef4 } from "react";
|
|
823
|
-
import {
|
|
823
|
+
import { useRemotionEnvironment } from "remotion";
|
|
824
824
|
|
|
825
825
|
// src/GifForDevelopment.tsx
|
|
826
826
|
import { forwardRef as forwardRef2, useEffect as useEffect3, useRef as useRef2, useState as useState3 } from "react";
|
|
@@ -1225,7 +1225,7 @@ var GifForRendering = forwardRef3(({
|
|
|
1225
1225
|
// src/Gif.tsx
|
|
1226
1226
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1227
1227
|
var Gif = forwardRef4((props, ref) => {
|
|
1228
|
-
const env =
|
|
1228
|
+
const env = useRemotionEnvironment();
|
|
1229
1229
|
if (env.isRendering) {
|
|
1230
1230
|
return /* @__PURE__ */ jsx4(GifForRendering, {
|
|
1231
1231
|
...props,
|
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.342",
|
|
7
7
|
"description": "Embed GIFs in a Remotion video",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"bugs": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.342"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"esbuild": "0.25.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-dom": "19.0.0",
|
|
33
33
|
"webpack": "5.96.1",
|
|
34
34
|
"eslint": "9.19.0",
|
|
35
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
35
|
+
"@remotion/eslint-config-internal": "4.0.342"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.8.0",
|