@remotion/motion-blur 4.0.0-alpha13 → 4.0.0-alpha14
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TrailProps } from './Trail';
|
|
3
|
+
export declare type MotionBlurProps = Omit<TrailProps, 'trailOpacity'> & {
|
|
4
|
+
blurOpacity: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The component has been renamed "Trail" instead: https://remotion.dev/docs/motion-blur/trail
|
|
8
|
+
*/
|
|
9
|
+
export declare const MotionBlur: React.FC<MotionBlurProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MotionBlur = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Trail_1 = require("./Trail");
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The component has been renamed "Trail" instead: https://remotion.dev/docs/motion-blur/trail
|
|
8
|
+
*/
|
|
9
|
+
const MotionBlur = ({ blurOpacity, ...rest }) => {
|
|
10
|
+
if (typeof blurOpacity !== 'number' ||
|
|
11
|
+
Number.isNaN(blurOpacity) ||
|
|
12
|
+
!Number.isFinite(blurOpacity)) {
|
|
13
|
+
throw new TypeError(`"blurOpacity" must be a number, but got ${JSON.stringify(blurOpacity)}`);
|
|
14
|
+
}
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(Trail_1.Trail, { ...rest, trailOpacity: blurOpacity });
|
|
16
|
+
};
|
|
17
|
+
exports.MotionBlur = MotionBlur;
|
package/dist/cjs/Trail.d.ts
CHANGED
package/dist/esm/Trail.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/motion-blur",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-alpha14",
|
|
4
4
|
"description": "Motion blur effect for Remotion",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.0-
|
|
19
|
+
"remotion": "4.0.0-alpha14"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": ">=16.8.0",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@jonny/eslint-config": "3.0.266",
|
|
36
36
|
"@rollup/plugin-typescript": "^8.2.0",
|
|
37
37
|
"@types/react": "18.0.26",
|
|
38
|
-
"eslint": "8.
|
|
38
|
+
"eslint": "8.42.0",
|
|
39
39
|
"prettier": "^2.7.1",
|
|
40
40
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
41
41
|
"react": "18.0.0",
|
|
42
42
|
"react-dom": "18.0.0",
|
|
43
43
|
"rollup": "^2.70.1",
|
|
44
|
-
"typescript": "
|
|
45
|
-
"remotion": "4.0.0-
|
|
44
|
+
"typescript": "4.9.5",
|
|
45
|
+
"remotion": "4.0.0-alpha14"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"remotion",
|