@remotion/light-leaks 4.0.478 → 4.0.481

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.
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
- import { type AbsoluteFillLayout, type LayoutAndStyle, type SequenceProps } from 'remotion';
3
- export type LightLeakProps = Omit<SequenceProps, 'children' | 'durationInFrames' | keyof LayoutAndStyle> & Omit<AbsoluteFillLayout, 'layout'> & {
4
- readonly durationInFrames?: number;
2
+ import { type AbsoluteFillLayout, type InteractiveBaseProps, type InteractivePremountProps, type InteractiveTransformProps, type SequenceProps } from 'remotion';
3
+ export type LightLeakProps = InteractiveBaseProps & InteractiveTransformProps & InteractivePremountProps & Pick<SequenceProps, 'width' | 'height'> & Pick<AbsoluteFillLayout, 'className'> & {
5
4
  readonly seed?: number;
6
5
  readonly hueShift?: number;
7
6
  };
8
- export declare const LightLeak: React.ComponentType<Omit<SequenceProps, "children" | "durationInFrames" | "layout"> & Omit<AbsoluteFillLayout, "layout"> & {
9
- readonly durationInFrames?: number | undefined;
7
+ export declare const LightLeak: React.ComponentType<InteractiveBaseProps & InteractiveTransformProps & InteractivePremountProps & Pick<SequenceProps, "height" | "width"> & Pick<AbsoluteFillLayout, "className"> & {
10
8
  readonly seed?: number | undefined;
11
9
  readonly hueShift?: number | undefined;
12
10
  }>;
@@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
3
3
  import {
4
4
  AbsoluteFill,
5
5
  Internals,
6
+ Interactive,
6
7
  Sequence,
7
8
  useCurrentFrame,
8
9
  useDelayRender,
@@ -182,9 +183,7 @@ var LightLeakCanvas = ({ seed, hueShift }) => {
182
183
  });
183
184
  };
184
185
  var lightLeakSchema = {
185
- durationInFrames: Internals.durationInFramesField,
186
- from: Internals.fromField,
187
- freeze: Internals.freezeField,
186
+ ...Internals.baseSchema,
188
187
  seed: {
189
188
  type: "number",
190
189
  default: 0,
@@ -199,15 +198,15 @@ var lightLeakSchema = {
199
198
  description: "Hue Shift",
200
199
  hiddenFromList: false
201
200
  },
202
- ...Internals.sequenceStyleSchema,
203
- hidden: Internals.hiddenField
201
+ ...Internals.transformSchema,
202
+ ...Internals.premountSchema
204
203
  };
205
204
  var LightLeakInner = ({
206
205
  seed = 0,
207
206
  hueShift = 0,
208
207
  durationInFrames,
209
208
  style,
210
- _experimentalControls: controls,
209
+ controls,
211
210
  ...sequenceProps
212
211
  }) => {
213
212
  const { durationInFrames: videoDuration } = useVideoConfig();
@@ -225,7 +224,7 @@ var LightLeakInner = ({
225
224
  durationInFrames: resolvedDuration,
226
225
  name: "<LightLeak>",
227
226
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/light-leaks/light-leak",
228
- _experimentalControls: controls,
227
+ controls,
229
228
  ...sequenceProps,
230
229
  style,
231
230
  children: /* @__PURE__ */ jsx(LightLeakCanvas, {
@@ -234,8 +233,9 @@ var LightLeakInner = ({
234
233
  })
235
234
  });
236
235
  };
237
- var LightLeak = Internals.wrapInSchema({
236
+ var LightLeak = Interactive.withSchema({
238
237
  Component: LightLeakInner,
238
+ componentName: "<LightLeak>",
239
239
  componentIdentity: "dev.remotion.lightLeaks.LightLeak",
240
240
  schema: lightLeakSchema,
241
241
  supportsEffects: false
@@ -432,7 +432,7 @@ var linkProgram = (gl, vs, fs) => {
432
432
  return program;
433
433
  };
434
434
  var lightLeak = createEffect({
435
- type: "remotion/light-leak",
435
+ type: "dev.remotion.lightLeaks.lightLeak",
436
436
  label: "lightLeak()",
437
437
  documentationLink: "https://www.remotion.dev/docs/light-leaks/light-leak-effect",
438
438
  backend: "webgl2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/light-leaks",
3
- "version": "4.0.478",
3
+ "version": "4.0.481",
4
4
  "description": "Light leak effects for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/remotion-dev/remotion/issues"
25
25
  },
26
26
  "dependencies": {
27
- "remotion": "4.0.478",
27
+ "remotion": "4.0.481",
28
28
  "zod": "4.3.6"
29
29
  },
30
30
  "peerDependencies": {
@@ -42,7 +42,7 @@
42
42
  "devDependencies": {
43
43
  "react": "19.2.3",
44
44
  "react-dom": "19.2.3",
45
- "@remotion/eslint-config-internal": "4.0.478",
45
+ "@remotion/eslint-config-internal": "4.0.481",
46
46
  "eslint": "9.19.0",
47
47
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
48
48
  },