@remotion/motion-blur 4.0.149 → 4.0.151
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.
- package/bundle.ts +1 -3
- package/dist/esm/index.mjs +9 -8
- package/package.json +4 -4
package/bundle.ts
CHANGED
|
@@ -7,9 +7,7 @@ const output = await build({
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
const [file] = output.outputs;
|
|
10
|
-
const text =
|
|
11
|
-
.replace(/jsxDEV/g, 'jsx')
|
|
12
|
-
.replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
|
|
10
|
+
const text = await file.text();
|
|
13
11
|
|
|
14
12
|
await Bun.write('dist/esm/index.mjs', text);
|
|
15
13
|
|
package/dist/esm/index.mjs
CHANGED
|
@@ -53,16 +53,17 @@ var CameraMotionBlur = ({
|
|
|
53
53
|
children: jsx(Freeze, {
|
|
54
54
|
frame: currentFrame - sampleFrameOffset + 1,
|
|
55
55
|
children
|
|
56
|
-
}
|
|
57
|
-
}, `frame-${i.toString()}
|
|
56
|
+
})
|
|
57
|
+
}, `frame-${i.toString()}`);
|
|
58
58
|
})
|
|
59
|
-
}
|
|
59
|
+
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// src/Trail.tsx
|
|
63
63
|
import {AbsoluteFill as AbsoluteFill2, Freeze as Freeze2, useCurrentFrame as useCurrentFrame2} from "remotion";
|
|
64
64
|
import {
|
|
65
|
-
jsx as jsx2
|
|
65
|
+
jsx as jsx2,
|
|
66
|
+
jsxs
|
|
66
67
|
} from "react/jsx-runtime";
|
|
67
68
|
var Trail = ({
|
|
68
69
|
children,
|
|
@@ -86,7 +87,7 @@ var Trail = ({
|
|
|
86
87
|
if (typeof lagInFrames !== "number" || Number.isNaN(lagInFrames) || !Number.isFinite(lagInFrames)) {
|
|
87
88
|
throw new TypeError(`"lagInFrames" must be a number, but got ${JSON.stringify(lagInFrames)}`);
|
|
88
89
|
}
|
|
89
|
-
return
|
|
90
|
+
return jsxs(AbsoluteFill2, {
|
|
90
91
|
children: [
|
|
91
92
|
new Array(layers).fill(true).map((_, i) => {
|
|
92
93
|
return jsx2(AbsoluteFill2, {
|
|
@@ -96,12 +97,12 @@ var Trail = ({
|
|
|
96
97
|
children: jsx2(Freeze2, {
|
|
97
98
|
frame: frame - lagInFrames * (layers - i),
|
|
98
99
|
children
|
|
99
|
-
}
|
|
100
|
-
}, `frame-${i.toString()}
|
|
100
|
+
})
|
|
101
|
+
}, `frame-${i.toString()}`);
|
|
101
102
|
}),
|
|
102
103
|
children
|
|
103
104
|
]
|
|
104
|
-
}
|
|
105
|
+
});
|
|
105
106
|
};
|
|
106
107
|
export {
|
|
107
108
|
Trail,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/motion-blur",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.151",
|
|
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.
|
|
19
|
+
"remotion": "4.0.151"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": ">=16.8.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"prettier-plugin-organize-imports": "3.2.4",
|
|
40
40
|
"react": "18.3.1",
|
|
41
41
|
"react-dom": "18.3.1",
|
|
42
|
-
"remotion": "4.0.
|
|
42
|
+
"remotion": "4.0.151"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"remotion",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"scripts": {
|
|
53
53
|
"formatting": "prettier src --check",
|
|
54
54
|
"lint": "eslint src --ext ts,tsx",
|
|
55
|
-
"build": "bun bundle.ts"
|
|
55
|
+
"build": "bun --env-file=../.env.bundle bundle.ts"
|
|
56
56
|
}
|
|
57
57
|
}
|