@remotion/motion-blur 4.0.0-alpha.217 → 4.0.0-alpha11

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.
@@ -51,7 +51,7 @@ const CameraMotionBlur = ({ children, shutterAngle = 180, samples = 10, }) => {
51
51
  return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: {
52
52
  mixBlendMode: 'plus-lighter',
53
53
  filter: `opacity(${1 / actualSamples})`,
54
- }, children: (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: currentFrame - sampleFrameOffset, children: children }) }, `frame-${i.toString()}`));
54
+ }, children: (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: currentFrame - sampleFrameOffset + 1, children: children }) }, `frame-${i.toString()}`));
55
55
  }) }));
56
56
  };
57
57
  exports.CameraMotionBlur = CameraMotionBlur;
@@ -49,7 +49,7 @@ const CameraMotionBlur = ({ children, shutterAngle = 180, samples = 10, }) => {
49
49
  return (jsx(AbsoluteFill, { style: {
50
50
  mixBlendMode: 'plus-lighter',
51
51
  filter: `opacity(${1 / actualSamples})`,
52
- }, children: jsx(Freeze, { frame: currentFrame - sampleFrameOffset, children: children }) }, `frame-${i.toString()}`));
52
+ }, children: jsx(Freeze, { frame: currentFrame - sampleFrameOffset + 1, children: children }) }, `frame-${i.toString()}`));
53
53
  }) }));
54
54
  };
55
55
 
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
1
  {
2
- "name": "@remotion/motion-blur",
3
- "version": "4.0.0-alpha.217+27eff7599",
4
- "description": "Motion blur effect for Remotion",
5
- "main": "dist/cjs/index.js",
6
- "types": "dist/cjs/index.d.ts",
7
- "module": "dist/esm/index.mjs",
8
- "sideEffects": false,
9
- "scripts": {
10
- "lint": "eslint src --ext ts,tsx",
11
- "watch": "tsc -w",
12
- "build": "rollup --config rollup.config.js && tsc -d"
13
- },
14
- "author": "Matt McGillivray, Ilija Boshkov <ilija@codechem.com>, Jonny Burger <jonny@remotion.dev>",
15
- "contributors": [],
16
- "license": "MIT",
17
- "repository": {
18
- "url": "https://github.com/remotion-dev/remotion"
19
- },
20
- "bugs": {
21
- "url": "https://github.com/remotion-dev/remotion/issues"
22
- },
23
- "dependencies": {
24
- "remotion": "4.0.0-alpha.217+27eff7599"
25
- },
26
- "peerDependencies": {
27
- "react": ">=16.8.0",
28
- "react-dom": ">=16.8.0"
29
- },
30
- "exports": {
31
- "./package.json": "./package.json",
32
- ".": {
33
- "types": "./dist/cjs/index.d.ts",
34
- "module": "./dist/esm/index.mjs",
35
- "import": "./dist/esm/index.mjs",
36
- "require": "./dist/cjs/index.js"
37
- }
38
- },
39
- "devDependencies": {
40
- "@jonny/eslint-config": "3.0.266",
41
- "@rollup/plugin-typescript": "^8.2.0",
42
- "@types/react": "18.0.26",
43
- "eslint": "8.25.0",
44
- "prettier": "^2.7.1",
45
- "prettier-plugin-organize-imports": "^2.3.4",
46
- "react": "18.0.0",
47
- "react-dom": "18.0.0",
48
- "remotion": "workspace:*",
49
- "rollup": "^2.70.1",
50
- "typescript": "^4.7.0"
51
- },
52
- "keywords": [
53
- "remotion",
54
- "motion",
55
- "blur"
56
- ],
57
- "publishConfig": {
58
- "access": "public"
59
- },
60
- "gitHead": "27eff759935b19b666e29f4f46dd5bdd6214e188"
61
- }
2
+ "name": "@remotion/motion-blur",
3
+ "version": "4.0.0-alpha11",
4
+ "description": "Motion blur effect for Remotion",
5
+ "main": "dist/cjs/index.js",
6
+ "types": "dist/cjs/index.d.ts",
7
+ "module": "dist/esm/index.mjs",
8
+ "sideEffects": false,
9
+ "author": "Matt McGillivray, Ilija Boshkov <ilija@codechem.com>, Jonny Burger <jonny@remotion.dev>",
10
+ "contributors": [],
11
+ "license": "MIT",
12
+ "repository": {
13
+ "url": "https://github.com/remotion-dev/remotion"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/remotion-dev/remotion/issues"
17
+ },
18
+ "dependencies": {
19
+ "remotion": "4.0.0-alpha11"
20
+ },
21
+ "peerDependencies": {
22
+ "react": ">=16.8.0",
23
+ "react-dom": ">=16.8.0"
24
+ },
25
+ "exports": {
26
+ "./package.json": "./package.json",
27
+ ".": {
28
+ "types": "./dist/cjs/index.d.ts",
29
+ "module": "./dist/esm/index.mjs",
30
+ "import": "./dist/esm/index.mjs",
31
+ "require": "./dist/cjs/index.js"
32
+ }
33
+ },
34
+ "devDependencies": {
35
+ "@jonny/eslint-config": "3.0.266",
36
+ "@rollup/plugin-typescript": "^8.2.0",
37
+ "@types/react": "18.0.26",
38
+ "eslint": "8.25.0",
39
+ "prettier": "^2.7.1",
40
+ "prettier-plugin-organize-imports": "^2.3.4",
41
+ "react": "18.0.0",
42
+ "react-dom": "18.0.0",
43
+ "rollup": "^2.70.1",
44
+ "typescript": "^4.7.0",
45
+ "remotion": "4.0.0-alpha11"
46
+ },
47
+ "keywords": [
48
+ "remotion",
49
+ "motion",
50
+ "blur"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "scripts": {
56
+ "formatting": "prettier src --check",
57
+ "lint": "eslint src --ext ts,tsx",
58
+ "watch": "tsc -w",
59
+ "build": "rollup --config rollup.config.js && tsc -d"
60
+ }
61
+ }
package/tsconfig-esm.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../tsconfig-esm.settings.json",
3
3
  "compilerOptions": {
4
- "composite": true,
5
4
  "rootDir": "./src",
6
5
  "outDir": "./dist/esm",
7
6
  "skipLibCheck": true,
@@ -1,9 +0,0 @@
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>;