@remotion/rive 4.0.529 → 4.0.531
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.
|
@@ -290,13 +290,17 @@ const RemotionRiveCanvasContentForwardRefFunction = ({ src, fit, alignment, artb
|
|
|
290
290
|
return (jsx_runtime_1.jsx("canvas", { ref: canvasRef, width: width, height: height, className: className, style: canvasStyle }));
|
|
291
291
|
};
|
|
292
292
|
const RemotionRiveCanvasContent = (0, react_1.forwardRef)(RemotionRiveCanvasContentForwardRefFunction);
|
|
293
|
-
const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', alignment = 'center', artboard, animation, onLoad = null, assetLoader, enableRiveAssetCdn = true, className, style, effects = [], controls, durationInFrames, name, from, premountFor, postmountFor, styleWhilePremounted, styleWhilePostmounted, trimBefore, playbackRate, freeze, showInTimeline, hidden, cropLeft, cropRight, cropTop, cropBottom, ...props }, ref) => {
|
|
293
|
+
const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', alignment = 'center', artboard, animation, onLoad = null, assetLoader, enableRiveAssetCdn = true, className, style, effects = [], controls, durationInFrames, name, from, premountFor, postmountFor, styleWhilePremounted, styleWhilePostmounted, trimBefore, playbackRate, loop, freeze, showInTimeline, hidden, cropLeft, cropRight, cropTop, cropBottom, ...props }, ref) => {
|
|
294
294
|
props;
|
|
295
295
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
296
296
|
const canvasRef = (0, react_1.useRef)(null);
|
|
297
297
|
const { effectivePremountFor, effectivePostmountFor, freezeFrame, isPremountingOrPostmounting, premountingActive, postmountingActive, premountingStyle, } = remotion_1.Internals.usePremounting({
|
|
298
298
|
from: from !== null && from !== void 0 ? from : 0,
|
|
299
|
-
durationInFrames:
|
|
299
|
+
durationInFrames: remotion_1.Internals.resolveSequenceDuration({
|
|
300
|
+
durationInFrames,
|
|
301
|
+
playbackRate,
|
|
302
|
+
loop,
|
|
303
|
+
}),
|
|
300
304
|
premountFor: premountFor !== null && premountFor !== void 0 ? premountFor : null,
|
|
301
305
|
postmountFor: postmountFor !== null && postmountFor !== void 0 ? postmountFor : null,
|
|
302
306
|
style: style !== null && style !== void 0 ? style : null,
|
|
@@ -312,9 +316,9 @@ const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', align
|
|
|
312
316
|
style: premountingStyle,
|
|
313
317
|
componentName: '<RemotionRiveCanvas />',
|
|
314
318
|
});
|
|
315
|
-
return (jsx_runtime_1.jsx(remotion_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, children: jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", from: from, trimBefore: trimBefore, playbackRate: playbackRate, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, name: name !== null && name !== void 0 ? name : '<RemotionRiveCanvas>', _remotionInternalDocumentationLink: name === undefined
|
|
319
|
+
return (jsx_runtime_1.jsx(remotion_1.Freeze, { frame: freezeFrame, active: isPremountingOrPostmounting, children: jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", from: from, trimBefore: trimBefore, playbackRate: playbackRate, loop: loop, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, name: name !== null && name !== void 0 ? name : '<RemotionRiveCanvas>', _remotionInternalDocumentationLink: name === undefined
|
|
316
320
|
? 'https://www.remotion.dev/docs/rive/remotionrivecanvas'
|
|
317
|
-
: undefined, durationInFrames: durationInFrames, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions,
|
|
321
|
+
: undefined, durationInFrames: durationInFrames, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, ...props, _remotionInternalPremountDisplay: effectivePremountFor || null, _remotionInternalPostmountDisplay: effectivePostmountFor || null, _remotionInternalIsPremounting: premountingActive, _remotionInternalIsPostmounting: postmountingActive, children: jsx_runtime_1.jsx(RemotionRiveCanvasContent, { ref: ref, src: src, fit: fit, alignment: alignment, artboard: artboard, animation: animation, onLoad: onLoad, assetLoader: assetLoader, enableRiveAssetCdn: enableRiveAssetCdn, className: className, style: croppedStyle !== null && croppedStyle !== void 0 ? croppedStyle : undefined, effects: effects, controls: controls, canvasRef: canvasRef }) }) }));
|
|
318
322
|
};
|
|
319
323
|
const RemotionRiveCanvasInner = (0, react_1.forwardRef)(RemotionRiveCanvasInnerForwardRefFunction);
|
|
320
324
|
exports.RemotionRiveCanvas = remotion_1.Interactive.withSchema({
|
package/dist/esm/index.mjs
CHANGED
|
@@ -337,6 +337,7 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
337
337
|
styleWhilePostmounted,
|
|
338
338
|
trimBefore,
|
|
339
339
|
playbackRate,
|
|
340
|
+
loop,
|
|
340
341
|
freeze,
|
|
341
342
|
showInTimeline,
|
|
342
343
|
hidden,
|
|
@@ -358,7 +359,11 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
358
359
|
premountingStyle
|
|
359
360
|
} = Internals.usePremounting({
|
|
360
361
|
from: from ?? 0,
|
|
361
|
-
durationInFrames:
|
|
362
|
+
durationInFrames: Internals.resolveSequenceDuration({
|
|
363
|
+
durationInFrames,
|
|
364
|
+
playbackRate,
|
|
365
|
+
loop
|
|
366
|
+
}),
|
|
362
367
|
premountFor: premountFor ?? null,
|
|
363
368
|
postmountFor: postmountFor ?? null,
|
|
364
369
|
style: style ?? null,
|
|
@@ -382,6 +387,7 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
382
387
|
from,
|
|
383
388
|
trimBefore,
|
|
384
389
|
playbackRate,
|
|
390
|
+
loop,
|
|
385
391
|
freeze,
|
|
386
392
|
hidden,
|
|
387
393
|
showInTimeline,
|
|
@@ -390,7 +396,6 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
390
396
|
durationInFrames,
|
|
391
397
|
controls,
|
|
392
398
|
_remotionInternalEffects: memoizedEffectDefinitions,
|
|
393
|
-
outlineRef: canvasRef,
|
|
394
399
|
...props,
|
|
395
400
|
_remotionInternalPremountDisplay: effectivePremountFor || null,
|
|
396
401
|
_remotionInternalPostmountDisplay: effectivePostmountFor || null,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/rive"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/rive",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.531",
|
|
7
7
|
"description": "Embed Rive animations in a Remotion video",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "See LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@rive-app/canvas-advanced": "2.31.5",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.531"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=18.2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-dom": "19.2.3",
|
|
35
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
35
|
+
"@remotion/eslint-config-internal": "4.0.531",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
37
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
38
38
|
},
|