@remotion/light-leaks 4.0.478 → 4.0.479
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/dist/LightLeak.d.ts +3 -5
- package/dist/esm/index.mjs +8 -9
- package/package.json +3 -3
package/dist/LightLeak.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AbsoluteFillLayout, type
|
|
3
|
-
export type LightLeakProps =
|
|
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<
|
|
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
|
}>;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
203
|
-
|
|
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
|
-
|
|
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
|
-
|
|
227
|
+
controls,
|
|
229
228
|
...sequenceProps,
|
|
230
229
|
style,
|
|
231
230
|
children: /* @__PURE__ */ jsx(LightLeakCanvas, {
|
|
@@ -234,7 +233,7 @@ var LightLeakInner = ({
|
|
|
234
233
|
})
|
|
235
234
|
});
|
|
236
235
|
};
|
|
237
|
-
var LightLeak =
|
|
236
|
+
var LightLeak = Interactive.withSchema({
|
|
238
237
|
Component: LightLeakInner,
|
|
239
238
|
componentIdentity: "dev.remotion.lightLeaks.LightLeak",
|
|
240
239
|
schema: lightLeakSchema,
|
|
@@ -432,7 +431,7 @@ var linkProgram = (gl, vs, fs) => {
|
|
|
432
431
|
return program;
|
|
433
432
|
};
|
|
434
433
|
var lightLeak = createEffect({
|
|
435
|
-
type: "remotion
|
|
434
|
+
type: "dev.remotion.lightLeaks.lightLeak",
|
|
436
435
|
label: "lightLeak()",
|
|
437
436
|
documentationLink: "https://www.remotion.dev/docs/light-leaks/light-leak-effect",
|
|
438
437
|
backend: "webgl2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/light-leaks",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.479",
|
|
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.
|
|
27
|
+
"remotion": "4.0.479",
|
|
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.
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.479",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
48
48
|
},
|