@remotion/gif 4.0.478 → 4.0.481
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 +4 -6
- package/dist/cjs/Gif.js +7 -9
- package/dist/esm/index.mjs +9 -14
- package/package.json +3 -3
package/dist/cjs/Gif.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EffectsProp, type
|
|
2
|
+
import { type EffectsProp, type InteractiveBaseProps, type InteractiveTransformProps, type SequenceControls } from 'remotion';
|
|
3
3
|
import type { RemotionGifProps } from './props';
|
|
4
|
-
export type GifProps =
|
|
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<
|
|
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
|
|
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,
|
|
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
|
-
|
|
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.
|
|
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,
|
|
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,10 +55,11 @@ 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",
|
|
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 =
|
|
60
|
+
exports.Gif = remotion_1.Interactive.withSchema({
|
|
64
61
|
Component: GifInner,
|
|
62
|
+
componentName: '<Gif>',
|
|
65
63
|
componentIdentity: 'dev.remotion.gif.Gif',
|
|
66
64
|
schema: gifSchema,
|
|
67
65
|
supportsEffects: true,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|
-
|
|
1470
|
+
controls,
|
|
1477
1471
|
effects = [],
|
|
1478
1472
|
ref,
|
|
1479
1473
|
...sequenceProps
|
|
@@ -1515,15 +1509,16 @@ var GifInner = ({
|
|
|
1515
1509
|
durationInFrames: resolvedDuration,
|
|
1516
1510
|
name: "<Gif>",
|
|
1517
1511
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/gif/gif",
|
|
1518
|
-
|
|
1512
|
+
controls,
|
|
1519
1513
|
_remotionInternalEffects: memoizedEffectDefinitions,
|
|
1520
1514
|
...sequenceProps,
|
|
1521
|
-
|
|
1515
|
+
outlineRef: refForOutline,
|
|
1522
1516
|
children: inner
|
|
1523
1517
|
});
|
|
1524
1518
|
};
|
|
1525
|
-
var Gif =
|
|
1519
|
+
var Gif = Interactive.withSchema({
|
|
1526
1520
|
Component: GifInner,
|
|
1521
|
+
componentName: "<Gif>",
|
|
1527
1522
|
componentIdentity: "dev.remotion.gif.Gif",
|
|
1528
1523
|
schema: gifSchema,
|
|
1529
1524
|
supportsEffects: true
|
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.481",
|
|
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.481"
|
|
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.481",
|
|
42
42
|
"eslint": "9.19.0",
|
|
43
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
44
44
|
},
|