@remotion/gif 4.0.208 → 4.0.209

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
 
2
- > @remotion/gif@4.0.207 build /Users/jonathanburger/remotion/packages/gif
2
+ > @remotion/gif@4.0.208 build /Users/jonathanburger/remotion/packages/gif
3
3
  > node build.mjs && bun --env-file=../.env.bundle bundle.ts
4
4
 
@@ -168,7 +168,7 @@ var Canvas = forwardRef(({ index, frames, width, height, fit, className, style }
168
168
  ctx.drawImage(tempCtx.canvas, ...calcArgs(fit, imageData, { width: size.width, height: size.height }));
169
169
  }
170
170
  }, [index, frames, fit, tempCtx, size]);
171
- return jsx("canvas", {
171
+ return /* @__PURE__ */ jsx("canvas", {
172
172
  ref: canvasRef,
173
173
  className,
174
174
  style,
@@ -1091,7 +1091,7 @@ var GifForDevelopment = forwardRef2(({
1091
1091
  if (index === -1) {
1092
1092
  return null;
1093
1093
  }
1094
- return jsx2(Canvas, {
1094
+ return /* @__PURE__ */ jsx2(Canvas, {
1095
1095
  fit,
1096
1096
  index,
1097
1097
  frames: state.frames,
@@ -1189,7 +1189,7 @@ var GifForRendering = forwardRef3(({
1189
1189
  if (index === -1) {
1190
1190
  return null;
1191
1191
  }
1192
- return jsx3(Canvas, {
1192
+ return /* @__PURE__ */ jsx3(Canvas, {
1193
1193
  fit,
1194
1194
  index,
1195
1195
  frames: state.frames,
@@ -1207,17 +1207,16 @@ jsx as jsx4
1207
1207
  var Gif = forwardRef4((props, ref) => {
1208
1208
  const env = getRemotionEnvironment();
1209
1209
  if (env.isRendering) {
1210
- return jsx4(GifForRendering, {
1210
+ return /* @__PURE__ */ jsx4(GifForRendering, {
1211
1211
  ...props,
1212
1212
  ref
1213
1213
  });
1214
1214
  }
1215
- return jsx4(GifForDevelopment, {
1215
+ return /* @__PURE__ */ jsx4(GifForDevelopment, {
1216
1216
  ...props,
1217
1217
  ref
1218
1218
  });
1219
1219
  });
1220
-
1221
1220
  // src/get-gif-duration-in-seconds.ts
1222
1221
  import {getRemotionEnvironment as getRemotionEnvironment2} from "remotion";
1223
1222
  var calcDuration = (parsed) => {
@@ -1242,7 +1241,6 @@ var getGifDurationInSeconds = async (src2) => {
1242
1241
  volatileGifCache.set(resolvedSrc, parsed);
1243
1242
  return calcDuration(parsed);
1244
1243
  };
1245
-
1246
1244
  // src/preload-gif.ts
1247
1245
  var preloadGif = (src2) => {
1248
1246
  const resolvedSrc = resolveGifSource(src2);
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.208",
6
+ "version": "4.0.209",
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.208"
27
+ "remotion": "4.0.209"
28
28
  },
29
29
  "devDependencies": {
30
30
  "esbuild": "0.18.6",