@remotion/lottie 4.0.537 → 4.0.538
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/Lottie.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/package.json +5 -5
package/dist/cjs/Lottie.js
CHANGED
|
@@ -104,7 +104,7 @@ const LottieContent = ({ animationData, className, direction, style, onAnimation
|
|
|
104
104
|
img.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', img.href.baseVal);
|
|
105
105
|
});
|
|
106
106
|
}, [direction, frame, delayRender, continueRender]);
|
|
107
|
-
return jsx_runtime_1.jsx("div", { ref: containerRef, className: className, style: style });
|
|
107
|
+
return (0, jsx_runtime_1.jsx)("div", { ref: containerRef, className: className, style: style });
|
|
108
108
|
};
|
|
109
109
|
const Lottie = ({ animationData, from, durationInFrames, trimBefore, playbackRate, loop, freeze, hidden, name, showInTimeline, premountFor, postmountFor, styleWhilePremounted, styleWhilePostmounted, style, ...props }) => {
|
|
110
110
|
if (typeof animationData !== 'object' || animationData === null) {
|
|
@@ -131,6 +131,6 @@ const Lottie = ({ animationData, from, durationInFrames, trimBefore, playbackRat
|
|
|
131
131
|
styleWhilePostmounted: styleWhilePostmounted !== null && styleWhilePostmounted !== void 0 ? styleWhilePostmounted : null,
|
|
132
132
|
hideWhilePremounted: 'opacity',
|
|
133
133
|
});
|
|
134
|
-
return (jsx_runtime_1.jsx(remotion_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, children: jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", from: from, durationInFrames: sequenceDurationInFrames, trimBefore: trimBefore, playbackRate: playbackRate, loop: loop, freeze: freeze, hidden: hidden, name: name !== null && name !== void 0 ? name : '<Lottie>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/lottie/lottie", showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : false, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: jsx_runtime_1.jsx(LottieContent, { ...props, animationData: animationData, style: premountingStyle !== null && premountingStyle !== void 0 ? premountingStyle : undefined }) }) }));
|
|
134
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, children: (0, jsx_runtime_1.jsx)(remotion_1.Sequence, { layout: "none", from: from, durationInFrames: sequenceDurationInFrames, trimBefore: trimBefore, playbackRate: playbackRate, loop: loop, freeze: freeze, hidden: hidden, name: name !== null && name !== void 0 ? name : '<Lottie>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/lottie/lottie", showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : false, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: (0, jsx_runtime_1.jsx)(LottieContent, { ...props, animationData: animationData, style: premountingStyle !== null && premountingStyle !== void 0 ? premountingStyle : undefined }) }) }));
|
|
135
135
|
};
|
|
136
136
|
exports.Lottie = Lottie;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Lottie = exports.getLottieMetadata = void 0;
|
|
4
|
-
|
|
4
|
+
var get_lottie_metadata_1 = require("./get-lottie-metadata");
|
|
5
5
|
Object.defineProperty(exports, "getLottieMetadata", { enumerable: true, get: function () { return get_lottie_metadata_1.getLottieMetadata; } });
|
|
6
|
-
|
|
6
|
+
var Lottie_1 = require("./Lottie");
|
|
7
7
|
Object.defineProperty(exports, "Lottie", { enumerable: true, get: function () { return Lottie_1.Lottie; } });
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lottie"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lottie",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.538",
|
|
7
7
|
"description": "Include Lottie animations in Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"format": "oxfmt src",
|
|
14
14
|
"lint": "eslint src",
|
|
15
15
|
"test": "bun test src",
|
|
16
|
-
"make": "
|
|
16
|
+
"make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
|
|
17
17
|
},
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"remotion": "4.0.
|
|
28
|
+
"remotion": "4.0.538"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"lottie-web": "^5",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"react": "19.2.3",
|
|
46
46
|
"react-dom": "19.2.3",
|
|
47
47
|
"lottie-web": "5.13.0",
|
|
48
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
48
|
+
"@remotion/eslint-config-internal": "4.0.538",
|
|
49
49
|
"eslint": "9.19.0",
|
|
50
|
-
"
|
|
50
|
+
"typescript": "7.1.0-beta"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"remotion",
|