@remotion/gif 4.0.477 → 4.0.479

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.d.ts CHANGED
@@ -1,14 +1,12 @@
1
1
  import React from 'react';
2
- import { type EffectsProp, type SequenceControls, type SequenceProps } from 'remotion';
2
+ import { type EffectsProp, type InteractiveBaseProps, type InteractiveTransformProps, type SequenceControls } from 'remotion';
3
3
  import type { RemotionGifProps } from './props';
4
- export type GifProps = Omit<SequenceProps, 'children' | 'durationInFrames' | 'layout' | '_remotionInternalEffects'> & RemotionGifProps & {
5
- readonly durationInFrames?: number;
4
+ export type GifProps = InteractiveBaseProps & InteractiveTransformProps & RemotionGifProps & {
6
5
  readonly effects?: EffectsProp;
7
6
  };
8
- export declare const Gif: React.ComponentType<Omit<SequenceProps, "_remotionInternalEffects" | "children" | "durationInFrames" | "layout"> & RemotionGifProps & {
9
- readonly durationInFrames?: number | undefined;
7
+ export declare const Gif: React.ComponentType<InteractiveBaseProps & InteractiveTransformProps & RemotionGifProps & {
10
8
  readonly effects?: EffectsProp | undefined;
11
9
  } & {
12
- readonly _experimentalControls?: SequenceControls | undefined;
10
+ readonly controls?: SequenceControls | undefined;
13
11
  readonly ref?: React.Ref<HTMLCanvasElement> | undefined;
14
12
  }>;
package/dist/cjs/Gif.js CHANGED
@@ -9,15 +9,13 @@ const react_1 = __importDefault(require("react"));
9
9
  const remotion_1 = require("remotion");
10
10
  const GifForDevelopment_1 = require("./GifForDevelopment");
11
11
  const GifForRendering_1 = require("./GifForRendering");
12
- const { addSequenceStackTraces, useMemoizedEffectDefinitions, useMemoizedEffects, wrapInSchema, durationInFramesField, freezeField, fromField, } = remotion_1.Internals;
12
+ const { addSequenceStackTraces, useMemoizedEffectDefinitions, useMemoizedEffects, } = remotion_1.Internals;
13
13
  /*
14
14
  * @description Displays a GIF that synchronizes with Remotions useCurrentFrame().
15
15
  * @see [Documentation](https://remotion.dev/docs/gif)
16
16
  */
17
17
  const gifSchema = {
18
- durationInFrames: durationInFramesField,
19
- from: fromField,
20
- freeze: freezeField,
18
+ ...remotion_1.Internals.baseSchema,
21
19
  playbackRate: {
22
20
  type: 'number',
23
21
  min: 0,
@@ -28,10 +26,9 @@ const gifSchema = {
28
26
  hiddenFromList: false,
29
27
  keyframable: false,
30
28
  },
31
- ...remotion_1.Internals.sequenceVisualStyleSchema,
32
- hidden: remotion_1.Internals.hiddenField,
29
+ ...remotion_1.Internals.transformSchema,
33
30
  };
34
- const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loopBehavior, id, delayRenderTimeoutInMilliseconds, requestInit, durationInFrames, style, _experimentalControls: controls, effects = [], ref, ...sequenceProps }) => {
31
+ const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loopBehavior, id, delayRenderTimeoutInMilliseconds, requestInit, durationInFrames, style, controls, effects = [], ref, ...sequenceProps }) => {
35
32
  var _a;
36
33
  const env = (0, remotion_1.useRemotionEnvironment)();
37
34
  const { durationInFrames: videoDuration } = (0, remotion_1.useVideoConfig)();
@@ -58,9 +55,9 @@ const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loop
58
55
  effects: memoizedEffects,
59
56
  };
60
57
  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 }));
61
- return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", durationInFrames: resolvedDuration, name: "<Gif>", _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif", _experimentalControls: controls, _remotionInternalEffects: memoizedEffectDefinitions, ...sequenceProps, _remotionInternalRefForOutline: refForOutline, children: inner }));
58
+ return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", durationInFrames: resolvedDuration, name: "<Gif>", _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif", controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, ...sequenceProps, outlineRef: refForOutline, children: inner }));
62
59
  };
63
- exports.Gif = wrapInSchema({
60
+ exports.Gif = remotion_1.Interactive.withSchema({
64
61
  Component: GifInner,
65
62
  componentIdentity: 'dev.remotion.gif.Gif',
66
63
  schema: gifSchema,
@@ -875,6 +875,7 @@ var getGifDurationInSeconds = async (src2, options) => {
875
875
  import React from "react";
876
876
  import {
877
877
  Internals as Internals3,
878
+ Interactive,
878
879
  Sequence,
879
880
  useRemotionEnvironment,
880
881
  useVideoConfig as useVideoConfig2
@@ -1436,16 +1437,10 @@ import { jsx as jsx4 } from "react/jsx-runtime";
1436
1437
  var {
1437
1438
  addSequenceStackTraces,
1438
1439
  useMemoizedEffectDefinitions,
1439
- useMemoizedEffects,
1440
- wrapInSchema,
1441
- durationInFramesField,
1442
- freezeField,
1443
- fromField
1440
+ useMemoizedEffects
1444
1441
  } = Internals3;
1445
1442
  var gifSchema = {
1446
- durationInFrames: durationInFramesField,
1447
- from: fromField,
1448
- freeze: freezeField,
1443
+ ...Internals3.baseSchema,
1449
1444
  playbackRate: {
1450
1445
  type: "number",
1451
1446
  min: 0,
@@ -1456,8 +1451,7 @@ var gifSchema = {
1456
1451
  hiddenFromList: false,
1457
1452
  keyframable: false
1458
1453
  },
1459
- ...Internals3.sequenceVisualStyleSchema,
1460
- hidden: Internals3.hiddenField
1454
+ ...Internals3.transformSchema
1461
1455
  };
1462
1456
  var GifInner = ({
1463
1457
  src: src2,
@@ -1473,7 +1467,7 @@ var GifInner = ({
1473
1467
  requestInit,
1474
1468
  durationInFrames,
1475
1469
  style,
1476
- _experimentalControls: controls,
1470
+ controls,
1477
1471
  effects = [],
1478
1472
  ref,
1479
1473
  ...sequenceProps
@@ -1515,14 +1509,14 @@ var GifInner = ({
1515
1509
  durationInFrames: resolvedDuration,
1516
1510
  name: "<Gif>",
1517
1511
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif",
1518
- _experimentalControls: controls,
1512
+ controls,
1519
1513
  _remotionInternalEffects: memoizedEffectDefinitions,
1520
1514
  ...sequenceProps,
1521
- _remotionInternalRefForOutline: refForOutline,
1515
+ outlineRef: refForOutline,
1522
1516
  children: inner
1523
1517
  });
1524
1518
  };
1525
- var Gif = wrapInSchema({
1519
+ var Gif = Interactive.withSchema({
1526
1520
  Component: GifInner,
1527
1521
  componentIdentity: "dev.remotion.gif.Gif",
1528
1522
  schema: gifSchema,
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.477",
6
+ "version": "4.0.479",
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.477"
33
+ "remotion": "4.0.479"
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.477",
41
+ "@remotion/eslint-config-internal": "4.0.479",
42
42
  "eslint": "9.19.0",
43
43
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
44
44
  },