@remotion/light-leaks 4.0.428 → 4.0.430
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/README.md +7 -7
- package/dist/esm/index.mjs +24 -2
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# @remotion/light-leaks
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
Light leak effects for Remotion
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
[](https://npmcharts.com/compare/@remotion/light-leaks?minimal=true)
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
## Installation
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
```bash
|
|
10
10
|
npm install @remotion/light-leaks --save-exact
|
|
11
11
|
```
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
14
|
Remove the `^` character from the version number to use the exact version.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
## Usage
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
See the [documentation](https://www.remotion.dev/docs/light-leaks) for more information.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -180,12 +180,31 @@ var LightLeakCanvas = ({ seed, hueShift }) => {
|
|
|
180
180
|
})
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
+
var lightLeakSchema = {
|
|
184
|
+
seed: { type: "number", description: "Seed" },
|
|
185
|
+
hueShift: {
|
|
186
|
+
type: "number",
|
|
187
|
+
min: 0,
|
|
188
|
+
max: 360,
|
|
189
|
+
description: "Hue Shift"
|
|
190
|
+
},
|
|
191
|
+
from: { type: "number", description: "From" }
|
|
192
|
+
};
|
|
183
193
|
var LightLeak = ({
|
|
184
|
-
seed = 0,
|
|
185
|
-
hueShift = 0,
|
|
194
|
+
seed: seedProp = 0,
|
|
195
|
+
hueShift: hueShiftProp = 0,
|
|
186
196
|
durationInFrames,
|
|
197
|
+
from: fromProp,
|
|
187
198
|
...sequenceProps
|
|
188
199
|
}) => {
|
|
200
|
+
const {
|
|
201
|
+
controls,
|
|
202
|
+
values: { seed, hueShift, from }
|
|
203
|
+
} = Internals.useSchema(lightLeakSchema, {
|
|
204
|
+
seed: seedProp,
|
|
205
|
+
hueShift: hueShiftProp,
|
|
206
|
+
from: fromProp
|
|
207
|
+
});
|
|
189
208
|
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
190
209
|
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
191
210
|
if (typeof seed !== "number" || !Number.isFinite(seed)) {
|
|
@@ -200,6 +219,8 @@ var LightLeak = ({
|
|
|
200
219
|
return /* @__PURE__ */ jsx(Sequence, {
|
|
201
220
|
durationInFrames: resolvedDuration,
|
|
202
221
|
name: "<LightLeak>",
|
|
222
|
+
controls,
|
|
223
|
+
from,
|
|
203
224
|
...sequenceProps,
|
|
204
225
|
children: /* @__PURE__ */ jsx(LightLeakCanvas, {
|
|
205
226
|
seed,
|
|
@@ -207,6 +228,7 @@ var LightLeak = ({
|
|
|
207
228
|
})
|
|
208
229
|
});
|
|
209
230
|
};
|
|
231
|
+
LightLeak.displayName = "LightLeak";
|
|
210
232
|
Internals.addSequenceStackTraces(LightLeak);
|
|
211
233
|
export {
|
|
212
234
|
LightLeak
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/light-leaks",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.430",
|
|
4
4
|
"description": "Light leak effects for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"type": "module",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"formatting": "
|
|
14
|
+
"formatting": "oxfmt src --check",
|
|
15
|
+
"format": "oxfmt src",
|
|
15
16
|
"lint": "eslint src",
|
|
16
17
|
"watch": "tsgo -w",
|
|
17
18
|
"make": "tsgo && bun --env-file=../.env.bundle bundle.ts"
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.429",
|
|
28
|
+
"zod": "4.3.6"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
29
31
|
"react": ">=16.8.0",
|
|
@@ -40,7 +42,7 @@
|
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"react": "19.2.3",
|
|
42
44
|
"react-dom": "19.2.3",
|
|
43
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.429",
|
|
44
46
|
"eslint": "9.19.0",
|
|
45
47
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
46
48
|
},
|