@remotion/gif 4.0.471 → 4.0.473
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 +10 -2
- package/dist/esm/index.mjs +13 -3
- package/package.json +3 -3
package/dist/cjs/Gif.js
CHANGED
|
@@ -9,12 +9,14 @@ 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, } = remotion_1.Internals;
|
|
12
|
+
const { addSequenceStackTraces, useMemoizedEffectDefinitions, useMemoizedEffects, wrapInSchema, durationInFramesField, fromField, } = 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,
|
|
18
20
|
playbackRate: {
|
|
19
21
|
type: 'number',
|
|
20
22
|
min: 0,
|
|
@@ -22,6 +24,8 @@ const gifSchema = {
|
|
|
22
24
|
step: 0.1,
|
|
23
25
|
default: 1,
|
|
24
26
|
description: 'Playback Rate',
|
|
27
|
+
hiddenFromList: false,
|
|
28
|
+
keyframable: false,
|
|
25
29
|
},
|
|
26
30
|
...remotion_1.Internals.sequenceVisualStyleSchema,
|
|
27
31
|
hidden: remotion_1.Internals.hiddenField,
|
|
@@ -55,6 +59,10 @@ const GifInner = ({ src, width, height, onLoad, onError, fit, playbackRate, loop
|
|
|
55
59
|
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 }));
|
|
56
60
|
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 }));
|
|
57
61
|
};
|
|
58
|
-
exports.Gif = wrapInSchema(
|
|
62
|
+
exports.Gif = wrapInSchema({
|
|
63
|
+
Component: GifInner,
|
|
64
|
+
schema: gifSchema,
|
|
65
|
+
supportsEffects: true,
|
|
66
|
+
});
|
|
59
67
|
exports.Gif.displayName = 'Gif';
|
|
60
68
|
addSequenceStackTraces(exports.Gif);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1437,16 +1437,22 @@ var {
|
|
|
1437
1437
|
addSequenceStackTraces,
|
|
1438
1438
|
useMemoizedEffectDefinitions,
|
|
1439
1439
|
useMemoizedEffects,
|
|
1440
|
-
wrapInSchema
|
|
1440
|
+
wrapInSchema,
|
|
1441
|
+
durationInFramesField,
|
|
1442
|
+
fromField
|
|
1441
1443
|
} = Internals3;
|
|
1442
1444
|
var gifSchema = {
|
|
1445
|
+
durationInFrames: durationInFramesField,
|
|
1446
|
+
from: fromField,
|
|
1443
1447
|
playbackRate: {
|
|
1444
1448
|
type: "number",
|
|
1445
1449
|
min: 0,
|
|
1446
1450
|
max: 10,
|
|
1447
1451
|
step: 0.1,
|
|
1448
1452
|
default: 1,
|
|
1449
|
-
description: "Playback Rate"
|
|
1453
|
+
description: "Playback Rate",
|
|
1454
|
+
hiddenFromList: false,
|
|
1455
|
+
keyframable: false
|
|
1450
1456
|
},
|
|
1451
1457
|
...Internals3.sequenceVisualStyleSchema,
|
|
1452
1458
|
hidden: Internals3.hiddenField
|
|
@@ -1514,7 +1520,11 @@ var GifInner = ({
|
|
|
1514
1520
|
children: inner
|
|
1515
1521
|
});
|
|
1516
1522
|
};
|
|
1517
|
-
var Gif = wrapInSchema(
|
|
1523
|
+
var Gif = wrapInSchema({
|
|
1524
|
+
Component: GifInner,
|
|
1525
|
+
schema: gifSchema,
|
|
1526
|
+
supportsEffects: true
|
|
1527
|
+
});
|
|
1518
1528
|
Gif.displayName = "Gif";
|
|
1519
1529
|
addSequenceStackTraces(Gif);
|
|
1520
1530
|
// src/preload-gif.ts
|
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.473",
|
|
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.473"
|
|
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.473",
|
|
42
42
|
"eslint": "9.19.0",
|
|
43
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
44
44
|
},
|