@remotion/rive 4.0.464 → 4.0.466
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.
|
@@ -16,7 +16,7 @@ type RemotionRiveCanvasOwnProps = {
|
|
|
16
16
|
readonly assetLoader?: assetLoadCallback;
|
|
17
17
|
readonly className?: string;
|
|
18
18
|
readonly style?: React.CSSProperties;
|
|
19
|
-
readonly
|
|
19
|
+
readonly effects?: EffectsProp;
|
|
20
20
|
};
|
|
21
21
|
export type RemotionRiveCanvasProps = RemotionRiveCanvasOwnProps & RiveSequenceInheritedProps;
|
|
22
22
|
export type RiveCanvasRef = {
|
|
@@ -285,10 +285,12 @@ const RemotionRiveCanvasContentForwardRefFunction = ({ src, fit, alignment, artb
|
|
|
285
285
|
return (jsx_runtime_1.jsx("canvas", { ref: canvas, width: width, height: height, className: className, style: canvasStyle }));
|
|
286
286
|
};
|
|
287
287
|
const RemotionRiveCanvasContent = (0, react_1.forwardRef)(RemotionRiveCanvasContentForwardRefFunction);
|
|
288
|
-
const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', alignment = 'center', artboard, animation, onLoad = null, assetLoader, enableRiveAssetCdn = true, className, style,
|
|
288
|
+
const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', alignment = 'center', artboard, animation, onLoad = null, assetLoader, enableRiveAssetCdn = true, className, style, effects = [], _experimentalControls: controls, durationInFrames, name, from, showInTimeline, hidden, ...props }, ref) => {
|
|
289
289
|
props;
|
|
290
290
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
291
|
-
return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", from: from, hidden: hidden, showInTimeline: showInTimeline, name: name !== null && name !== void 0 ? name : '<RemotionRiveCanvas>',
|
|
291
|
+
return (jsx_runtime_1.jsx(remotion_1.Sequence, { layout: "none", from: from, hidden: hidden, showInTimeline: showInTimeline, name: name !== null && name !== void 0 ? name : '<RemotionRiveCanvas>', _remotionInternalDocumentationLink: name === undefined
|
|
292
|
+
? 'https://www.remotion.dev/docs/rive/remotionrivecanvas'
|
|
293
|
+
: undefined, durationInFrames: durationInFrames, _experimentalControls: controls, _remotionInternalEffects: memoizedEffectDefinitions, ...props, 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: style, effects: effects, controls: controls }) }));
|
|
292
294
|
};
|
|
293
295
|
const RemotionRiveCanvasInner = (0, react_1.forwardRef)(RemotionRiveCanvasInnerForwardRefFunction);
|
|
294
296
|
exports.RemotionRiveCanvas = wrapInSchema(RemotionRiveCanvasInner, riveCanvasSchema);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -322,7 +322,7 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
322
322
|
enableRiveAssetCdn = true,
|
|
323
323
|
className,
|
|
324
324
|
style,
|
|
325
|
-
|
|
325
|
+
effects = [],
|
|
326
326
|
_experimentalControls: controls,
|
|
327
327
|
durationInFrames,
|
|
328
328
|
name,
|
|
@@ -338,9 +338,10 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
338
338
|
hidden,
|
|
339
339
|
showInTimeline,
|
|
340
340
|
name: name ?? "<RemotionRiveCanvas>",
|
|
341
|
+
_remotionInternalDocumentationLink: name === undefined ? "https://www.remotion.dev/docs/rive/remotionrivecanvas" : undefined,
|
|
341
342
|
durationInFrames,
|
|
342
343
|
_experimentalControls: controls,
|
|
343
|
-
|
|
344
|
+
_remotionInternalEffects: memoizedEffectDefinitions,
|
|
344
345
|
...props,
|
|
345
346
|
children: /* @__PURE__ */ jsx(RemotionRiveCanvasContent, {
|
|
346
347
|
ref,
|
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.466",
|
|
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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "See LICENSE.md",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@rive-app/canvas-advanced": "2.31.5",
|
|
25
|
-
"remotion": "4.0.
|
|
25
|
+
"remotion": "4.0.466"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=18.2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"react": "19.2.3",
|
|
33
33
|
"react-dom": "19.2.3",
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.466",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
37
37
|
},
|