@remotion/rive 4.0.471 → 4.0.472
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.
|
@@ -42,7 +42,7 @@ const canvas_advanced_1 = __importDefault(require("@rive-app/canvas-advanced"));
|
|
|
42
42
|
const react_1 = __importStar(require("react"));
|
|
43
43
|
const remotion_1 = require("remotion");
|
|
44
44
|
const map_enums_js_1 = require("./map-enums.js");
|
|
45
|
-
const { addSequenceStackTraces, hiddenField, runEffectChain, sequenceVisualStyleSchema, useEffectChainState, useMemoizedEffectDefinitions, useMemoizedEffects, wrapInSchema, } = remotion_1.Internals;
|
|
45
|
+
const { addSequenceStackTraces, durationInFramesField, fromField, hiddenField, runEffectChain, sequenceVisualStyleSchema, useEffectChainState, useMemoizedEffectDefinitions, useMemoizedEffects, wrapInSchema, } = remotion_1.Internals;
|
|
46
46
|
const riveFitVariants = {
|
|
47
47
|
contain: {},
|
|
48
48
|
cover: {},
|
|
@@ -64,6 +64,8 @@ const riveAlignmentVariants = {
|
|
|
64
64
|
'top-right': {},
|
|
65
65
|
};
|
|
66
66
|
const riveCanvasSchema = {
|
|
67
|
+
durationInFrames: durationInFramesField,
|
|
68
|
+
from: fromField,
|
|
67
69
|
fit: {
|
|
68
70
|
type: 'enum',
|
|
69
71
|
default: 'contain',
|
|
@@ -293,7 +295,11 @@ const RemotionRiveCanvasInnerForwardRefFunction = ({ src, fit = 'contain', align
|
|
|
293
295
|
: 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 }) }));
|
|
294
296
|
};
|
|
295
297
|
const RemotionRiveCanvasInner = (0, react_1.forwardRef)(RemotionRiveCanvasInnerForwardRefFunction);
|
|
296
|
-
exports.RemotionRiveCanvas = wrapInSchema(
|
|
298
|
+
exports.RemotionRiveCanvas = wrapInSchema({
|
|
299
|
+
Component: RemotionRiveCanvasInner,
|
|
300
|
+
schema: riveCanvasSchema,
|
|
301
|
+
supportsEffects: true,
|
|
302
|
+
});
|
|
297
303
|
addSequenceStackTraces(exports.RemotionRiveCanvas);
|
|
298
304
|
exports.RemotionRiveCanvas.displayName =
|
|
299
305
|
'RemotionRiveCanvas';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -76,6 +76,8 @@ var mapToAlignment = (alignment, factory) => {
|
|
|
76
76
|
import { jsx } from "react/jsx-runtime";
|
|
77
77
|
var {
|
|
78
78
|
addSequenceStackTraces,
|
|
79
|
+
durationInFramesField,
|
|
80
|
+
fromField,
|
|
79
81
|
hiddenField,
|
|
80
82
|
runEffectChain,
|
|
81
83
|
sequenceVisualStyleSchema,
|
|
@@ -105,6 +107,8 @@ var riveAlignmentVariants = {
|
|
|
105
107
|
"top-right": {}
|
|
106
108
|
};
|
|
107
109
|
var riveCanvasSchema = {
|
|
110
|
+
durationInFrames: durationInFramesField,
|
|
111
|
+
from: fromField,
|
|
108
112
|
fit: {
|
|
109
113
|
type: "enum",
|
|
110
114
|
default: "contain",
|
|
@@ -361,7 +365,11 @@ var RemotionRiveCanvasInnerForwardRefFunction = ({
|
|
|
361
365
|
});
|
|
362
366
|
};
|
|
363
367
|
var RemotionRiveCanvasInner = forwardRef(RemotionRiveCanvasInnerForwardRefFunction);
|
|
364
|
-
var RemotionRiveCanvas = wrapInSchema(
|
|
368
|
+
var RemotionRiveCanvas = wrapInSchema({
|
|
369
|
+
Component: RemotionRiveCanvasInner,
|
|
370
|
+
schema: riveCanvasSchema,
|
|
371
|
+
supportsEffects: true
|
|
372
|
+
});
|
|
365
373
|
addSequenceStackTraces(RemotionRiveCanvas);
|
|
366
374
|
RemotionRiveCanvas.displayName = "RemotionRiveCanvas";
|
|
367
375
|
export {
|
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.472",
|
|
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.472"
|
|
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.472",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
37
37
|
},
|