@remotion/light-leaks 4.0.540 → 4.0.542

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.
@@ -205,8 +205,7 @@ var lightLeakSchema = {
205
205
  ...Internals.transformSchema,
206
206
  ...Interactive.backgroundSchema,
207
207
  ...Interactive.borderSchema,
208
- ...Interactive.borderRadiusSchema,
209
- ...Internals.premountSchema
208
+ ...Interactive.borderRadiusSchema
210
209
  };
211
210
  var LightLeakInner = ({
212
211
  seed = 0,
@@ -217,6 +216,7 @@ var LightLeakInner = ({
217
216
  ...sequenceProps
218
217
  }) => {
219
218
  const { durationInFrames: videoDuration } = useVideoConfig();
219
+ const videoEnabled = Internals.useVideoEnabled();
220
220
  const resolvedDuration = durationInFrames ?? videoDuration;
221
221
  if (typeof seed !== "number" || !Number.isFinite(seed)) {
222
222
  throw new TypeError(`"seed" must be a finite number, but got ${JSON.stringify(seed)}`);
@@ -227,6 +227,9 @@ var LightLeakInner = ({
227
227
  if (hueShift < 0 || hueShift > 360) {
228
228
  throw new RangeError(`"hueShift" must be between 0 and 360, but got ${hueShift}`);
229
229
  }
230
+ if (!videoEnabled) {
231
+ return null;
232
+ }
230
233
  return /* @__PURE__ */ jsx(Sequence, {
231
234
  durationInFrames: resolvedDuration,
232
235
  name: "<LightLeak>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/light-leaks",
3
- "version": "4.0.540",
3
+ "version": "4.0.542",
4
4
  "description": "Light leak effects for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "formatting": "oxfmt src --check",
15
15
  "format": "oxfmt src",
16
16
  "lint": "eslint src",
17
- "watch": "tsc -w",
18
- "make": "tsc && bun --env-file=../.env.bundle bundle.ts"
17
+ "watch": "node ../.monorepo/tsrs.cjs -w",
18
+ "make": "node ../.monorepo/tsrs.cjs && bun --env-file=../.env.bundle bundle.ts"
19
19
  },
20
20
  "author": "Jonny Burger <jonny@remotion.dev>",
21
21
  "contributors": [],
@@ -24,8 +24,8 @@
24
24
  "url": "https://github.com/remotion-dev/remotion/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@remotion/effects": "4.0.540",
28
- "remotion": "4.0.540",
27
+ "@remotion/effects": "4.0.542",
28
+ "remotion": "4.0.542",
29
29
  "zod": "4.6.7"
30
30
  },
31
31
  "peerDependencies": {
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "react": "19.3.1",
45
45
  "react-dom": "19.3.1",
46
- "@remotion/eslint-config-internal": "4.0.540",
46
+ "@remotion/eslint-config-internal": "4.0.542",
47
47
  "eslint": "9.19.0",
48
48
  "typescript": "7.1.0-beta"
49
49
  },