@remotion/transitions 4.0.244 → 4.0.246

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/LICENSE.md CHANGED
@@ -11,7 +11,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
11
11
 
12
12
  ## Free license
13
13
 
14
- Copyright © 2024 [Remotion](https://www.remotion.dev)
14
+ Copyright © 2025 [Remotion](https://www.remotion.dev)
15
15
 
16
16
  ### Eligibility
17
17
 
@@ -14,14 +14,8 @@ type SeriesSequenceProps = PropsWithChildren<{
14
14
  readonly stack?: string;
15
15
  } & LayoutBasedProps & Pick<SequencePropsWithoutDuration, 'name'>>;
16
16
  declare const SeriesSequence: ({ children }: SeriesSequenceProps) => import("react/jsx-runtime.js").JSX.Element;
17
- /**
18
- * @description A React component designed to manage a series of transitions and sequences where each transition may have specific timing and presentation components. It extends the capabilities of `<Sequence>` and is specifically structured to handle transitions that involve entering and exiting sequences.
19
- * @see [Documentation](https://remotion.dev/docs/transitions/transitionseries)
20
- * @param {SequencePropsWithoutDuration} props The properties for setting the initial rendering behavior like from, name, etc. It additionally accepts children that are specifically `<TransitionSeries.Sequence>` or `<TransitionSeries.Transition>`.
21
- * @returns React component that renders the transitions and sequences.
22
- */
23
- declare const TransitionSeries: FC<SequencePropsWithoutDuration> & {
17
+ export declare const TransitionSeries: FC<SequencePropsWithoutDuration> & {
24
18
  Sequence: typeof SeriesSequence;
25
19
  Transition: typeof TransitionSeriesTransition;
26
20
  };
27
- export { TransitionSeries };
21
+ export {};
@@ -150,11 +150,9 @@ const TransitionSeriesChildren = ({ children, }) => {
150
150
  // eslint-disable-next-line react/jsx-no-useless-fragment
151
151
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: childrenValue });
152
152
  };
153
- /**
154
- * @description A React component designed to manage a series of transitions and sequences where each transition may have specific timing and presentation components. It extends the capabilities of `<Sequence>` and is specifically structured to handle transitions that involve entering and exiting sequences.
155
- * @see [Documentation](https://remotion.dev/docs/transitions/transitionseries)
156
- * @param {SequencePropsWithoutDuration} props The properties for setting the initial rendering behavior like from, name, etc. It additionally accepts children that are specifically `<TransitionSeries.Sequence>` or `<TransitionSeries.Transition>`.
157
- * @returns React component that renders the transitions and sequences.
153
+ /*
154
+ * @description Manages a series of transitions and sequences for advanced animation controls in Remotion projects, handling cases with varying timings and presentations.
155
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/transitionseries)
158
156
  */
159
157
  const TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps }) => {
160
158
  const displayName = name !== null && name !== void 0 ? name : '<TransitionSeries>';
@@ -166,7 +164,7 @@ const TransitionSeries = ({ children, name, layout: passedLayout, ...otherProps
166
164
  return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence, { name: displayName, layout: layout, ...otherProps, children: (0, jsx_runtime_1.jsx)(TransitionSeriesChildren, { children: children }) }));
167
165
  };
168
166
  exports.TransitionSeries = TransitionSeries;
169
- TransitionSeries.Sequence = SeriesSequence;
170
- TransitionSeries.Transition = TransitionSeriesTransition;
171
- remotion_1.Internals.addSequenceStackTraces(TransitionSeries);
167
+ exports.TransitionSeries.Sequence = SeriesSequence;
168
+ exports.TransitionSeries.Transition = TransitionSeriesTransition;
169
+ remotion_1.Internals.addSequenceStackTraces(exports.TransitionSeries);
172
170
  remotion_1.Internals.addSequenceStackTraces(SeriesSequence);
@@ -8,10 +8,4 @@ export type ClockWipeProps = {
8
8
  innerEnterStyle?: React.CSSProperties;
9
9
  innerExitStyle?: React.CSSProperties;
10
10
  };
11
- /**
12
- * Creates a clock wipe transition. This transition effect uses a circular wipe to reveal the underlying scene as the current scene exits.
13
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/clock-wipe)
14
- * @param {ClockWipeProps} props - The properties for the clock wipe effect, including dimensions and optional styles for entering and exiting states.
15
- * @returns {TransitionPresentation<ClockWipeProps>} An object containing the ClockWipe component and its props to be used in transition presentations.
16
- */
17
11
  export declare const clockWipe: (props: ClockWipeProps) => TransitionPresentation<ClockWipeProps>;
@@ -40,11 +40,9 @@ const ClockWipePresentation = ({ children, presentationDirection, presentationPr
40
40
  ]);
41
41
  return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: outerStyle, children: [(0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children }), presentationDirection === 'exiting' ? null : ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { children: (0, jsx_runtime_1.jsx)("svg", { children: (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: clipId, children: (0, jsx_runtime_1.jsx)("path", { d: translatedPath, fill: "black" }) }) }) }) }))] }));
42
42
  };
43
- /**
44
- * Creates a clock wipe transition. This transition effect uses a circular wipe to reveal the underlying scene as the current scene exits.
45
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/clock-wipe)
46
- * @param {ClockWipeProps} props - The properties for the clock wipe effect, including dimensions and optional styles for entering and exiting states.
47
- * @returns {TransitionPresentation<ClockWipeProps>} An object containing the ClockWipe component and its props to be used in transition presentations.
43
+ /*
44
+ * @description Creates a clock wipe transition that uses a circular wipe to reveal the underlying scene as the current scene exits.
45
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/clock-wipe)
48
46
  */
49
47
  const clockWipe = (props) => {
50
48
  return { component: ClockWipePresentation, props: props !== null && props !== void 0 ? props : {} };
@@ -4,10 +4,4 @@ export type FadeProps = {
4
4
  exitStyle?: React.CSSProperties;
5
5
  shouldFadeOutExitingScene?: boolean;
6
6
  };
7
- /**
8
- * Provides a simple fade transition component for sliding elements in and out.
9
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/fade)
10
- * @param {FadeProps} [props] Optional properties to define 'enterStyle' and 'exitStyle'.
11
- * @returns {TransitionPresentation<FadeProps>} The transition presentation component setup.
12
- */
13
7
  export declare const fade: (props?: FadeProps) => TransitionPresentation<FadeProps>;
@@ -27,11 +27,9 @@ const FadePresentation = ({ children, presentationDirection, presentationProgres
27
27
  ]);
28
28
  return (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children });
29
29
  };
30
- /**
31
- * Provides a simple fade transition component for sliding elements in and out.
32
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/fade)
33
- * @param {FadeProps} [props] Optional properties to define 'enterStyle' and 'exitStyle'.
34
- * @returns {TransitionPresentation<FadeProps>} The transition presentation component setup.
30
+ /*
31
+ * @description Provides a simple fade transition component for sliding elements in and out.
32
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/fade)
35
33
  */
36
34
  const fade = (props) => {
37
35
  return {
@@ -9,10 +9,4 @@ export type FlipProps = {
9
9
  innerEnterStyle?: React.CSSProperties;
10
10
  innerExitStyle?: React.CSSProperties;
11
11
  };
12
- /**
13
- * @description A presentation where the exiting slide flips by 180 degrees, revealing the next slide on the back side. This function configures a 3D flip effect for transitions between components in presentations.
14
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/flip)
15
- * @param {FlipProps} [props] Optional properties to configure the flip effect, including direction, perspective, and styles.
16
- * @returns {TransitionPresentation<FlipProps>} An object with the Flip component and configuration properties.
17
- */
18
12
  export declare const flip: (props?: FlipProps) => TransitionPresentation<FlipProps>;
@@ -43,11 +43,9 @@ const Flip = ({ children, presentationDirection, presentationProgress, passedPro
43
43
  }, [outerEnterStyle, outerExitStyle, perspective, presentationDirection]);
44
44
  return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: outer, children: (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children }) }));
45
45
  };
46
- /**
47
- * @description A presentation where the exiting slide flips by 180 degrees, revealing the next slide on the back side. This function configures a 3D flip effect for transitions between components in presentations.
48
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/flip)
49
- * @param {FlipProps} [props] Optional properties to configure the flip effect, including direction, perspective, and styles.
50
- * @returns {TransitionPresentation<FlipProps>} An object with the Flip component and configuration properties.
46
+ /*
47
+ * @description A presentation where the exiting slide flips by 180 degrees, revealing the next slide on the back side.
48
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/flip)
51
49
  */
52
50
  const flip = (props) => {
53
51
  return { component: Flip, props: props !== null && props !== void 0 ? props : {} };
@@ -4,10 +4,4 @@ export type NoneProps = {
4
4
  enterStyle?: React.CSSProperties;
5
5
  exitStyle?: React.CSSProperties;
6
6
  };
7
- /**
8
- * Wraps the transition in a context so that the progress can be read from the children using a hook.
9
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/context)
10
- * @param {NoneProps} [props] Optional properties to define 'enterStyle' and 'exitStyle'.
11
- * @returns {TransitionPresentation<NoneProps>} The transition presentation component setup.
12
- */
13
7
  export declare const none: (props?: NoneProps) => TransitionPresentation<NoneProps>;
@@ -14,11 +14,9 @@ const NonePresentation = ({ children, presentationDirection, passedProps }) => {
14
14
  }, [passedProps.enterStyle, passedProps.exitStyle, presentationDirection]);
15
15
  return (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children });
16
16
  };
17
- /**
18
- * Wraps the transition in a context so that the progress can be read from the children using a hook.
19
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/context)
20
- * @param {NoneProps} [props] Optional properties to define 'enterStyle' and 'exitStyle'.
21
- * @returns {TransitionPresentation<NoneProps>} The transition presentation component setup.
17
+ /*
18
+ * @description A presentation that has no visual effect on its own. Instead, you control the visual effect by using the useTransitionProgress() hook.
19
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/none)
22
20
  */
23
21
  const none = (props) => {
24
22
  return {
@@ -6,10 +6,4 @@ export type SlideProps = {
6
6
  exitStyle?: React.CSSProperties;
7
7
  enterStyle?: React.CSSProperties;
8
8
  };
9
- /**
10
- * Implements a sliding transition for presentation components where the entering slide pushes out the exiting slide based on the specified direction.
11
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/slide)
12
- * @param {SlideProps} [props] Configuration options for the slide transition: includes direction, enterStyle, and exitStyle.
13
- * @returns {TransitionPresentation<SlideProps>} Returns a transition configuration object including the component and its props.
14
- */
15
9
  export declare const slide: (props?: SlideProps) => TransitionPresentation<SlideProps>;
@@ -67,11 +67,9 @@ const SlidePresentation = ({ children, presentationProgress, presentationDirecti
67
67
  }, [directionStyle, enterStyle, exitStyle, presentationDirection]);
68
68
  return (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children });
69
69
  };
70
- /**
71
- * Implements a sliding transition for presentation components where the entering slide pushes out the exiting slide based on the specified direction.
72
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/slide)
73
- * @param {SlideProps} [props] Configuration options for the slide transition: includes direction, enterStyle, and exitStyle.
74
- * @returns {TransitionPresentation<SlideProps>} Returns a transition configuration object including the component and its props.
70
+ /*
71
+ * @description Implements a sliding transition for presentation components where the entering slide pushes the outgoing slide in a specified direction.
72
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/slide)
75
73
  */
76
74
  const slide = (props) => {
77
75
  return {
@@ -8,10 +8,4 @@ export type WipeProps = {
8
8
  innerEnterStyle?: React.CSSProperties;
9
9
  innerExitStyle?: React.CSSProperties;
10
10
  };
11
- /**
12
- * @description A presentation where the entering slide slides over the exiting slide.
13
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/wipe)
14
- * @param {WipeProps} [props] - Optional properties to configure the transition.
15
- * @returns {TransitionPresentation<WipeProps>} Transition presentation object setup for wipe effect.
16
- */
17
11
  export declare const wipe: (props?: WipeProps) => TransitionPresentation<WipeProps>;
@@ -154,11 +154,9 @@ const WipePresentation = ({ children, presentationProgress, presentationDirectio
154
154
  }, []);
155
155
  return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: outerStyle, children: [(0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: style, children: children }), (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { children: (0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 1 1", style: svgStyle, children: (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: clipId, clipPathUnits: "objectBoundingBox", children: (0, jsx_runtime_1.jsx)("path", { d: path, fill: "black" }) }) }) }) })] }));
156
156
  };
157
- /**
157
+ /*
158
158
  * @description A presentation where the entering slide slides over the exiting slide.
159
- * @see [Documentation](https://remotion.dev/docs/transitions/presentations/wipe)
160
- * @param {WipeProps} [props] - Optional properties to configure the transition.
161
- * @returns {TransitionPresentation<WipeProps>} Transition presentation object setup for wipe effect.
159
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/presentations/wipe)
162
160
  */
163
161
  const wipe = (props) => {
164
162
  return {
@@ -1,13 +1,4 @@
1
1
  import type { TransitionTiming } from '../types.js';
2
- /**
3
- * Creates a linear timing object for managing animations in frame units.
4
- * @description Provides a mechanism to handle frame-based transitions linearly, optionally incorporating easing functions.
5
- * @see [Documentation](https://remotion.dev/docs/transitions/timings/lineartiming)
6
- * @param {Object} fieldsToFetch Configuration options for the linear timing
7
- * @param {number} fieldsToFetch.durationInFrames Specifies the total duration of the transition in frames
8
- * @param {((input: number) => number)=} fieldsToFetch.easing Optional easing function to modify the interpolation of values
9
- * @returns {TransitionTiming} An object representing the timing of the transition, including methods to get duration and progress
10
- */
11
2
  export declare const linearTiming: (options: {
12
3
  durationInFrames: number;
13
4
  easing?: ((input: number) => number) | undefined;
@@ -2,14 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.linearTiming = void 0;
4
4
  const remotion_1 = require("remotion");
5
- /**
6
- * Creates a linear timing object for managing animations in frame units.
7
- * @description Provides a mechanism to handle frame-based transitions linearly, optionally incorporating easing functions.
8
- * @see [Documentation](https://remotion.dev/docs/transitions/timings/lineartiming)
9
- * @param {Object} fieldsToFetch Configuration options for the linear timing
10
- * @param {number} fieldsToFetch.durationInFrames Specifies the total duration of the transition in frames
11
- * @param {((input: number) => number)=} fieldsToFetch.easing Optional easing function to modify the interpolation of values
12
- * @returns {TransitionTiming} An object representing the timing of the transition, including methods to get duration and progress
5
+ /*
6
+ * @description A timing function for `<TransitionSeries>` based on `interpolate()`.
7
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/timings/lineartiming)
13
8
  */
14
9
  const linearTiming = (options) => {
15
10
  return {
@@ -3,7 +3,4 @@ export type TransitionState = {
3
3
  exiting: number;
4
4
  isInTransitionSeries: boolean;
5
5
  };
6
- /**
7
- * Gets the progress and direction of a transition with a context() presentation.
8
- */
9
6
  export declare const useTransitionProgress: () => TransitionState;
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useTransitionProgress = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const context_1 = require("./context");
9
- /**
10
- * Gets the progress and direction of a transition with a context() presentation.
9
+ /*
10
+ * @description A hook that can be used inside a child of a <TransitionSeries.Sequence> to get the progress of the transition to directly manipulate the objects inside the scene.
11
+ * @see [Documentation](https://www.remotion.dev/docs/transitions/use-transition-progress)
11
12
  */
12
13
  const useTransitionProgress = () => {
13
14
  var _a, _b;
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.244",
6
+ "version": "4.0.246",
7
7
  "description": "Library for creating transitions in Remotion",
8
8
  "sideEffects": false,
9
9
  "main": "dist/esm/index.mjs",
@@ -16,18 +16,18 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "@remotion/shapes": "4.0.244",
20
- "remotion": "4.0.244",
21
- "@remotion/paths": "4.0.244"
19
+ "remotion": "4.0.246",
20
+ "@remotion/paths": "4.0.246",
21
+ "@remotion/shapes": "4.0.246"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@happy-dom/global-registrator": "14.5.1",
25
25
  "react": "19.0.0",
26
26
  "react-dom": "19.0.0",
27
27
  "eslint": "9.14.0",
28
- "@remotion/eslint-config-internal": "4.0.244",
29
- "@remotion/test-utils": "4.0.244",
30
- "remotion": "4.0.244"
28
+ "@remotion/test-utils": "4.0.246",
29
+ "@remotion/eslint-config-internal": "4.0.246",
30
+ "remotion": "4.0.246"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",