@remotion/transitions 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.
|
@@ -2,19 +2,16 @@ import type { FC, PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { AbsoluteFillLayout, LayoutAndStyle, SequencePropsWithoutDuration } from 'remotion';
|
|
3
3
|
import { NoReactInternals } from 'remotion/no-react';
|
|
4
4
|
import type { TransitionSeriesOverlayProps, TransitionSeriesTransitionProps } from './types.js';
|
|
5
|
-
declare const TransitionSeriesTransition: <PresentationProps extends Record<string, unknown>>(_props: TransitionSeriesTransitionProps<PresentationProps>) => null;
|
|
6
|
-
declare const SeriesOverlay: FC<TransitionSeriesOverlayProps>;
|
|
7
5
|
type LayoutBasedProps = true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? AbsoluteFillLayout : LayoutAndStyle;
|
|
8
6
|
type SeriesSequenceProps = PropsWithChildren<{
|
|
9
7
|
readonly durationInFrames: number;
|
|
10
8
|
readonly offset?: number;
|
|
11
9
|
readonly className?: string;
|
|
12
10
|
} & LayoutBasedProps & Pick<SequencePropsWithoutDuration, 'name' | 'showInTimeline' | 'freeze'>>;
|
|
13
|
-
declare const SeriesSequence: ({ children }: SeriesSequenceProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
11
|
export type DrawFunction = (prevImage: ElementImage | null, nextImage: ElementImage | null, progress: number) => void;
|
|
15
12
|
declare const TransitionSeries: FC<SequencePropsWithoutDuration> & {
|
|
16
|
-
Sequence:
|
|
17
|
-
Transition:
|
|
18
|
-
Overlay:
|
|
13
|
+
Sequence: ({ children }: SeriesSequenceProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Transition: <PresentationProps extends Record<string, unknown>>(_props: TransitionSeriesTransitionProps<PresentationProps>) => null;
|
|
15
|
+
Overlay: FC<TransitionSeriesOverlayProps>;
|
|
19
16
|
};
|
|
20
17
|
export { TransitionSeries };
|
package/dist/TransitionSeries.js
CHANGED
|
@@ -20,6 +20,14 @@ const SeriesSequence = ({ children }) => {
|
|
|
20
20
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
21
21
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: children });
|
|
22
22
|
};
|
|
23
|
+
const transitionSeriesSchema = {
|
|
24
|
+
name: remotion_1.Internals.sequenceSchema.name,
|
|
25
|
+
hidden: remotion_1.Internals.sequenceSchema.hidden,
|
|
26
|
+
showInTimeline: remotion_1.Internals.sequenceSchema.showInTimeline,
|
|
27
|
+
from: remotion_1.Internals.fromField,
|
|
28
|
+
freeze: remotion_1.Internals.freezeField,
|
|
29
|
+
layout: remotion_1.Internals.sequenceSchema.layout,
|
|
30
|
+
};
|
|
23
31
|
const TransitionSeriesChildren = ({ children, }) => {
|
|
24
32
|
const { fps } = (0, remotion_1.useVideoConfig)();
|
|
25
33
|
const frame = (0, remotion_1.useCurrentFrame)();
|
|
@@ -296,7 +304,9 @@ const TransitionSeriesChildren = ({ children, }) => {
|
|
|
296
304
|
* @description Manages a series of transitions and sequences for advanced animation controls in Remotion projects, handling cases with varying timings and presentations.
|
|
297
305
|
* @see [Documentation](https://www.remotion.dev/docs/transitions/transitionseries)
|
|
298
306
|
*/
|
|
299
|
-
const
|
|
307
|
+
const TransitionSeriesInner = (props) => {
|
|
308
|
+
const { children, name, layout: passedLayout, controls, ...otherProps } = props;
|
|
309
|
+
const { stack, ...propsForSequence } = otherProps;
|
|
300
310
|
const displayName = name !== null && name !== void 0 ? name : '<TransitionSeries>';
|
|
301
311
|
const layout = passedLayout !== null && passedLayout !== void 0 ? passedLayout : 'absolute-fill';
|
|
302
312
|
if (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES &&
|
|
@@ -305,8 +315,15 @@ const TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps
|
|
|
305
315
|
}
|
|
306
316
|
return (jsx_runtime_1.jsx(remotion_1.Sequence, { name: displayName, layout: layout, _remotionInternalDocumentationLink: name === undefined
|
|
307
317
|
? 'https://www.remotion.dev/docs/transitions/transitionseries'
|
|
308
|
-
: undefined, ...
|
|
318
|
+
: undefined, ...propsForSequence, _remotionInternalStack: stack !== null && stack !== void 0 ? stack : undefined, controls: controls !== null && controls !== void 0 ? controls : undefined, children: jsx_runtime_1.jsx(TransitionSeriesChildren, { children: children }) }));
|
|
309
319
|
};
|
|
320
|
+
const TransitionSeries = remotion_1.Interactive.withSchema({
|
|
321
|
+
Component: TransitionSeriesInner,
|
|
322
|
+
componentName: '<TransitionSeries>',
|
|
323
|
+
componentIdentity: 'dev.remotion.transitions.TransitionSeries',
|
|
324
|
+
schema: transitionSeriesSchema,
|
|
325
|
+
supportsEffects: false,
|
|
326
|
+
});
|
|
310
327
|
exports.TransitionSeries = TransitionSeries;
|
|
311
328
|
TransitionSeries.Sequence = SeriesSequence;
|
|
312
329
|
TransitionSeries.Transition = TransitionSeriesTransition;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -904,7 +904,7 @@ uniform float u_intensity;
|
|
|
904
904
|
in vec2 v_uv;
|
|
905
905
|
out vec4 outColor;
|
|
906
906
|
|
|
907
|
-
const int PASSES =
|
|
907
|
+
const int PASSES = 20;
|
|
908
908
|
|
|
909
909
|
vec4 transition(vec2 uv, float progress) {
|
|
910
910
|
vec4 c1 = vec4(0.0);
|
|
@@ -1098,7 +1098,13 @@ var springTiming = (options = {}) => {
|
|
|
1098
1098
|
};
|
|
1099
1099
|
// src/TransitionSeries.tsx
|
|
1100
1100
|
import { Children, useCallback as useCallback2, useMemo as useMemo4, useRef as useRef2 } from "react";
|
|
1101
|
-
import {
|
|
1101
|
+
import {
|
|
1102
|
+
Internals as Internals2,
|
|
1103
|
+
Interactive,
|
|
1104
|
+
Sequence,
|
|
1105
|
+
useCurrentFrame,
|
|
1106
|
+
useVideoConfig
|
|
1107
|
+
} from "remotion";
|
|
1102
1108
|
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
|
|
1103
1109
|
|
|
1104
1110
|
// src/context.tsx
|
|
@@ -1160,6 +1166,14 @@ var SeriesSequence = ({ children }) => {
|
|
|
1160
1166
|
children
|
|
1161
1167
|
});
|
|
1162
1168
|
};
|
|
1169
|
+
var transitionSeriesSchema = {
|
|
1170
|
+
name: Internals2.sequenceSchema.name,
|
|
1171
|
+
hidden: Internals2.sequenceSchema.hidden,
|
|
1172
|
+
showInTimeline: Internals2.sequenceSchema.showInTimeline,
|
|
1173
|
+
from: Internals2.fromField,
|
|
1174
|
+
freeze: Internals2.freezeField,
|
|
1175
|
+
layout: Internals2.sequenceSchema.layout
|
|
1176
|
+
};
|
|
1163
1177
|
var TransitionSeriesChildren = ({
|
|
1164
1178
|
children
|
|
1165
1179
|
}) => {
|
|
@@ -1465,7 +1479,15 @@ var TransitionSeriesChildren = ({
|
|
|
1465
1479
|
children: childrenValue
|
|
1466
1480
|
});
|
|
1467
1481
|
};
|
|
1468
|
-
var
|
|
1482
|
+
var TransitionSeriesInner = (props) => {
|
|
1483
|
+
const {
|
|
1484
|
+
children,
|
|
1485
|
+
name,
|
|
1486
|
+
layout: passedLayout,
|
|
1487
|
+
controls,
|
|
1488
|
+
...otherProps
|
|
1489
|
+
} = props;
|
|
1490
|
+
const { stack, ...propsForSequence } = otherProps;
|
|
1469
1491
|
const displayName = name ?? "<TransitionSeries>";
|
|
1470
1492
|
const layout = passedLayout ?? "absolute-fill";
|
|
1471
1493
|
if (NoReactInternals2.ENABLE_V5_BREAKING_CHANGES && layout !== "absolute-fill") {
|
|
@@ -1475,12 +1497,21 @@ var TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps })
|
|
|
1475
1497
|
name: displayName,
|
|
1476
1498
|
layout,
|
|
1477
1499
|
_remotionInternalDocumentationLink: name === undefined ? "https://www.remotion.dev/docs/transitions/transitionseries" : undefined,
|
|
1478
|
-
...
|
|
1500
|
+
...propsForSequence,
|
|
1501
|
+
_remotionInternalStack: stack ?? undefined,
|
|
1502
|
+
controls: controls ?? undefined,
|
|
1479
1503
|
children: /* @__PURE__ */ jsx4(TransitionSeriesChildren, {
|
|
1480
1504
|
children
|
|
1481
1505
|
})
|
|
1482
1506
|
});
|
|
1483
1507
|
};
|
|
1508
|
+
var TransitionSeries = Interactive.withSchema({
|
|
1509
|
+
Component: TransitionSeriesInner,
|
|
1510
|
+
componentName: "<TransitionSeries>",
|
|
1511
|
+
componentIdentity: "dev.remotion.transitions.TransitionSeries",
|
|
1512
|
+
schema: transitionSeriesSchema,
|
|
1513
|
+
supportsEffects: false
|
|
1514
|
+
});
|
|
1484
1515
|
TransitionSeries.Sequence = SeriesSequence;
|
|
1485
1516
|
TransitionSeries.Transition = TransitionSeriesTransition;
|
|
1486
1517
|
TransitionSeries.Overlay = SeriesOverlay;
|
package/dist/esm/linear-blur.mjs
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/transitions"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/transitions",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.481",
|
|
7
7
|
"description": "Library for creating transitions in Remotion",
|
|
8
8
|
"main": "dist/esm/index.mjs",
|
|
9
9
|
"module": "dist/esm/index.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"remotion": "4.0.
|
|
26
|
-
"@remotion/shapes": "4.0.
|
|
27
|
-
"@remotion/paths": "4.0.
|
|
25
|
+
"remotion": "4.0.481",
|
|
26
|
+
"@remotion/shapes": "4.0.481",
|
|
27
|
+
"@remotion/paths": "4.0.481"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@happy-dom/global-registrator": "14.5.1",
|
|
31
|
-
"remotion": "4.0.
|
|
31
|
+
"remotion": "4.0.481",
|
|
32
32
|
"react": "19.2.3",
|
|
33
33
|
"react-dom": "19.2.3",
|
|
34
|
-
"@remotion/test-utils": "4.0.
|
|
35
|
-
"@remotion/player": "4.0.
|
|
36
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/test-utils": "4.0.481",
|
|
35
|
+
"@remotion/player": "4.0.481",
|
|
36
|
+
"@remotion/eslint-config-internal": "4.0.481",
|
|
37
37
|
"eslint": "9.19.0",
|
|
38
38
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
39
39
|
},
|